[ILUG] System boots with disks in random order...

Daniel Shaw dshaw78 at gmail.com
Tue Jan 1 19:58:40 GMT 2008


On 29/12/2007, murf <murf at syndicate7.net> wrote:

> In my experience, there's no way (that I know of) to pre-determine which
> USB disk is detected first on a system boot. The only way around this is
> to power them on in sequence. I have a machine with three USB drives, and

We've moved off the topic of swap, but nevertheless..

> if it powercycles ofr any reason, the USB drives are invariably detected
> in $random order, and mounted wrong. I suspect this is a limitation of
> USB, but I'd like to stand corrected on this if anyone knows any better!

Yes and no. Yes there is no way to reliably detect what order the USB
storage devices get detected in. However, no there are in fact ways
around this. Namely, one can use udev to create custom /dev/whatever
files specific to model/serial numbers of each device. This way the
order does not matter as you use the device specific /dev/ files and
not sdXX for mounting.

Cheers,
Daniel


>
> cheers,
> Murf
>
> --
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug
> Who we are : http://www.linux.ie/
> Where we are : http://www.linux.ie/map/
>



More information about the ILUG mailing list