EDIT: I have solved the problem of having USB media mounting where I want it to. I have written a short HOWTO three or four posts further down in this thread. Enjoy!
----------------------
I recently switched back from using kde to gnome (on my FC3 desktop), and so I can now take advantage of the udev, HAL, gnome-volume-manager combo, which is great!
The only problem is, I want HAL to mount certain devices that I own in specific mount point - for example, I want my iRiver H140 to be automagically mounted at /media/iriver instead of /media/usbdisk.
I was previously using a udev rule to identify my hardware:
and create the symlink /dev/iriver. Then, with the appropriate entry in fstab:Code:BUS="usb", SYSFS{manufacturer}="iRiver", SYSFS{serial}="0123456789AB", NAME="%k", SYMLINK="iriver"
I could simply run mount /mnt/iriver, and the device would be mounted regardless of where it is located.Code:/dev/iriver /media/iriver vfat noauto,users,uid=500,rw,dev,sync 0 0
Now, however, HAL automatically mounts the hardware whenever I plug it in - but not, obviously, to the place I want it to, because fstab-sync is generating a new line in /etc/fstab. How do I tell it that this piece of hardware should be mounted at /media/iriver, and all others still mounted in the default locations?
I heard there is a way to do this that is similar to writing udev rules, where HAL can identify a specific piece of hardware, but HAL's documentation seems a bit shabby at best. Has anyone else done this?
Cheers,
SimonJW


Reply With Quote
But if you have two things inserted, it will mount the second one in /mnt/usbdisk2. Then, if you unplug them and plug them back in the other way around, the locations that they mount to will switch!
