How to Fix a Linux System That Won't Boot (GRUB Recovery Guide) — LinuxDistroFinder
Home › Guides › GRUB Recovery Guide
Intermediate

How to Fix a Linux System That Won't Boot (GRUB Recovery Guide)

📖 14 min read🗓 Updated October 2026✍️ LinuxDistroFinder Team

Disclosure: some links on this page are affiliate links. If you sign up through them we may earn a commission at no extra cost to you. It helps keep LinuxDistroFinder free.

You power on your machine, and instead of the familiar login screen you're greeted by a black terminal spit out with error: no such partition, or a frozen GRUB menu, or — worst of all — nothing at all. Don't panic. The vast majority of Linux boot failures are completely recoverable without reinstalling the OS, and this guide walks you through every meaningful fix, from a 30-second GRUB menu edit to a full chroot reinstall from a live USB.

We'll cover both Legacy BIOS/MBR and UEFI/GPT systems because the repair commands differ in important ways. Read the diagnosis section first — picking the wrong fix wastes time and can occasionally make things worse.

Step 1 — Diagnose What's Actually Happening

Before touching anything, identify which failure mode you're in. The symptom at boot time tells you which section of this guide to jump to.

Symptom on screen Most likely cause Jump to section
error: no such partition or unknown filesystem GRUB can't find its own files — UUID mismatch or deleted partition Section 3 (chroot reinstall)
GRUB menu appears but every entry fails Wrong root/boot path in grub.cfg, often after moving a drive Section 2 (live edit)
minimal BASH-like line editing is supported — grub rescue> prompt Stage 1.5 loaded but can't find normal.mod Section 2 (rescue prompt)
Kernel panic or not syncing: VFS: unable to mount root fs Initramfs broken, wrong root= in kernel line, or missing driver Section 4 (initramfs rebuild)
Black screen after GRUB splash — cursor blinks GPU driver crash or splash timeout; kernel boots but display fails Section 5 (kernel parameters)
UEFI goes straight to firmware setup / "No bootable device" EFI boot entry deleted or EFI partition missing/unmounted Section 6 (EFI repair)
Dual-boot: Windows update wiped Linux entry Windows overwrote the EFI boot manager order Section 6 (EFI repair)
Tip: Take a photo of the exact error message with your phone before rebooting. Error text often disappears the moment you press a key, and the exact wording matters for diagnosis.

Step 2 — Quick Fixes From the GRUB Menu (No USB Needed)

Booting a Different Kernel Entry

If your GRUB menu appears, press E on the first entry to edit it. Scroll down to the line starting with linux (or linuxefi on UEFI). Look for a path like /boot/vmlinuz-6.8.0-45-generic. If a recent kernel update broke things, press Esc, select an older entry from the "Advanced options" submenu, and try booting that.

Note: On Ubuntu/Debian systems, "Advanced options for Ubuntu" in the GRUB menu contains every installed kernel. Kernels are never deleted during an upgrade — only new ones are added — so you almost always have at least one working fallback.

Editing the Kernel Line Live

Press E on an entry, find the linux line, and try these modifications one at a time (press Ctrl+X or F10 to boot after each edit):

  • Remove quiet splash — replaces the splash screen with full boot log output so you can see exactly where it hangs.
  • Add nomodeset — disables kernel mode setting; fixes most black-screen GPU driver failures (especially Nvidia).
  • Add systemd.unit=rescue.target — drops you into single-user rescue shell without a password on most distros.
  • Add init=/bin/bash — bypasses systemd entirely and gives you a root shell (last resort).
Tip: These edits are not permanent — they only apply for this one boot. To make them permanent, you'll need to edit /etc/default/grub and run update-grub once the system is running.

Using the grub rescue> Prompt

If you see grub rescue>, GRUB stage 1 loaded but couldn't find its modules. You need to tell it where to look. First, find your Linux partition:

# List all partitions GRUB can see
ls

