Sven Arvidsson escribe: > On Thu, 2006-10-05 at 14:11 +0200, Ismael Valladolid Torres wrote: > > Can I use that file also for telling gnome-volume-manager to mount at > > /media/phone instead of at /media/PHONE CARD? That whitespace messes > > some of my scripts. > > I don't think hal has anything to do with naming mount points, I think > that is the job of udev. > > http://www.reactivated.net/writing_udev_rules.html >
Using that information I solved it, find enclosed a solution for a future reference: I reset /etc/hal/fdi/policy/preferences.fdi to its default contents. I create a file /etc/udev/rules.d/10-local.rules containing this line: KERNEL=="sd?1", ATTRS{interface}=="Sony Ericsson Memory Stick", SYMLINK+="phone" This way whichever node gets assigned (sda1, sde1, sdf1) a symlink called /dev/phone is created. So now I can add a line to /etc/fstab like this: /dev/phone /media/phone vfat user,noauto,rw,noexec,nosuid,nodev,sync,noatime,quiet,shortname=mixed,uid=1000,gid=1000,umask=077,iocharset=utf8 0 0 The mountpoint /media/phone needs to be created manually. Now whenever I plug the mobile phone, it gets mounted to /media/phone as I needed. Thanks for such useful info. Cordially, Ismael -- Ismael Valladolid Torres "Il est vain de pleurer sur l'esprit, il suffit de travailler pour lui." Albert Camus http://digitrazos.info/ http://lamediahostia.blogspot.com/ OpenPGP key ID: 0xDE721AF4 http://www.hispasonic.com/foro73.html Jabber ID: [EMAIL PROTECTED]
signature.asc
Description: Digital signature