Jeremy Henty schrieb: > Can I be sure that GRUB2's hd0, hd1 etc. will always correspond to the > same physical SATA connectors on the motherboard, no matter what > hardware I plug in? (I know from experience that /dev/sda does not > always map to the same connector.) If not, how can I find out the > mapping after booting from a live CD? Or can I drop into the BIOS and > asssume that it lists the drives in hd0, hd1 ... order?
short: no, you can't. long: i'm using mobile racks in my dev systems. usually i just have 2, but in my 'big iron' i use a icy-dock 3disk cabinet (mb 973sp) which is connected to the 3 first sata-connectors. on the 4th i have the dvd. if i just have 1 disk inserted, it will always be hd0 and /dev/sda, independent which of the 3 slots the disk is in. if i insert 2 disks, the topmost (slot 1 or 2) will be hd0, and the lower one (slot 2 or 3) will be hd1. no matter how i populate (1+2, 1+3 or 2+3) the topmost is hd0/sda, the lower one hd1/sdb. inserting a 'next' disk while having lfs up will give the next letter, thus inserting a second will be /dev/sdb and the third /dev/sdc, independent of which slot i use. even worse #1: booting with 3 disks, i get hd0,hd1 and hd2 with grub, and /dev/sda, sdb and sdc. hd0/sda will be the topmost disk in the cabinet. unmounting and removing sdb and sdc, waiting some time and then reinserting sdc (the 3thd) will show it now as sdb, insering the former sdb a little later will show it as sdc! even worse #2: the mainboard has an additional marvel chip with another 2 sata ports. i have another 3.5" plus a 2.5" bay attached to this ports. if i just have inserted the 2.5" disk, grub assignes hd0, lfs uses /dev/sde. lfs will use sde and sdf for the 2 ports. having inserted just one it will be sde, independend wether i have the 2.5 or 3.5 bay filled on startup. i guess the onchip driver is loaded first (assigning sda-scd) and the marvel second (assigning sde+f). grub seems to enumerate all available ports just enumerating the found devices without leaving any 'whole'. tobias -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page