On Sat, 29 Dec 2001, martin f krafft wrote:

> yo!
> 
> i've seen it done before, but i can't remember how. i believe it was a
> gnome feature, but there's got to be a way to do this underneath any
> desktop environment... when i insert a CDROM, i want it to be available
> without having to mount. conversely, i always want to be able to just
> eject without umount. how can one enable this? any docs/links/howtos?

I'm using the following:
 - I installed "autofs".
 - I created a file /etc/auto.master with the following lines:
   (this sets the timeout to 4 seconds)

/var/autofs/misc        /etc/auto.misc  timeout=4

 - I created a file /etc/auto.misc with the following content:

cd              -fstype=iso9660,ro,nodev,nosuid                 :/dev/cdrom
cdwriter        -fstype=iso9660,ro,nodev,nosuid                 :/dev/cdwriter
floppy          -fstype=vfat,sync,nodev,nosuid,gid=25,umask=002,check=relaxed   
:/dev/fd0
zip             -fstype=auto,sync,nodev,nosuid,gid=25,umask=002,check=relaxed   
:/dev/zip

 - create a link from /var/autofs/misc to /misc (for convenience...)
 - use "/etc/init.d/autofs restart" to restart the automounter
 - accessing /misc/cd, /misc/cdwriter, etc. will now mount the cd and
   you can access it.

Walter

Reply via email to