Re: devfs -> udev, user mounting etc
> Recall my /etc/udev/rules.d/local.rules:
> BUS="usb", SYSFS{product}="JUMPDRIVE", NAME="%k", symlink="jumpdrive"
> Here's the contents of /etc/auto.misc (beware of long lines):
> jumpdrive -fstype=auto,sync,nodev,nosuid,gid=floppy,dmask=002,fmask=113 :/dev/jumpdrive
> I figure that using removable usb media is morally equivalent to
> using a floppy, so I just mount them as gid floppy.
Went with gid disk since I've use them as such before - but then
that's personal choice :-)
> I have symlinks in /etc/media for all of these devices:
> /media/jumpdrive -> /var/autofs/misc/jumpdrive
Works well this. /mnt/device -> /var/autofs/misc/device - I plug the
device in, ls /mnt/device_name and - bing - there it is :-)
OK - I have to ls /mnt/mobiledisk/ and not /mnt/mobiledisk (otherwise
it shows me the symlink) - but that's OK.
> I don't use KDE or Gnome, so for a visual indication of mounts I
> setup the gkrellm file system krell for each of these mountpoints
> with the 'show if mounted' checkbox ticked.
This is interesting. I use Gnome - and if I use a real mount to /mnt
then the device pops up as an icon on the desktop. With symlinks to
/var/autofs then this doesn't happen (I guess Gnome is watching mtab
or similar). However - I rarely use graphical disk browsers - so this
is not a real problem.
So - from devfs with regular changes of fstab to udev/autofs where I
plug in the device and there it is exactly as I want - a real
usability improvement. Thanks for your help.
--
Chris Searle
Reply to: