Error Codes Wiki

GRUB Rescue — Detailed Recovery from grub rescue> Prompt

Criticalboot

About GRUB Rescue

Step-by-step guide to recovering from the GRUB rescue prompt, finding your Linux partition, loading kernel modules, and fully reinstalling GRUB bootloader. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.

Here are the key things to understand: grub rescue> prompt appears when GRUB cannot find its configuration or modules. This is a minimal GRUB shell with only basic commands: ls, set, insmod, normal. Common trigger: deleted or moved Linux partition, corrupted GRUB files, Windows update overwriting MBR. The rescue shell can manually load GRUB modules and boot Linux to perform a full repair. UEFI and BIOS systems have different GRUB installation procedures. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.

The most common reasons this occurs include: GRUB modules directory (/boot/grub/) deleted, corrupted, or on an unmounted partition. Partition table modified (resized, moved, or deleted partitions). Windows update or installation overwriting the MBR or EFI boot entry. GRUB installed for BIOS but system booting in UEFI mode (or vice versa). Disk device name changed (sda became sdb) after adding or removing a drive. Identifying the root cause is the first step toward finding the right solution.

To resolve this, follow these recommended steps: At grub rescue>, list partitions: ls to see available devices. Find the Linux partition: ls (hd0,gpt2)/ (try each partition until you see Linux files). Set root and prefix: set root=(hd0,gpt2) and set prefix=(hd0,gpt2)/boot/grub. Load normal module: insmod normal then type normal to get the full GRUB menu. Boot Linux and reinstall GRUB: sudo grub-install /dev/sda (BIOS) or sudo grub-install --target=x86_64-efi (UEFI). Update GRUB config: sudo update-grub to regenerate grub.cfg. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.

This article is part of our Linux Error Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.

Quick Answer

What is the difference between grub> and grub rescue>?

grub> is the full GRUB shell with all commands. grub rescue> is a minimal shell when GRUB cannot find its modules. In rescue, you must manually set root and prefix before loading the normal module.

Overview

Step-by-step guide to recovering from the GRUB rescue prompt, finding your Linux partition, loading kernel modules, and fully reinstalling GRUB bootloader.

Key Details

  • grub rescue> prompt appears when GRUB cannot find its configuration or modules
  • This is a minimal GRUB shell with only basic commands: ls, set, insmod, normal
  • Common trigger: deleted or moved Linux partition, corrupted GRUB files, Windows update overwriting MBR
  • The rescue shell can manually load GRUB modules and boot Linux to perform a full repair
  • UEFI and BIOS systems have different GRUB installation procedures

Common Causes

  • GRUB modules directory (/boot/grub/) deleted, corrupted, or on an unmounted partition
  • Partition table modified (resized, moved, or deleted partitions)
  • Windows update or installation overwriting the MBR or EFI boot entry
  • GRUB installed for BIOS but system booting in UEFI mode (or vice versa)
  • Disk device name changed (sda became sdb) after adding or removing a drive

Steps

  1. 1At grub rescue>, list partitions: ls to see available devices
  2. 2Find the Linux partition: ls (hd0,gpt2)/ (try each partition until you see Linux files)
  3. 3Set root and prefix: set root=(hd0,gpt2) and set prefix=(hd0,gpt2)/boot/grub
  4. 4Load normal module: insmod normal then type normal to get the full GRUB menu
  5. 5Boot Linux and reinstall GRUB: sudo grub-install /dev/sda (BIOS) or sudo grub-install --target=x86_64-efi (UEFI)
  6. 6Update GRUB config: sudo update-grub to regenerate grub.cfg

Tags

grubrescuebootloaderrecoveryboot-repair

Related Items

More in Boot

Frequently Asked Questions

grub> is the full GRUB shell with all commands. grub rescue> is a minimal shell when GRUB cannot find its modules. In rescue, you must manually set root and prefix before loading the normal module.