How to Fix ‘Ubuntu Stuck on Loading Initial Ramdisk’ at Boot

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-initramfs process 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-microcode or amd64-microcode packages.
  • Disk Out of Space on /boot Partition: A full /boot partition 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.

  1. Reboot your computer and hold Shift (or tap Esc on UEFI systems) to display the GRUB boot menu.
  2. Highlight your default Ubuntu kernel and press e to edit kernel boot parameters.
  3. Use the arrow keys to locate the line starting with linux /boot/vmlinuz-....
  4. Navigate to the end of that line (after quiet splash) and append the following parameter:
    nomodeset
  5. If the freeze persists on Intel 11th/12th/13th/14th Gen or AMD Ryzen systems, append microcode bypass:
    dis_ucode_ldr
  6. 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.

  1. In the GRUB boot menu, select Advanced options for Ubuntu.
  2. Select the entry ending in (recovery mode).
  3. In the Recovery Menu, select root (Drop to root shell prompt) and press Enter.
  4. Remount the filesystem as read-write:
    mount -o remount,rw /
  5. Check disk space to ensure /boot has adequate free storage:
    df -h /boot
  6. Rebuild initramfs for all installed kernel versions:
    update-initramfs -u -k all
  7. Update GRUB configuration:
    update-grub
  8. Type reboot to restart the computer normally.

Step 3: Purge Conflicting Display Drivers or Microcode

If microcode or graphics drivers caused the hang, update packages cleanly.

  1. Once booted, update system packages and motherboard firmware:
    sudo apt update && sudo apt --fix-broken install
    sudo apt install --reinstall linux-generic
  2. If running NVIDIA GPUs, ensure recommended proprietary drivers are active:
    sudo ubuntu-drivers install
  3. Reboot your workstation to confirm that the initial ramdisk loads in under three seconds.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.