Fix Linux that will not boot
We'll check where it stops, try recovery mode, run fsck, rebuild initramfs, and reinstall GRUB—or tell you when to escalate.
What you'll need
- Live USB (e.g. Ubuntu, Fedora) for fsck and chroot
- Root or sudo access (when booted)
Step-by-step diagnostic
Quick triage — pick your path
Quick triage — pick your path
Choose the option that matches what you see. You can jump straight to that section.
Show full guide
Steps
Goal: Confirm where the boot stops, try recovery mode, run fsck, rebuild initramfs, and reinstall GRUB if needed.
- Power on and watch the output. Note whether you see the GRUB menu, a kernel panic, “Loading initial ramdisk” then hang, or filesystem errors.
- Good: You know where it stops. Proceed to Recovery mode or the matching path.
- Bad: Screen is blank—check display, try a different monitor or cable.
Recovery mode
Goal: Boot into a root shell or try an older kernel.
- At the GRUB menu, select “Advanced options for Ubuntu” (or equivalent). Choose “Recovery mode” or an older kernel.
- Recovery mode often drops to a root shell. If an older kernel boots, the current kernel or initramfs may be corrupted.
- Good: System boots. Run
update-initramfs -u -k all(Debian/Ubuntu) ordracut --force(RHEL/Fedora) to rebuild initramfs, then reboot. Bad: Still hangs—proceed to Run fsck.
Run fsck
Goal: Repair filesystem errors that prevent boot.
- Boot from a live USB. Mount the root partition (e.g.
/dev/sda1). Runfsck -y /dev/sda1(use your partition). The-yflag auto-answers yes to repairs. - Unmount and reboot. Good: System boots. Bad: No filesystem errors—check disk space with
df -handdf -i(see fix-linux-server-has-disk-full), or rebuild initramfs.
Rebuild initramfs
Goal: Fix a corrupted initramfs that hangs boot after “Loading initial ramdisk.”
- Boot from live USB. Mount root and necessary mounts (e.g. /dev, /proc, /sys). Chroot into the system.
- Run
update-initramfs -u -k all(Debian/Ubuntu) ordracut --force(RHEL/Fedora). Exit chroot, unmount, reboot. - Good: System boots. Bad: Still hangs—reinstall GRUB or escalate.
Reinstall GRUB
Goal: Fix a missing or corrupted GRUB boot loader.
- Boot from live USB. Mount root and, for UEFI, the EFI partition. Chroot into the system.
- Run
grub-install /dev/sda(use your disk, not partition). For UEFI:grub-install --target=x86_64-efi --efi-directory=/boot/efi. Runupdate-grub. Exit chroot, unmount, reboot. - Good: GRUB menu appears and system boots. Bad: Disk may have failed—check SMART, escalate.
When to get help
Escalate if:
- You cannot reach a shell (no GRUB, no recovery).
- The disk may have failed (SMART errors, repeated fsck failures).
- Recovery mode, fsck, initramfs rebuild, and GRUB reinstall did not help.
Provide: last visible message, whether GRUB appears, distro and version, and steps tried.
Verification
- The system boots to the GRUB menu and reaches a login prompt.
- No kernel panic or filesystem errors during boot.
- Services start normally after login.
Escalation ladder
Work from the device outward. Stop when the problem is fixed.
- Recovery mode or older kernel At GRUB, select Advanced options > Recovery mode or older kernel.
- Run fsck Boot from live USB; fsck the root partition.
- Rebuild initramfs Chroot from live USB; update-initramfs or dracut --force.
- Reinstall GRUB Chroot from live USB; grub-install and update-grub.
- Escalate Provide last message, GRUB status, distro, steps tried.
What to capture if you need help
Before calling support or posting for help, have these ready. It speeds everything up.
- Last visible message before hang or reboot
- Whether GRUB menu appears
- Distro and version
- Steps already tried
Where does the boot stop?
No GRUB, kernel panic, initramfs hang, or filesystem errors—each points to a different fix.
GRUB appears No GRUB or different
You can change your answer later.
Does recovery mode or an older kernel boot?
Recovery mode drops to root shell. Older kernel rules out current kernel/initramfs.
You can change your answer later.
Rebuild initramfs or keep older kernel
Do you see filesystem errors?
EXT4-fs error or "filesystem has errors" means fsck is needed.
You can change your answer later.
Run fsck from live USB
Boot hangs after "Loading initial ramdisk"?
Initramfs corruption can hang boot at that stage.
You can change your answer later.
Rebuild initramfs
Reinstall GRUB
No GRUB menu or "file not found" means GRUB is corrupted or missing.
Reviewed by Blackbox Atlas
Frequently asked questions
- Why would Linux fail to boot?
- Common causes: corrupted GRUB, bad kernel or initramfs, filesystem errors (needs fsck), full disk, or hardware failure. Check where it stops—before GRUB, at GRUB, or after kernel load.
- Can I fix a Linux boot without a live USB?
- If GRUB appears, you can try recovery mode or an older kernel. For fsck or initramfs rebuild, you often need a live USB or rescue environment.
- When should I escalate a boot failure?
- If you cannot reach a shell, the disk may have failed, or you have tried recovery mode and fsck with no change. Have a backup before major changes.
Rate this guide
Was this helpful?
Thanks for your feedback.