# Example output: (hd0) (hd0,msdos1) (hd0,msdos2) (hd1,gpt1) (hd1,gpt2)
# Try each partition to find the one with /boot/grub
ls (hd0,msdos1)/boot/grub/

# Once you find it (no "error: unknown filesystem"), set root and prefix
set root=(hd0,msdos2)
set prefix=(hd0,msdos2)/boot/grub

# Load the normal module and hand off to normal GRUB
insmod normal
normal

If this succeeds, you'll see the full GRUB menu. Boot into your system normally, then run sudo update-grub immediately to make the fix permanent.

Step 3 — Reinstall GRUB From a Live USB (The Big Fix)

This is the most reliable repair method and covers the majority of serious boot failures. You need a bootable live USB of any Linux distro — it doesn't have to match your installed system. Ubuntu 24.04 LTS live ISO works perfectly even if you're repairing Fedora or Arch.

STEP A Boot the live USB and open a terminal

At the live desktop, open a terminal. Do not use the "Install" option — just use the live session. All the tools you need are already there.

STEP B Identify your partitions

Run the commands below to map your disk layout before touching anything.

# Show all block devices and their sizes
lsblk -f

# More detail including UUIDs and filesystem types
sudo fdisk -l

# Check if your system uses EFI (output means UEFI; no output means BIOS/MBR)
ls /sys/firmware/efi

You're looking for: your root partition (usually ext4, the largest one), your boot partition (if separate — often 512 MB ext4 at /dev/sda1), and your EFI System Partition (ESP) if on UEFI (usually 100–550 MB, FAT32, flagged as EFI).

STEP C Mount and chroot into your broken system

Replace /dev/sda2 with your actual root partition from the step above.

# Mount root partition
sudo mount /dev/sda2 /mnt

# If /boot is a separate partition (e.g. /dev/sda1), mount it too
sudo mount /dev/sda1 /mnt/boot

# UEFI only: mount the EFI partition (usually /dev/sda1 or /dev/nvme0n1p1)
sudo mount /dev/sda1 /mnt/boot/efi

# Bind-mount the virtual filesystems
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys

# UEFI only: also bind-mount the EFI variables filesystem
sudo mount --bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars

# Enter the chroot environment
sudo chroot /mnt

You are now effectively running commands inside your broken installation. Your prompt may change to root@(none):/# — that's normal.

STEP D Reinstall and update GRUB

For BIOS/MBR systems — install GRUB to the disk (not a partition), then regenerate the config:

# Replace /dev/sda with your actual disk (not a partition number)
grub-install /dev/sda
update-grub

For UEFI/GPT systems — the command varies slightly by distro family:

# Debian/Ubuntu and derivatives
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu --recheck
update-grub

# Fedora/RHEL and derivatives
grub2-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=fedora
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

# Arch Linux
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ARCH
grub-mkconfig -o /boot/grub/grub.cfg

Look for Installation finished. No error reported. — that's the success message. If you see errors about EFI variables, make sure you bound /sys/firmware/efi/efivars in Step C.

STEP E Exit, unmount, and reboot
# Exit the chroot
exit

# Unmount everything in reverse order
sudo umount /mnt/sys/firmware/efi/efivars   # UEFI only
sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt/boot/efi    # if mounted
sudo umount /mnt/boot        # if separate partition
sudo umount /mnt

# Remove the live USB and reboot
sudo reboot

Step 4 — Rebuild a Broken Initramfs

If GRUB loads fine and the kernel starts but you get a kernel panic or unable to mount root fs, the initramfs (initial RAM filesystem) is likely corrupted or was built against a different kernel version. This commonly happens after a power cut mid-update.

Boot into rescue mode (using the kernel edit trick from Section 2), or chroot from a live USB as in Section 3, then run the appropriate command for your distro:

# Debian/Ubuntu — rebuild for all installed kernels
update-initramfs -u -k all

# Fedora/RHEL — rebuild for all kernels
dracut --regenerate-all --force

# Arch Linux — rebuild for the current kernel
mkinitcpio -P

