Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] USB device mappings


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Jul 29, 2005 at 12:38:17PM +0000, Sam Couter wrote:
> Ben Buxton <bb@xxxxxxxxxx> wrote:
> > How can one go about ensuring that certain USB mass-storage devices
> > always get linked to the right /dev node, irregardless of the order that
> > they're plugged into?
> 
> Irregardless? Yay for Bushisms!
> 
> > I'd like to have things where by for example, my camera always appears
> > ad /dev/sda, my USB key as /dev/sdb, etc. It seems that they are
> > allocated in the order they're attached, but this makes things rather
> > complicated as I have to keep hunting for which device something's
> > attacehd to.
> 
> Install udev.

I thought the whole idea of the /media directory was to make it look
at the name of the filesystem (as stored in the superblock, or in the
header of the ISO image, or whatever you put in there) and automatically
mount it under that name. Thus, the actual /dev/sda or /dev/sdb should
be irrelevant because your data always turns up under a directory
named by the media.

Think of the situation if you have two flash readers on the one machine
and you pull the flash card out of one and put it into the other,
the result should be that the data is still available in the same place.
The Amiga had this working with floppy discs around 1985. The Amiga
also supported partial unmounts and other cool stuff (where you can actually
unplug the media while it is still mounted and it will safely track
the media state in memory, provided you don't go and modify that media
in another machine).

	- Tel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iQIVAwUBQuwnHcfOVl0KFTApAQKxkA//ZTQkZTBP55CrTwm9nW9+/J4IBjMVdUa7
ct07nh3R64lO81yh2kVxbn2Gq5LIkHCMeEQXo+w66R2duqHo4+BjKw8iUjRT5p5n
ZtU++m7TaWph3vgfO0790AqK0mmXdn6qCebH96a8y4e+KTM6jbp6HAMoBiD/Oxsa
IyVh58CrcwxgbfnfmSaXPG82iZWilcKDI5YjnFujnZ9GSRn6Ot5xiJn9DYzDdtxq
qz4HhrAKp8PZf5aJZq7HXiSGmNXDo8Jp4KsTlIgmmnNn/0uIOr4/Xk++Wz4f9or/
Xmu21OIryPi3kiQR/KGIcuYwmTWU0Mny5+TNcuXrggiNDRNiv0akx+e/XAtsQE3n
f1q18sx5OnmxdpBpDRwsQnYdrp9enS4z/d29FgbvBdrKCXTdMLw0sxtBSh5xbhJQ
rP48NoJp7t7p2CqK1Tu4pwDZ2cIRsW5H8pNfjz5xQLvKLyOzhXIepYslF/e8hdgT
RwlOlvD+Aewte2ed8aBewwxRuudPZ7/ZBItxoQ4ArRpUeVaJ0DkWNJgrO0CUk17C
PFWi+YU18WHOuzbhjT1znALkD8QlmdhXpTBx7T8ov2iH07qoEUmSFgXekHPXCj4Y
GsCFS7sCDVGUNqQf4Lwi1ASRfKkgy+A/vE0dPW+yg3gbvBt6BmZlZ1Lz3GOzgYXu
Be3JtuQ8Veo=
=8rZn
-----END PGP SIGNATURE-----