Boot drops to BusyBox shell

Ubuntu Server Boot Drops to a Initramfs prompts BusyBox

Sometimes when you start your Ubuntu Server, it will not boot into a normal shell rather into BusyBox shell. The BusyBox shell would look something like this:

BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

Here is the method that I used to get out of the BusyBox shell.

On the BusyBox shell, run the following commands.

(initramfs) exit

(initramfs) fsck /dev/mapper/ubuntu--vg-root -y
  1. Try exiting using the exit command.
  2. With this command, you will not be out of the BusyBox shell but the shell would prompt you the exact partition that is corrupted.  Then run the second command.

After running the above two commands, restart or reboot the server with the following command:

(initramfs) reboot

When the reboot is successful, you will be back to the normal shell!

 

%d bloggers like this: