grub rescue> _" command prompt.In such cases you'll need to know which disk partitions Linux & GRUB are installed on. In our example, it's
'sda7' (the 7th partition of the 1st HDD).Type the following commands into the GRUB rescue prompt:
set root=(hd0,7) set prefix=/boot/grub insmod linux linux /vmlinuz root=/dev/sda7 ro initrd /initrd.img boot
- instead of
'(hd0,7)','(hd0,msdos7)'can be used forroot; - an alternative
prefixis'(hd0,7)/boot/grub'; - an alternative
insmodcommand argument path is'(hd0,7)/boot/grub/linux.mod'.
su, or even better, sudo):# grub-install /dev/sda # update-grub2
update-grub2, but update-grub or even grub-mkconfig.On the next reboot, it should work fine.
Some more useful GRUB2 reading:
- GNU GRUB Manual
- GRUB2 - ArchWiki
- Grub2 - Debian Wiki
- Grub2 - Community Ubuntu Documentation
- How To Fix GRUB 2 [Linux] ~ Web Upd8: Ubuntu / Linux blog
- linux - Making "default saved" work with GRUB2...? - Super User
Last updated: 2013-08-31
No comments:
Post a Comment