Recently, Somebody Somewhere wrote these words
> In trying to automate my removable media, I have installed
> autofs-4.1.3. Everything works fine except that I cannot open the
> CDROM drive by pressing the 'eject' button unless I issue (as root)
> <umount /dev/cdrom>.
>
> My understanding was the a fs mounted by automount would be
> automatically unmounted after the "timeout." I have set this value to
> 3 seconds in /etc/sysconfig/autofs.conf. I've looked at the automount
> hint and the HOWTO's listed there and cannot discover what I have done
> or not done. With the exception of changing the timeout value, I have
> done no hacking on any of the other autofs files, which I installed
> from blfs-bootscripts.
>
> Am I correct in my understanding? Is there anything else I should do
> that may not be covered in the book?
>
I personally flee from udev and automounting, but would feel that there
must be a sensible minimum time in there. 3 seconds is a ridicolous
timeout it is far too short. It would drive me up the wall if things
like cdroms unmounted while I was typing something like
ls -l /cdrom/subdir/subdir/subdir/*.pdf
Try 10 minutes. Then complain. BTW, /etc/sysconfig/ files are for init
scripts mainly.
Lastly, if you happen to cd into the cdrom directories, or open any file
it will hardly close them automagically. There's a thing that does more
or less what you want in windows - the 'sub seven' virus. You can even
do it remotely! But you may have a little difficulty in porting it ;-).
--
With best Regards,
Declan Moriarty.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page