Linux GRUB Rescue — Minimal BASH-like Error & Boot Recovery
Criticalboot
Overview
Fix GRUB rescue 'error: no such partition' and 'minimal BASH-like line editing' prompt caused by partition changes, deleted Linux partitions, or corrupted GRUB installation.
Key Details
- GRUB rescue mode appears when GRUB cannot find its configuration or modules
- 'error: no such partition' means the partition GRUB was installed from has been moved or deleted
- GRUB needs to know: (1) where its modules are, (2) where Linux kernel is, (3) the root filesystem
- Common after resizing partitions, dual-boot changes, or Windows reinstallation
- GRUB rescue provides limited commands: ls, set, insmod, linux, initrd, boot
Common Causes
- Partition table changed (resized, deleted, reordered) after GRUB installation
- Windows Boot Manager overwriting GRUB in the EFI partition
- Deleted Linux partition while GRUB still references it
- GRUB config (grub.cfg) corrupted or missing
- UUID of the boot partition changed after formatting
Steps
- 1In GRUB rescue, list partitions: ls — note partitions like (hd0,msdos1) or (hd0,gpt2)
- 2Find the partition with GRUB: ls (hd0,gptN)/boot/grub — look for the one that does not error
- 3Set root and prefix: set root=(hd0,gptN) and set prefix=(hd0,gptN)/boot/grub
- 4Load normal module: insmod normal then normal — this should boot to full GRUB menu
- 5After booting: run sudo update-grub and sudo grub-install /dev/sdX to permanently fix
Tags
linuxgrubrescuebootrecovery
More in Boot
windows-error-0xc0000034Windows Boot Error 0xC0000034 — Missing Boot Configuration Data
Criticalwindows-error-0xc00000e9Windows Boot Error 0xC00000E9 — Unexpected I/O Error
Criticalwindows-error-0xc0000098Windows Boot Error 0xC0000098 — BCD Missing OS Entry
Criticalmac-prohibitory-symbol-bootMac Prohibitory Symbol (Circle with Line) — Boot Volume Not Compatible
Criticallinux-grub-unknown-filesystemLinux GRUB Error Unknown Filesystem
Criticallinux-kernel-panicLinux Kernel Panic — Not Syncing
CriticalFrequently Asked Questions
If GRUB rescue prompt is available, yes — use ls, set root, insmod normal to boot. Then fix permanently from within the OS.