Very odd goings-on with GRUB this morning. I can't get it to boot my Windows XP install.
Formerly, I had two hard drives, one with Kubuntu 8.04.1 installed, one a Windows XP Pro. To get Win XP to boot from the GRUB menu, I had to do the drive mapping switcheroo, i.e. something like this:
in my menu.lst file.
That no longer works. I get "Error 21: Selected disk does not exist" and am kicked back to the opening GRUB menu.
I thought perhaps the new BIOS had wrecked the old drive mapping - that is, what GRUB sees as hd0, hd1, etc. So,I ran geometry commands with GRUB at Konsole to see what was where. Here's what I got:
I also tried *not* doing the switcheroo, since GRUB in the Konsole suggests my SATA drive, where Windows XP resides is, in fact, hd0.
No dice there either. I got "Starting..." and then was kicked back to the GRUB startup menu once again. That's what you're supposed to get if you don't do the drive map swapping, but need to.
I even tried mapping hd2 to hd0. Didn't work either, which it shouldn't - there is no hd2.
I don't know what to try next.
Formerly, I had two hard drives, one with Kubuntu 8.04.1 installed, one a Windows XP Pro. To get Win XP to boot from the GRUB menu, I had to do the drive mapping switcheroo, i.e. something like this:
map (hd0) (hd1) # Map hd1 to hd0
map (hd1) (hd0)
rootnoverify (hd1,0) # rootnoverify ensures no attempt is made to mount windows
makeactive
chainloader +1
map (hd1) (hd0)
rootnoverify (hd1,0) # rootnoverify ensures no attempt is made to mount windows
makeactive
chainloader +1
That no longer works. I get "Error 21: Selected disk does not exist" and am kicked back to the opening GRUB menu.
I thought perhaps the new BIOS had wrecked the old drive mapping - that is, what GRUB sees as hd0, hd1, etc. So,I ran geometry commands with GRUB at Konsole to see what was where. Here's what I got:
grub> geometry (hd0)
drive 0x80: C/H/S = 20023/255/63, The number of sectors = 321672960, /dev/sda
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 1, Filesystem type unknown, partition type 0x7
grub> geometry (hd1)
drive 0x81: C/H/S = 7476/255/63, The number of sectors = 120103200, /dev/sdb
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 1, Filesystem type unknown, partition type 0x82
Partition num: 2, Filesystem type is ext2fs, partition type 0x83
grub> geometry (hd2)
Error 21: Selected disk does not exist
drive 0x80: C/H/S = 20023/255/63, The number of sectors = 321672960, /dev/sda
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 1, Filesystem type unknown, partition type 0x7
grub> geometry (hd1)
drive 0x81: C/H/S = 7476/255/63, The number of sectors = 120103200, /dev/sdb
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 1, Filesystem type unknown, partition type 0x82
Partition num: 2, Filesystem type is ext2fs, partition type 0x83
grub> geometry (hd2)
Error 21: Selected disk does not exist
No dice there either. I got "Starting..." and then was kicked back to the GRUB startup menu once again. That's what you're supposed to get if you don't do the drive map swapping, but need to.
I even tried mapping hd2 to hd0. Didn't work either, which it shouldn't - there is no hd2.
I don't know what to try next.
Comment