[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Automount (amd) cdrom and floppy



On Thu, 20 Feb 1997, Hayao Nakahara wrote:
>Yes you can.
>The followings are some of my /etc/adm/amd.xxx files.
I only add a few tips

>On such configuration, I can 
>	mount cdrom by accessing "/l/cd",
>	mount floppy with ext2 format by "/l/fd"
>	mount floopy with fat format by "/l/msdos".
>and explicitly umount cdrom by "amq -u /l/cd", and so forth.
>
>================= /etc/amd/amd.master ======================
>-x fatal,error,user,warn,noinfo,nostats -r -a /a
try add -c 20 -w 20 here

>/n	/etc/amd/amd.net
>/home	/etc/amd/amd.home
>/l	/etc/amd/amd.local
>/r	/etc/amd/amd.remote
>================= /etc/amd.amd.local =======================
>cdrom	opts:=utimeout=12000,rw,nosuid;dev:=/dev/scd0;fs:=/cdrom;\
>	type:=program;\
>	mount:="/bin/mount mount -t iso9660 -o ro,nosuid ${dev} ${fs}";\
>	unmount:="/bin/umount umount ${fs}"

>fd	opts:=utimeout=1200,rw,intr,nosuid;dev:=/dev/fd0;fs:=/floppy;\
>	type:=program;\
>	mount:="/bin/mount mount -t ext2 ${dev} ${fs}";\
>	unmount:="/bin/umount umount ${fs}"
>msdos	opts:=utimeout=1200,rw,intr,nosuid;dev:=/dev/fd0;fs:=/floppy;\
>	type:=program;\
>	mount:="/bin/mount mount -t msdos ${dev} ${fs}";\
>	unmount:="/bin/umount umount ${fs}"
you could put these  two into one by saying -t auto instead of explicitly
giving the type on the command line. And utimeout=10 unmounts the floppy
almost immediately. Just look at the drive and if the light is off for more
than a few seconds (and you didn't do a big operation lately) it is rather
safe to take it out.



Nils

--
     \              /                        | Nils Rennebarth
    --* WINDOWS 42 *--                       | Schillerstr. 61 
     /              \                        | 37083 Göttingen
                                             | ++49-551-71626
   Micro$oft's final answer                  | http://www.nus.de/~nils


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: