On Mon, 30 Aug 2004, Bob Miller wrote: > Max Lemieux wrote: > > > Ah. Thanks for the correction. I've noticed that all USB storage devices > > (generally memory cards) load as /dev/sda, didn't think about floppies > > falling under that category. Guess I shouldn't complain unless I'm willing > > to rewrite usb-storage. ;) > > If you have an external USB drive, a memory stick, an iPod, and a > floppy, they ALL show up as /dev/sda. Unless you have more than one > plugged in at once, then the later ones are /dev/sdb, /dev/sdc, ... > > This makes it hard to write scripts that access the transient > peripherals -- their names keep changing. > > You'll have the same problem when you use extra network interface in > your laptop. Mine has two built in, and I can see legitimate reasons > for using three at once. > > Is there any good solution? > -- > Bob Miller K<bob>
The 2.6 kernel has a mechanism for dealing with this. I don't remember all the details. But it involves providing more useful information in the replacement for /proc. Or something like that. -- Allen Brown work: Agilent Technologies non-work: http://www.peak.org/~abrown/ [EMAIL PROTECTED] [EMAIL PROTECTED] Q: What has 10 heads and no brains? A: a committee. _______________________________________________ EUGLUG mailing list [EMAIL PROTECTED] http://www.euglug.org/mailman/listinfo/euglug
