Hello All,
I have an Ubuntu 10.4 installation (dualboot with windows XP) with grub2.
After I resized some of my partitions using a gparted live cd, the system goes directly to grub rescue mode every time I boot.
Then I follow the instructions which are given in grub2 wiki site to boot.
The grub boot directory is now located in sda6 (hd0,6) in my system as found out using 'ls' command.
But in the grub rescue mode when I enter the 'set' command (one of the very few commands available), to display current prefix and root, it gives "(hd0,7)/boot/grub" as 'prefix' and "hd0,7" as 'root'.
After entering the following commands, I'm able to boot
Code:
set prefix=(hd0,6)/boot/grub
set root=(hd0,6)
insmod linux
insmod normal
linux /vmlinuz root=/dev/sda6 ro
initrd /initrd.img
boot
Boot is successful and I can log in to my system and GUI and all
Then I update grub using update-grub command. Then I check the grub.cfg file to make sure the entries are right.
And the /boot/grub/grub.cfg has hd0,6 in every entry like
Code:
...insmod ext2
set root='(hd0,6)'
search --no-floppy ..
hd0,7 doesn't appear anywhere.
Then again at the next boot, again there is only a grub rescue prompt and prefix & root has (hd0,7).
There are other users at my home not familiar with ubuntu. windows is their OS of choice. So I don't want to remove windows installation.
I'm grateful to anyone who can shed some light on this or may know whats wrong here.