System won't boot unless I type "exit" at initramfs prompt

13,093

Solution 1

I'm not sure if I have enough information to answer your question, but I do know a way to gather a bit more information.

To hide the logo for the boot and see the actual text of whatever error is causing you to drop to initramfs you will need to catch your computer at the grub boot menu and hit "e" to edit the boot script in use. Find the line that has "ro quiet splash" on it. Remove "quiet" and "splash"

If you get no text at all, there may be some extra text after splash that also needs to be removed. (Or at least, that was the case on my E-350 system.)

You should then see the error message that is causing it to stick in the initramfs prompt.

Solution 2

Boot Degraded RAID

  • Modify /etc/initramfs-tools/conf.d/mdadm

    BOOT_DEGRADED=true
    
  • Update initram

    sudo update-initramfs -u
    
  • Reboot

Share:
13,093

Related videos on Youtube

Ozzah
Author by

Ozzah

Updated on September 18, 2022

Comments

  • Ozzah
    Ozzah almost 2 years

    I installed MDADM for my RAID, and ever since that when I boot up the system just sits at the purple screen forever. After pulling my hair out for a week, I finally discovered - purely by accident - that it's sitting at an initramfs prompt in the background and I have to blindly type "exit" and then Ubuntu resumes normal boot. How do I fix this? I am unable to reboot my machine if I'm not sitting in front of it because it will never boot!

    • Ozzah
      Ozzah over 12 years
      @slacy I haven't been bothered to investigate it since I almost never have to reboot the file server, but I'm pretty sure the problem is to do with BusyBox, whatever that is. I think it got installed when I installed MDADM.
    • ekthomson
      ekthomson about 12 years
      Busybox is utilized in the initramfs that is utilized to start your system up when you don't have access to your hard drives. This can be done for many reasons though. Since you're using a Raid, you might check to see if your raid is running in degraded mode at all, or with fewer drives than its setup for. /proc/mdstat can tell you more perhaps.
  • bniwredyc
    bniwredyc over 11 years
    Since the default is BOOT_DEGRADED=false, it seems the value you want should be BOOT_DEGRADED=true. I tried this and it works, I didn't try yes as well. Sidenote, it seems like a bad default value, the point of RAID is often to be able to keep going even when degraded.
  • J. Mendenhall
    J. Mendenhall over 10 years
    how exactly do I do this if im stuck at the initramfs prompt?