I have an application I wrote in wxPython which catalogs and retrieves
information about my digital photo CDs.  For the cataloging run, this
app expects a digital photo CD to be mounted on /mnt/cdrom.  These days
it appears that udev or some other component mounts CDs
on /media/<volume_name>, which is ok, since encourages Gnome to
obediently open a useful window showing the contents of the CD.  If I
explicitly put a mountpoint in /etc/fstab then the CD gets mounted there
_instead_ of on /media/<volume_name>, and Gnome ignores the mount.  I
want the CD mounted in both places, which I can do manually, but I'd
rather have the OS do it for me.

I used to be able to write udev rules that worked, but it looks as if
Greg KH has been a very busy lad and udev has gotten a lot more complex
of late.  I've tried putting the following rule in 10-local.rules or in
98-late_local.rules and reloading the rules files ("udevcontrol
reload_rules"):

KERNEL=="hdc",  RUN="/bin/mount -t iso9660 /dev/hdc /mnt/cdrom"

This works if I explicitly run udevstart after a CD has been detected
and mounted on /media/<volume_name>, but _not_ after simply inserting a
CD.

Maybe I'm looking in the wrong place here.  Maybe this is a hotplug
issue, or a hal/dbus issue.  Can anyone tell me how I can get this mount
created and taken down when the CD is ejected?

-- 
Lindsay Haisley       | "In an open world,    |     PGP public key
FMP Computer Services |    who needs Windows  |      available at
512-259-1190          |      or Gates"        | http://pubkeys.fmp.com
http://www.fmp.com    |                       |

-- 
[email protected] mailing list

Reply via email to