Unique names for UMS devices in /media/

Peter Garrett peter.garrett at optusnet.com.au
Thu Feb 15 00:32:22 UTC 2007


On Thu, 15 Feb 2007 01:07:10 +0100
Mario Vukelic <mario.vukelic at dantian.org> wrote:

> On Thu, 2007-02-15 at 10:46 +1100, Peter Garrett wrote:
> > I think you can write udev rules to achieve this.
> 
> Weirdly enough, all my usb devices (some vfat, some ext3) do this
> without me having to do anything. As far as I can tell they all use the
> file system's volume label
> 

Yes, the system appears to look at "Vendor" and "Model" designations, at
least, when a device is attached. For example if I run

tail -f /var/log/messages

before plugging in my USB memory sticks I see something like

Feb 15 11:18:43 localhost kernel: [17345432.420000]   Vendor: USBDisk
Model: RunDisk           Rev: 1.00

and a different one says

Feb 15 11:21:38 localhost kernel: [17345607.748000]   Vendor: USB
Model: Flash Disk        Rev: 3000

( pretty generic )

These appear as "USBDisk RunDisk: usbdisk " and "USB Flash Disk: USB"
respectively in the "Computer" place in Nautilus ( I disabled the desktop
icons and automatic opening because they annoyed me ;) I guess I'm Old
School... )

Peter




More information about the ubuntu-users mailing list