SLUG Mailing List Archives
Re: [SLUG] USB device mappings
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] USB device mappings
- From: telford@xxxxxxxxxxxxxxxxxxxxx
- Date: Sun, 31 Jul 2005 11:19:25 +1000
- User-agent: Mutt/1.5.6i
-----BEGIN PGP SIGNED MESSAGE-----
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).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
-----END PGP SIGNATURE-----