GRUB menu.lst boot to SATA RAID
Posted: Wed Jan 17, 2007 6:17 pm
Right,
I've been Googling a while now and asked my friend who knows about this stuff, and still no luck.
What I've done is cloned my IDE Windows HDD onto my new SATA drive. It's worked fine.
If I run sudo fdisk -l in a terminal I get this:
Top entry being my new drive, middle one being my current Ubuntu drive and bottom one being my old Windows drive.
I want to change menu.lst so that I can boot to my new Windows drive, but I don't understand how the drive references relate to each other between what fdisk returns and what's in menu.lst.
My menu.lst entires look like this:
I know hd([partition number],[drive number]), that's about as far as my learning has got to.
So, my question is, what do I put into menu.lst so that I can boot to my new drive?
I've tried this:
but it was a complete stab in the dark, and I got a "device not recognised" error.
My friend also said if you invoke a GRUB shell there is a command to list the drives but he doesn't remember it, I can't find this command anywhere.
Thanks for any help
I've been Googling a while now and asked my friend who knows about this stuff, and still no luck.
What I've done is cloned my IDE Windows HDD onto my new SATA drive. It's worked fine.
If I run sudo fdisk -l in a terminal I get this:
Code: Select all
jay@jay-desktop:~$ sudo fdisk -l
Password:
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 30401 244196001 7 HPFS/NTFS
Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 4839 38869236 7 HPFS/NTFS
/dev/hda2 4840 9752 39463672+ 83 Linux
/dev/hda3 9753 9964 1702890 5 Extended
/dev/hda5 9753 9964 1702858+ 82 Linux swap / Solaris
Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 4998 40146403+ 7 HPFS/NTFSI want to change menu.lst so that I can boot to my new Windows drive, but I don't understand how the drive references relate to each other between what fdisk returns and what's in menu.lst.
My menu.lst entires look like this:
Code: Select all
title Windows XP Pro
root (hd0,0)
savedefault
makeactive
chainloader +1
title Ubuntu
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda2 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
bootSo, my question is, what do I put into menu.lst so that I can boot to my new drive?
I've tried this:
Code: Select all
title New Windows XP Pro
root (hd0,2)
savedefault
makeactive
chainloader +1My friend also said if you invoke a GRUB shell there is a command to list the drives but he doesn't remember it, I can't find this command anywhere.
Thanks for any help