Howard Lowndes wrote:
Greetz all, long time no write - another story.
I have switched to Ubuntu from Fedora, at least for desk/lap top use and
I have hit a small snag.
When I stick in a USB or SD storage device with an explicit device
label, it automagically mounts the device at /media/<device_label>,
which is great except that it's not where I want a device with an
explicit label to be mounted.
What config file defines where such a device gets automounted?
I haven't checked, but you're probably looking a a udev event being
notified to hal which then sends a udev message which gets picked
up by a listener in the desktop which then runs gnome-mnt or
equivalent. These are guesses based on observed behaviour (such
as the lack of automatic mounting from text mode).
udev runs some name cleaning scripts, so that the volume name
isn't a covert channel for a exploit, and drops the volume name
into a variable. I imagine /media is coded into the desktop
mount utility.
I wouldn't fight it myself. Simply because it's nice and it works
and stuff like SELinux is going to try and enforce the standard
location.
--
Glen Turner
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html