On Tuesday 27 January 2004 09:21, Moshe Kaminsky wrote:
> Now, finally, my question is: how all this affects the mapping of the
> physical drive to the files (/dev/hd*)? What happens if I install the
> bootloader before changing the physical configuration? is there a
> difference between lilo and grub with respect to these questions?
> I'll be happy to have pointers to somewhere where this is explained, as
> currently my understanding of this is very vague.

The drives are arranged according to bus and lun, i.e. cable and master/slave.
Primary master (first cable, master device) is /dev/hda,
Primary slave (first cable, slave device) is /dev/hdb,
Secondary master (second cable, master device) is /dev/hdc, and
Secondary slave (second cable, slave device) is /dev/hdd.

So, right now you have gentoo at /dev/hda, mandrake at /dev/hdb, and cd 
probably at /dev/hdc. After you make the switch the order will be gentoo 
at /dev/hda, mandrake at /dev/hdc (if it's master) and cd at /dev/hdd. That 
is, assuming that you'll plug the gentoo drive into the primary cable slot. 
(Which I recommend, since sometimes it's faster)
  When you install grub (don't know about lilo) during the installation 
process, you should use the drives as they are at that point. That is, (hd0) 
for the gentoo drive, and (hd0,0) for the first partition on it (if that is 
your boot partition). This is because during the installation process grub 
will just write the bootloader on the drive, and of course you want it to 
write it on the right drive.
  In grub.conf the drives should be as they will be when you boot to your new 
system. If you plug the gentoo drive into the primary IDE slot, nothing will 
change, as the gentoo drive will still be the first (hd0) and the mandrake 
drive the second (hd1) hard drive. Note that grub will map the second drive 
as (hd1), even though it is at /dev/hdc. However, you'll have to make sure 
the mandrake kernel's root option points to the right drive and partition, 
i.e. /dev/hdc*

Hope that helps.

-- 
Jani-Matti H�tinen


--
[EMAIL PROTECTED] mailing list

Reply via email to