[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kde, udev, hal and friends...



Florian Kulzer wrote:

> On Sun, Apr 30, 2006 at 13:38:17 +0200, Wolfgang Mader wrote:
>> 
>> I have installed debian/sid on my machine. I own two
>> usb-storrage-devices. On one of them I have stored all my music. This
>> music is known by amarok. But the path under which this disc is available
>> depend on the order of plugging in the two storrage devices. One time it
>> is /dev/sda1 an the other it is under /dev/sdb1.
> 
> The pmount command was specifically created to address the problem of
> pluggable devices and mount permissions. If you install the package
> "pmount" and add your user to the "plugdev" group, you can mount all
> pluggable devices and removable media without the need for a
> corresponding fstab entry.  ("man pmount" has more details)
...
> As far as amarok is concerned, I would use a udev rule to create a
> symlink, e.g.
> 
> BUS=="usb", SYSFS{serial}=="xxxxxxxxxxxxxx", NAME="%k", SYMLINK="my_music"
> 
> This way the primary name of the device will be its normal kernel name,
> but you will always get /dev/my_music pointing to the right /dev entry.

Of course, if you have volume labels on the partitions, they will be
automatically mounted at /media/<label> - we don't _have_ to modify
udev :-)
-- 
derek



Reply to: