Steve Holdoway wrote:
On Sat, 23 Aug 2008 06:24:44 +1200
Roger Searle <[EMAIL PROTECTED]> wrote:

I have the file /etc/udev/rules.d/10-local.rules with this line:

SUBSYSTEMS=="scsi", ATTRS{vendor}=="Samsung", ATTRS{model}=="YP-U2", NAME="samsumg-yp-u2"

and all goes well on plugging in the device, it consistently appears in konqueror under system:/media/samsumg-yp-u2.

udev has already mounted
Thanks, so obvious now you point it out!
the device at /media/samsung-yp-u2, as you can see from your browser. You need 
do nothing more!

hth,

Steve

so now I need to restate my intention and where I am stuck. Actually the device is mounted in /media/disk-x not /media/samsung-yp-u2 (which doesn't exist) - this being different from system:/media/samsung-yp-u2. Of course "disk-x" changes depending on what else is plugged in. On plugging the device in, I'd like to be able to access from a fixed location like /home/roger/samsung folder for example. How do I link a folder to the device's consistent location? It's not "ln - s /dev/samsung-yp-u2 /home/roger/samsung" - this just creates a link to the block device.

It can't be "ln -s /media/disk-x /home/roger/samsung" - since "disk-x" is changeable (hence the point of udev)

The consistent location for the device is "system:/media/samsumg-yp-u2" in a browser, but how do I link to such a location? Or, to another (better) location?

Ultimately this isn't about an MP3 player, it's my learning device from which I'll be moving on to a removable hard drive and will be scripting backups and restores.

Cheers,
Roger

Reply via email to