Stuck with initramfs at boot. UUID does not exist

13,767

I found my solution:

  1. I booted on a live USB Ubuntu.
  2. I could not see my hard drive, but switching on the BIOS the SATA Operations parameter from RAID to AHCI solved the problem. No idea why, maybe during the BIOS reset it switched the parameter, or maybe Ubuntu has trouble reading already-written-by-a-foreign-source RAID drives.
  3. At this point my original error was fixed but I got another one. I ran a manual fsck on my hard drive to address it.
  4. Everything works!
Share:
13,767
Valentin Mercier
Author by

Valentin Mercier

I do not answer as much questions as I used to a few years ago and my focus has now become more geared towards Big Data and Algorithm Design but I still like going on StackOverflow occasionally. You may also take a look at my portfolio if you want :)

Updated on September 18, 2022

Comments

  • Valentin Mercier
    Valentin Mercier over 1 year

    I am running ubuntu 16.04 on a DELL and my computer got infiltrated by humidity when it was in sleep mode. When I turned it back on I had a BIOS panic message. It asked me to re-setup the BIOS (idk what this means) and then run diagnostics to detect hardware failures.

    None were found. I ran the diagnostic tool multiple times and again all tests passed succesfully.

    Therefore, I decided to boot normally my computer and after seeing the GRUB I am stuck with an initramfs shell. I understand that somehow somthing fails during the boot sequence and the kernel does not load.

    I think it is because the boot does not find my SSD. Here is the error log I can manage to see when I type exit inside the initramfs shell.

    Gave up waiting for root device. Common problems:
    - Boot args (cat /proc/cmdline)
      - Check rootdelay= (did the system wait long enough?)
      - Check root= (did the system wait for the right device)
    - Missing modules (cat /proc/modules; ls /dev)
    ALERT! UUID=XXXXX does not exist. Dropping to a shell!
    

    My newbie instinct in the field hopes that somehow the BIOS diagnostic/setup changed my disk UUID and thus Ubuntu does not find it. All hard drive tests in the BIOS indicate that I have no hardware problems.


    Therefore my question is this: Would anyone of you have an idea of what my problem is? And if you have any idea, how do we fix this?


    Additionally, here are the screenshots for cat /proc/modules enter image description here and for ls/dev we can see there is no /dev/sdaX thus no hard drive found enter image description here

  • WesternGun
    WesternGun over 2 years
    Thanks! You saved me totally. What happened was that I long-pressed power button for my Dell laptop for like 30s and then this BIOS config was reset to RAID somehow. Your answer is the solution. Now it's fine.
  • WesternGun
    WesternGun over 2 years
    Another clue for the future comers: I also saw a warning of "Time of day not set, please run SETUP program", so I know sth is reset.
  • Admin
    Admin almost 2 years
    For posterity's sake, I had the exact same issue. I avoided the proposed solution in item 2 because it gave me a scary warning to the effect of "If you do this, you may have to reinstall your software". My buddy told me to ignore this warning; whatever happens, you can always get back to the BIOS settings, and so it couldn't possibly get worse than it already is. Sure enough it solved the problem without any additional fixes as in item 3.