From owner-freebsd-questions Wed Apr 8 13:04:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA09655 for freebsd-questions-outgoing; Wed, 8 Apr 1998 13:04:08 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from horton.iaces.com (horton.iaces.com [204.147.87.98]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA09592 for ; Wed, 8 Apr 1998 13:03:52 -0700 (PDT) (envelope-from proot@horton.iaces.com) Received: (from proot@localhost) by horton.iaces.com (8.8.7/8.8.7) id PAA12006; Wed, 8 Apr 1998 15:03:08 -0500 (CDT) From: "Paul T. Root" Message-Id: <199804082003.PAA12006@horton.iaces.com> Subject: Re: useful docs on amd? To: laufen@wi.net (Derek Laufenberg) Date: Wed, 8 Apr 1998 15:03:07 -0500 (CDT) Cc: FreeBSD-questions@FreeBSD.ORG In-Reply-To: from Derek Laufenberg at "Apr 8, 98 01:55:44 pm" X-Organization: USWEST !nterprise Networking - ACES X-Phone: (612) 664-3385 X-Fax: (612) 664-4779 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 600 Stinson Blvd, Fl 1S X-Address: Minneapolis, MN 55413 X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In a previous message, Derek Laufenberg said: > > I rtfm'd the amd and amq man pages and need a few more clues. The sample > file /etc/amd.map also wasn't a useful "Rossetta Stone". Can anyone > point me to another source? Or some sample map files? > > What I want to do is automount the various cdroms on my net, but I'd kinda > like to know what else may be done with it. > > BTW: I also grep'd thru the FAQ and Handbook on disk 3 of 2.2.5R and > found no info there. I ended up buying the 4.4BSD SMM book from Computer Literacy. The amd section is, apparently, encumbered, so it can't be on the net. The book is out of print, so it might be hard to find. Published by O'Reilly. Here's what I did for automounting: /etc/rc.conf: amd_enable="YES" # Run amd service with $amd_flags (or NO). amd_flags="-a /net -c 1800 -l syslog /host /etc/amd.map /home /etc/amd.homes" /defaults type:=host;fs:=${autodir}/${rhost};rhost:=${key} * opts:=rw,grpid,resvport,nfsv2 localhost type:=auto;fs:=${map};pref:=${key}/ localhost/cdrom type:=program;fs:=/mnt/cdrom;\ mount:="/sbin/mount mount /mnt/cdrom";\ unmount:="/sbin/umount umount /mnt/cdrom" localhost/floppy type:=program;fs:=/mnt/floppy;\ mount:="/sbin/mount mount /mnt/floppy";\ unmount:="/sbin/umount umount /mnt/floppy" /etc/fstab: /dev/wcd0c /mnt/cdrom cd9660 ro,noauto 0 0 /dev/fd0c /mnt/floppy msdos rw,noauto 0 0 ls -l /floppy /cdrom lrwxrwxrwx 1 root wheel 21 Apr 6 21:48 /cdrom -> /host/localhost/cdrom lrwxrwxrwx 1 root wheel 22 Apr 6 21:48 /floppy -> /host/localhost/floppy /etc/amd.homes is left as an exercise to the reader... :-) 1800 is probably too long (30 minutes), but I kinda want home dirs mounted longer. Here's a quetion for the community: Is there a way to override, so the cdrom can be umounted and ejected? Paul. -- "It depends on your definition of asleep. They were not stretched out. They had their eyes closed. They were seated at their desks with their heads in a nodding position." -- John Hogan, Commonwealth Edison Supervisor of News Information, responding to a charge by a Nuclear Regulatory Commission inspector that two Dresden Nuclear Plant operators were sleeping on the job. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message