Powering on your desktop workstation or server running Ubuntu, selecting the kernel entry in the GNU GRUB menu, and watching the screen freeze indefinitely at Loading initial ramdisk ... prevents operating system access. No kernel panic is displayed, the keyboard Caps Lock light remains responsive or frozen, and the system fails to transition to the systemd init stage. This boot freeze occurs when the Linux kernel encounters hardware deadlocks during early framebuffer initialization, Intel/AMD processor microcode loading, or when the initial RAM filesystem (initramfs) contains corrupted kernel modules.
What Causes the ‘Loading Initial Ramdisk’ Freeze?
The freeze occurs during the transitional phase between GRUB bootloader and kernel init:
- Corrupted or Incomplete initramfs Image: An interrupted kernel update or uncompleted
update-initramfsprocess leaving a truncated ramdisk file inside/boot. - Kernel Mode Setting (KMS) & Graphics Driver Lockup: NVIDIA proprietary drivers or discrete graphics cards conflicting with early kernel modesetting before display managers load.
- Processor Microcode Regression: Outdated motherboard BIOS interacting poorly with newly installed
intel-microcodeoramd64-microcodepackages. - Disk Out of Space on /boot Partition: A full
/bootpartition preventing GRUB from allocating sufficient contiguous memory to decompress the kernel image.
Step 1: Edit GRUB Kernel Parameters Temporarily (nomodeset / dis_ucode_ldr)
Bypass early graphics modesetting and CPU microcode loading to access the system.
- Reboot your computer and hold Shift (or tap Esc on UEFI systems) to display the GRUB boot menu.
- Highlight your default Ubuntu kernel and press e to edit kernel boot parameters.
- Use the arrow keys to locate the line starting with
linux /boot/vmlinuz-.... - Navigate to the end of that line (after
quiet splash) and append the following parameter:nomodeset - If the freeze persists on Intel 11th/12th/13th/14th Gen or AMD Ryzen systems, append microcode bypass:
dis_ucode_ldr - Press Ctrl + X (or F10) to boot with the temporary parameters.
Step 2: Boot into Recovery Mode and Rebuild initramfs
Recompile a sterile initial ramdisk image to fix missing or corrupted module archives.
- In the GRUB boot menu, select Advanced options for Ubuntu.
- Select the entry ending in (recovery mode).
- In the Recovery Menu, select root (Drop to root shell prompt) and press Enter.
- Remount the filesystem as read-write:
mount -o remount,rw / - Check disk space to ensure
/boothas adequate free storage:df -h /boot - Rebuild initramfs for all installed kernel versions:
update-initramfs -u -k all - Update GRUB configuration:
update-grub - Type
rebootto restart the computer normally.
Step 3: Purge Conflicting Display Drivers or Microcode
If microcode or graphics drivers caused the hang, update packages cleanly.
- Once booted, update system packages and motherboard firmware:
sudo apt update && sudo apt --fix-broken install sudo apt install --reinstall linux-generic - If running NVIDIA GPUs, ensure recommended proprietary drivers are active:
sudo ubuntu-drivers install - Reboot your workstation to confirm that the initial ramdisk loads in under three seconds.