nifty_nev
January 6th, 2010, 03:30 PM
Hi all, I have been a happy little GRUB user for a while now, but now I want to use GRUB to boot a physically separate WinXP hard drive, and I can't seem to do that. Normally GRUB is easy, (I even have a nice splash screen of my own making). Its a champion solution for booting into Ubuntu Linux on /dev/sda5 or Win XP on /dev/sda1.
My second HD which Linux recognizes as /dev/sdb, has a Win XP boot sector and Win XP in one partition.
Normally I boot off /dev/sda using GRUB, and from Linux I can mount and have access to /dev/sdb - that works well. Occasionally however, I need to boot the separate Win XP system on the second HD, and to do that I switch the boot drive in the BIOS, but lately that is getting to be a bit tedious.
Initially I though to give the additional boot choice to GRUB, I simply had to edit /boot/grub/menu.lst and point to the second HD (where /dev/sdb = hd1 in GRUB speak). Unfortunately, when I select the new choice, it simply boots Win XP off the first HD.
I'm confident GRUB does look at the first partion on hd1 as expected as I can induce an error by having hd1 disconnected, or write silly partion numbers into menu.lst. So if it does in fact find the first partion on hd1, why doesn't it boot? Why does it default to WinXP on hd0?
I have diligently tried physically swapping SATA drive cables and playing with bios switching and have messed about a fair bit with menu.lst to make sure I have drive and partition numbers right, but all to no avail. I have also tried changing rdisk(0) in boot.ini to rdisk(1) on the second drive when it is not the boot drive.
I'm just about out of ideas now guys so can you help? I'm afraid the only other thing I can think of is that the second hard drive requires a Linux boot sector if I am going to boot it up from GRUB, but somehow that doesn't make sense. Surely GRUB can work across physically separate drives, so I'm open to other ideas first. Thanks in anticipation.
Nifty Nev :P
My second HD which Linux recognizes as /dev/sdb, has a Win XP boot sector and Win XP in one partition.
Normally I boot off /dev/sda using GRUB, and from Linux I can mount and have access to /dev/sdb - that works well. Occasionally however, I need to boot the separate Win XP system on the second HD, and to do that I switch the boot drive in the BIOS, but lately that is getting to be a bit tedious.
Initially I though to give the additional boot choice to GRUB, I simply had to edit /boot/grub/menu.lst and point to the second HD (where /dev/sdb = hd1 in GRUB speak). Unfortunately, when I select the new choice, it simply boots Win XP off the first HD.
I'm confident GRUB does look at the first partion on hd1 as expected as I can induce an error by having hd1 disconnected, or write silly partion numbers into menu.lst. So if it does in fact find the first partion on hd1, why doesn't it boot? Why does it default to WinXP on hd0?
I have diligently tried physically swapping SATA drive cables and playing with bios switching and have messed about a fair bit with menu.lst to make sure I have drive and partition numbers right, but all to no avail. I have also tried changing rdisk(0) in boot.ini to rdisk(1) on the second drive when it is not the boot drive.
I'm just about out of ideas now guys so can you help? I'm afraid the only other thing I can think of is that the second hard drive requires a Linux boot sector if I am going to boot it up from GRUB, but somehow that doesn't make sense. Surely GRUB can work across physically separate drives, so I'm open to other ideas first. Thanks in anticipation.
Nifty Nev :P