Thread: grub disk order
View Single Post

   
  #4 (permalink)  
Old 02-21-2008, 12:00 PM
ken scharf
 
Posts: n/a
Default Re: grub disk order

J.O. Aho wrote:
> ken scharf wrote:
>> My system has three IDE/ATA drives, hda is a hard disk, hdc is a
>> dvd+/-RW drive and hdd is a dvd-ram drive. I also have two sata hard
>> disks which are sda and sdb. What order would they show up in to grub?
>> (ie: hd0, hd1, hd2 ?)

>
> That depends on your grubs device.map, as it's there the grub devices
> are translated to udev/devfs-devices.
>

Yes, I see the file and the translation is there.
When is the device.map file created, and can I edit it to change things?
If I boot off my sata drives I'd want /dev/sda to be hd0
If I boot off my ide drive I'd want /dev/hda to be hd0.

But in my case /dev/sda and /dev/sdb will be part of a raid1 array.
So grub won't use /dev/sdb unless /dev/sda fails and I point my bios to
boot /dev/sdb (which now becomes sda!) I'd have to install grub onto
both disks but the device mapping might be different?

I don't think grub knows about raid and boots off the raw disk, the raid
array being established AFTER the kernel loads off the raw disk.
Correct?
Reply With Quote