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
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).
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 atLoading 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 hasro 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
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.)
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%.
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.