Re: Unique names for UMS devices in /media/



On Thu, 15 Feb 2007 01:07:10 +0100
Mario Vukelic <mario.vukelic@xxxxxxxxxxx> 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

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Unique names for UMS devices in /media/
    ... Weirdly enough, all my usb devices (some vfat, some ext3) do this ... file system's volume label ...
    (Ubuntu)
  • Re: cant mount ext2fs on sparc64 openbsd 4.0
    ... (ext3 is a journalled file system) ... ext3 is downward compatible with ext2, as long as the filesystem is ... (there's a DOS-style partition table but no BSD disklabel); ... able to fake the disklabel in this manner for USB devices? ...
    (comp.unix.bsd.openbsd.misc)