# openSUSE
mkinitrd
Note: After rebuilding the initramfs, also run update-grub (Debian/Ubuntu) or grub2-mkconfig (Fedora) to ensure GRUB's config file points to the newly regenerated initrd image.

Step 5 — Fix a Black Screen After GRUB (GPU / Display Issues)

The kernel boots successfully but nothing appears on screen. The most common culprits are the proprietary Nvidia driver, a bad plymouth splash, or a mismatch between the kernel's framebuffer and your GPU.

From the GRUB edit screen (press E), find the linux line and add these parameters before the double-dash -- at the end:

# Add to the end of the linux/linuxefi line in GRUB edit mode
nomodeset nouveau.modeset=0 nvidia-drm.modeset=0

# Or for AMD GPU issues
nomodeset amdgpu.dc=0

# If using a serial console or headless machine
console=ttyS0,115200n8

If nomodeset gets you a desktop, the problem is your GPU driver. Once you're logged in, reinstall or purge the Nvidia/AMD proprietary driver package, then remove nomodeset from /etc/default/grub and run sudo update-grub.

Step 6 — Repair UEFI Boot Entries

On UEFI systems, boot entries are stored in NVRAM on the motherboard, not just on disk. A Windows update, a firmware reset, or a clumsy efibootmgr call can delete the Linux entry entirely. The firmware then falls back to Windows or shows "No bootable device."

Check What EFI Entries Exist

# List current UEFI boot order and entries (run from live USB or another OS)
sudo efibootmgr -v

# Example output shows BootOrder and each entry like:
# Boot0000* ubuntu  HD(1,GPT,...)/File(\EFI\ubuntu\shimx64.efi)
# Boot0001* Windows Boot Manager  HD(1,GPT,...)/File(\EFI\Microsoft\Boot\bootmgfw.efi)

Re-create the Linux Boot Entry

# Replace /dev/sda with your disk and 1 with your EFI partition number
# Adjust the --loader path to match your distro (ubuntu, fedora, arch, etc.)
sudo efibootmgr --create \
  --disk /dev/sda \
  --part 1 \
  --label "Ubuntu" \
  --loader "\EFI\ubuntu\shimx64.efi"

# Verify the new entry was added and set it as first in boot order
sudo efibootmgr -v

# Set boot order — put your new entry number first (e.g. Boot0002)
sudo efibootmgr --bootorder 0002,0000,0001
Tip: If your EFI partition was accidentally deleted or formatted, you'll need to recreate it, format it as FAT32, mount it at /boot/efi, then run the full GRUB reinstall from Section 3 inside a chroot. The EFI partition only needs to be 100–512 MB.

Step 7 — Fix GRUB After a Windows Dual-Boot Overwrite

Windows updates (especially major feature updates) frequently overwrite the EFI boot order, pushing Windows Boot Manager back to first place and demoting or deleting GRUB. Your data is perfectly safe — GRUB's files are still on disk. You just need to restore the boot order.

Boot from a Linux live USB, run the efibootmgr -v command from Section 6 to confirm GRUB's EFI file is still present under /boot/efi/EFI/ubuntu/ (or your distro name), then re-create the entry with the efibootmgr --create command above. If the EFI files are gone, run the full Section 3 chroot reinstall.

Note: To permanently prevent Windows from overwriting the boot order again, some users copy shimx64.efi to \EFI\Boot\bootx64.efi on the EFI partition. This makes Linux the fallback bootloader. Windows will still boot via its own entry — it just won't steal first place.

Quick-Reference: GRUB Config File Locations by Distro

Distro family GRUB config file Update command Default config
Ubuntu / Debian / Mint /boot/grub/grub.cfg sudo update-grub /etc/default/grub
Fedora / RHEL / Rocky /boot/efi/EFI/fedora/grub.cfg sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg /etc/default/grub
Arch / Manjaro /boot/grub/grub.cfg sudo grub-mkconfig -o /boot/grub/grub.cfg /etc/default/grub
openSUSE /boot/grub2/grub.cfg sudo grub2-mkconfig -o /boot/grub2/grub.cfg /etc/default/grub
Void Linux /boot/grub/grub.cfg sudo grub-mkconfig -o /boot/grub/grub.cfg /etc/default/grub

