9

I get the (initramfs) prompts/busybox occasionally in Ubuntu 20.04.

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

(initramfs)

A manual fsck solves the problem. But, I need to know which partition got corrupted. Sometimes when I get the BusyBox, neither the reboot command nor the exit command works (I suppose the exit command works, but we are still in the BusyBox because the file system errors persists). I need to turnoff or reboot to see which partition has the problem.

How to turnoff or reboot when you get BusyBox (and reboot and exit commands has no effect) ?

1 Answers1

16

I know I'm almost two years late here, but considering this has no answers...

To turn off your system from the initramfs shell, run the poweroff command:
(initramfs) poweroff

To reboot, you can use the reboot command:
(initramfs) reboot -f

Note that you must pass the -f (force) switch to the reboot command, without it the system does not reboot.

Gogeta70
  • 477
  • 5
  • 11