Problem with random disks mount sequence

Mikkel L. Ellertson mikkel at infinity-ltd.com
Wed Dec 12 13:59:17 UTC 2007


Tim wrote:
> On Wed, 2007-12-12 at 09:36 +0100, wwp wrote:
>> That still doesn't explain why the order of mounting (and of scsi
>> discovering?) is shuffled 
> 
> I'm sure it was explained somewhere in this thread.  The device names
> are named in the order that the BIOS discovers them.  If it checks the
> USB ports first, they get the names first.
> 
A slight correction. It is not the BIOS oder that determines the of
the drives under Linux. It is the kernel. What I would expect to
happen is that you would only have the drivers for the drive with
root file system loaded in the initrd, and the scan order would
always be the same unless you physically change drive connections or
add drives. (Or use a kernel parameter to change the order.)

With SATA drives and USB drives, the USB drive should always be
discovered later then the  SATA drive because the usb_storage driver
should not be loaded until after the root file system is mounted.
                                                      But if the
usb_storage module is in the initrd, then things are not as clear.
It should still find things in the same order, but in this case, it
isn't.

One other thing that I should have commented on earlier - there is
nothing that says that the root file system has to be on the first
SCSI drive, so the system can use that in determining what drive
should be /dev/sda. It used to be fairly common in dual boot systems
to have Window on the first drive, and Linux on the second drive.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071212/8e07fbb9/attachment-0001.sig>


More information about the fedora-list mailing list