Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-desktop
Navigation:
Lists: gentoo-desktop: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-desktop@g.o
From: Lindsay Haisley <fmouse-gentoo@...>
Subject: udev rules question
Date: Sun, 27 Apr 2008 18:02:07 -0500

 1.1

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    |                       |

-- 
gentoo-desktop@g.o mailing list


Replies:
Re: udev rules question
-- Philip Webb
Navigation:
Lists: gentoo-desktop: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
wxGTK and wxpython
Next by thread:
Re: udev rules question
Previous by date:
Re: wxGTK and wxpython
Next by date:
Re: udev rules question


May 28, 2008

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.