Prevent Future Boot Failures

Once your system is running again, take five minutes to harden it against future incidents:

  • Keep at least 2 kernels installed. On Ubuntu/Debian, apt autoremove can silently delete old kernels — check dpkg --list | grep linux-image and keep at least one fallback.
  • Set GRUB timeout to 5 seconds. Edit GRUB_TIMEOUT=5 in /etc/default/grub so you can always interrupt boot. The default of 0 on some distros gives you no chance to intervene.
  • Back up your EFI partition. A 100 MB partition — copy it to a USB stick once a month. sudo rsync -av /boot/efi/ /path/to/backup/
  • Write down your partition UUIDs. Run blkid and save the output somewhere offline. UUID mismatches are one of the top causes of post-migration boot failures.
  • Test your live USB now, not during a crisis. Boot it, make sure it works, and store it somewhere you'll remember.

☁️ Running Linux on a VPS? Start with $100 Free Credit

If you're setting up a Linux server and want a clean, reliable environment without boot drama — Vultr's cloud VPS lets you snapshot your disk before every major update and restore it in seconds if something breaks.

Claim $100 Free on Vultr →

Prefer cPanel or a managed panel? Hostinger VPS starts at ₹299/mo with one-click OS reinstall — no live USB required.

Frequently Asked Questions

Will fixing GRUB delete any of my files?

No. GRUB lives in the first sectors of the disk (MBR) or in a small folder on the EFI partition. Reinstalling it does not touch your home directory, documents, or any user data. The only files modified are the GRUB bootloader binary and its configuration file under /boot/grub/.

My grub rescue prompt doesn't recognise any partition — what do I do?

This usually means the partition table itself is corrupted, or the drive is failing. Boot from a live USB and run sudo fsck -n /dev/sdXY (replace X and Y) to check for filesystem errors without writing anything. If lsblk on the live USB also shows no partitions, the partition table may need recovery with testdisk — a free tool included on most live ISOs.

I get "grub-install: error: cannot find a GRUB drive for /dev/sda" in the chroot. Why?

The virtual filesystems (/dev, /proc, /sys) weren't bind-mounted before you ran chroot. Exit the chroot, run the four mount --bind commands from Section 3 Step C, then chroot again and retry grub-install.

Does this guide work for systemd-boot (used by Fedora 37+ and some Arch setups)?

Partially. Sections 2 and 5 apply universally. Sections 3 and 6 differ for systemd-boot: instead of grub-install, you run bootctl install inside the chroot, and entries live in /boot/loader/entries/ as plain text .conf files rather than a generated grub.cfg.

How do I know if my system uses BIOS/MBR or UEFI/GPT?

The fastest check from a live USB: ls /sys/firmware/efi. If the directory exists and lists files, you're on UEFI. If the command returns "No such file or directory," you're on BIOS/MBR. You can also check your motherboard firmware — if it has a graphical interface with mouse support, it's almost certainly UEFI.

After chroot and grub-install, update-grub says "no kernels found." What's wrong?

Your /boot partition is either not mounted or is mounted at the wrong path. Exit the chroot, run lsblk to verify, mount /boot to /mnt/boot, then re-enter the chroot and try again. Also verify with ls /boot inside the chroot that you can see vmlinuz-* and initrd.img-* files.

Can I use Boot Repair instead of doing this manually?

Yes — Boot Repair is a GUI tool available on Ubuntu live ISOs that automates most of the chroot steps. Run sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt install boot-repair on a live session. It's excellent for straightforward cases. However, for UEFI dual-boot problems, unusual partition layouts, or Fedora/Arch systems, manual repair gives you more control and a clearer picture of what actually went wrong.

🐧
Chippy
Your Linux distro assistant