12

So I had a working dual boot set up with Ubuntu 18.04 and Windows 10, when I ran an apt upgrade and now I can no longer boot into Ubuntu (windows works fine), with the recovery mode output stuck at “Loading initial ramdisk”. Previously, I’ve noted that my laptop is unable to run Ubuntu 19.04 (but it is able to run 18.10), with it also resulting in the same problem of being stuck on “loading initial ramdisk”.

I ran the yannubuntu boot repair tool, which fixed the problem for exactly one boot - without any apt upgrades or installations, the laptop failed to boot on successive attempts. Boot repair doesn’t work on further attempts either, here is the pastebin from the output: http://paste.ubuntu.com/p/wkGfGdQgJH/

This laptop model has no discrete graphics card so it’s not a driver issue with that.

Running the Linux 5.1.1 kernel, and switching to an older kernel does not help either

4 Answers 4

24

Solved by following this: Ubuntu 18.04.2 boot stuck on purple screen after updates

The issue was due to an intel microcode update, which behaved badly with ASUS laptops. In short, the fix (for now) is to first add dis_ucode_ldr to the kernel command line. Do this by pressing E while on the grub boot menu and find the line which has something like “ro quiet splash”. Add dis_ucode_ldr at the end of the line. This will let you boot.

Once you boot, run

sudo apt install intel-microcode=3.20180312.0~ubuntu18.04.1

This undoes the problematic update in question and will allow you to boot from now on out (without having to modify grub).

4
  • 1
    this worked for me, thanks! I am on ubuntu 18.04 and I have a Dell Latitude
    – desmond13
    May 4, 2020 at 16:10
  • 1
    It happened again and I had to do again the same procedure. It is strange because it installed "apparently" again the intel-microcode packages
    – desmond13
    May 8, 2020 at 11:03
  • This is working for me to. But it seems when windows update, I need to do it again. Aug 26, 2020 at 5:25
  • @HeinWessels, it is normal since with the command above you are downgrading a specific package. Therefore, when you will check for updates it will try to give you the most up to date package. For solving this, you need to disable the update on the specific package. I used this solution (askubuntu.com/a/18656/335044) and did echo "intel-microcode hold" | sudo dpkg --set-selections. I hope it helps.
    – desmond13
    Sep 2, 2020 at 7:44
2

I have had the same issue after installing updates from apt-get on a Dell Latitude 7400 running Ubuntu 18.04. Booting stopped after GRUB - can just see a blank purple screen. No luck with recovery mode either which gets stuck at Loading initial ramdisk

I tried installing different kernels using the method in this answer which essentially drops to the root level of the existing Ubuntu installation after mounting the existing installation in a live usb session (Try Ubuntu without installing option). All the kernels got stuck at the same point after GRUB - just a blank purple screen. Recovery modes get stuck at Loading initial ramdisk

What helped was editing the kernel command by pressing e (as soon as you press e the full blown kernel command will show up) when the GRUB menu/screen (the purple screen with options like Ubuntu, Advanced Ubuntu options, System settings etc.) showed up and adding the microcode dis_ucode_ldr at the end of the (kernel) line that has ro quiet splash (the line appears towards the end of the kernel command)

Once the microcode is added to the line, the boot will succeed and once logged in, I executed the command

sudo apt install intel-microcode=3.20180312.0~ubuntu18.04.1

to avoid having to add the microcode to the kernel command in GRUB during every reboot.

Other things that helped me were a deeper understanding of the boot process outlined here (power button -> BIOS -> POST -> MBR -> bootloader (GRUB) -> GRUB loads linux kernel etc.)

3
  • Do you know wha't the underlying problem? I have a Dell Latitude 7300 with Kubuntu 20.04 and I've just started experiencing similar symptoms: Quite often my laptop won't wake up from sleep and then when I try to reboot it, I get stuck at Loading initial ramdisk. I haven't tried the kernel command trick; what helps in my case is plugging in the AC adapter. Then the laptop boots.
    – tobik
    Jun 14, 2020 at 13:42
  • This worked for me on my dual boot Lattitude 5500 running Ubuntu 18.04.4. Thanks! Jul 29, 2020 at 12:30
  • Hey, this is what worked for me. Thank you.
    – Rich
    Feb 15, 2023 at 5:43
1

I had the same issue with my Dell Latitude 5400. Surprisingly, it get solved as I plug in charger to the system. Also, I notice this problem occurs when batter level is less than 50%.

1
  • 1
    Yes this worked on dell latitude 5500. Very strange issue. Dont know how people downvote without trying testing the solution.
    – Sumeet
    Sep 27, 2020 at 7:00
0

I had the same problem. I booted holding shift, selected 'recovery mode' and opened a 'root terminal'. There I typed df -h, which shows disk usage: The second-last column was at 100 %. The computer did not boot because it was full! Solution: Exit that terminal with 'Control+D' and then select 'clean' to free the APT Cache. Then it booted again.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .