PDA

View Full Version : [ubuntu] Reordering partitions - GRUB



Quatrix
May 5th, 2008, 01:54 AM
I'm using GRUB to dual-boot XP Pro and Ubuntu 8.04. I want to reorder my partitions for no particular reason, so my Linux partition (including GRUB configuration) changes from (hd0,6) to (hd0,7) or something like that. GRUB gives "Error 17" at boot, I'm assuming because the boot loader points to the old location. What's the easiest way to point it to the new partition ID? I found a lot of answers around the web, but they seem overly complicated and risky. This seems like it should be simple.

logos34
May 5th, 2008, 02:08 AM
On the grub screen press 'e' to edit, 'e' again on the 'root' line and change it. Then 'enter; and 'b' to boot. WHen you find an entry that gets you into ubuntu make the change permanent:

gksudo gedit /boot/grub/menu.lst

Quatrix
May 5th, 2008, 06:33 AM
On the grub screen press 'e' to edit, 'e' again on the 'root' line and change it. Then 'enter; and 'b' to boot.

GRUB hangs with Error 17 without ever going into the boot menu. The 'e' and 'c' keys don't seem to work from there. To clarify, I have no trouble editing menu.lst to point to the new Ubuntu partition. The problem (I think) is getting the master boot record to point to the moved partition, which contains the GRUB configuration.

logos34
May 5th, 2008, 10:31 AM
GRUB hangs with Error 17 without ever going into the boot menu. The 'e' and 'c' keys don't seem to work from there. To clarify, I have no trouble editing menu.lst to point to the new Ubuntu partition. The problem (I think) is getting the master boot record to point to the moved partition, which contains the GRUB configuration.

oh, ok, thought you were getting the grub menu.

In that case, reinstall stage1 to the mbr:
http://ubuntuforums.org/showthread.php?t=224351