Tutorials Repair Linux Boot Failures in GRUB 2 Rescue Mode
Tutorials Repair Linux Boot Failures in GRUB 2 Rescue Mode
How it looks?
There are basically three error messages or screens when GRUB fails to boot.
grub>: This is the screen mode you see when GRUB has found everything except the
configurationn file. This file probably will be grub.conf.
grub rescue>: This is the mode when GRUB 2 is unable to find the GRUB folder or its
contents are missing/corrupted. The GRUB 2 folder contains the menu, modules and stored
environmental data.
GRUB: Just "GRUB" nothing else indicates GRUB 2 failed to find even the most basic
information needed to boot the system.
These are the basic errors that may occur during booting. Although there are a few more
errors that can be seen on the screen like frozen splash screen, Busybox or Initramfs: GRUB
2 began....
But each of the GRUB 2 failure modes can be corrected either from GRUB 2 terminal or the
Live boot CD or DVD of the distro, there are also 3rd party rescue tools available out there.
These are the commands that can be used when you enter the GRUB 2 terminl mode by
pressing "c".
boot (Initiate the boot, also F10 or CTRL-x)
cat (view the contents of config or txt files; cat (hd0,1)/boot/grub/grub.cfg)
configfile (Load a GRUB 2 configuration file such as grub.cfg; configfile
(hd0,5)/boot/grub/grub.cfg.)
initrd (Loads the initrd.img, necessary for booting; initrd (hd0,5)/initrd.img.)
insmod (Loads a module; insmod (hd0,5)/boot/grub/normal.mod, or insmod normal.)
linux (Loads the kernel; insmod /vmlinuz root=(hd0,5) ro.)
loop (Mount a file as a device; loopback loop (hd0,2)/iso/my.iso.)
ls (lists the contents of a partition/folder; ls, ls /boot/grub, ls (hd0,5)/, ls (hd0,5)/boot.)
lsmod (List loaded modules.)
normal (Activate the normal module, if loaded.)
search (Search for a device. Type help search for the available options.)
set (Review current settings, or set XXX to set a variable such as colors, prefix, root.)
vbeinfo (Display GRUB 2 available resolutions.)
Your output may differ but you get the information required. Find out which devices are
available:
ls
boot
Comments
From: [email protected]
after windows install it went to grub emergency, nothing worked, with the LS or Set
commands, i thought my partitions were screwed.
Then i ran the following as a last resort from the howtogeek page and it worked
sudo apt-add-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install
-y boot-repair boot-repair
then open boot-repair and repair disk
Tutorials Repair Linux boot failures in GRUB 2 rescue mode >
For a permanent fix run the following after you successfully boot:
# update-grub
# grub-install /dev/sdX