How to fix Boot drops (initramfs) prompts/busybox on Ubuntu

Have you ever experience a situation that you shutdown your Ubuntu OS and when trying to reboot the PC, the boot process drops to the (initramfs) prompts/busybox shell and you are stuck up on the prompt:

This error is due to corrupted files/ or partition.

To fixed this issue, the solution is just to scan fix the corrupted files. 



Simply run the fsck Command.

To fix this run any of the following command below and give Y if the console ask for fixing something.


(initramfs) fsck /dev/sda1

or

(initramfs) fsck /dev/sdaX

X specifies mounted disk part number.

If you don't want to continuously pressing 'y' every time it the console asks for a fix, you can also run the command with the -y option.

(initramfs) fsck /dev/sda1 -y

or

(initramfs) fsck /dev/sdaX -y

After the checking is done, rebooted the system.


(initramfs) reboot

That should fix the corrupted files and that's it, This will boot into the filesystem without any errors.

If this article was helpful please share, you can follow me up on my twitter handle @jackieriel1.

Thanks.


Post a Comment

0 Comments