From owner-freebsd-questions@FreeBSD.ORG Wed Dec 3 18:46:19 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1156616A4CE for ; Wed, 3 Dec 2003 18:46:19 -0800 (PST) Received: from sccmmhc02.asp.att.net (sccmmhc02.asp.att.net [204.127.203.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA51C43F93 for ; Wed, 3 Dec 2003 18:46:17 -0800 (PST) (envelope-from david.fleck@mchsi.com) Received: from grond (12-216-14-105.client.mchsi.com[12.216.14.105]) by sccmmhc02.asp.att.net (sccmmhc02) with SMTP id <20031204024616mm200h4j2ce>; Thu, 4 Dec 2003 02:46:16 +0000 Date: Wed, 3 Dec 2003 20:46:16 -0600 (CST) From: David Fleck Sender: dcf@grond.sourballs.org To: Rob In-Reply-To: <3FCD5054.5040902@users.sourceforge.net> Message-ID: <20031203203647.C4195@grond.sourballs.org> References: <3FCD5054.5040902@users.sourceforge.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: amd documentation: why is it so confusing? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2003 02:46:19 -0000 On Wed, 3 Dec 2003, Rob wrote: > However, I am getting totally stuck in the amd manuals. Are the amd manuals > really that bad, or is it me? > > For example: > The FreeBSD handbook mentions amd in one sentence, by referring to the > manual pages of amd and amd.conf. So all I have are the manual pages > on the amd commands and files. The amd manual talks about a map file, > but there's nowhere information to be found on what the structure of > such a map file is. > > Is the creation of the amd-map file too trivial, or so complicated that > nobody dares explaining it....? > > Anyone who can point me to better help on this? While FreeBSD's man pages are usually extremely detailed, I have found that there is a layer of documentation - more complex and detailed than the Handbook, but more generalized and less in-depth than the man pages - that is simply missing in the FreeBSD world. The layer that would be occupied in Linux-land by the HOWTOs is made up of scattered web pages, mailing lists like this one, and newsgroups. Anyway, I found this very helpful for automounting: http://www.daemonnews.org/200202/automounting.html below is my /etc/amd.map file, which mounts 2 CD-ROM drives, a floppy, and a Zip drive. (Pretty much just like the article above.) # $FreeBSD: src/etc/amd.map,v 1.8 1999/09/13 17:09:07 peter Exp $ # /defaults type:=host;fs:=${autodir}/${rhost}/host;rhost:=${key} * opts:=rw,grpid,resvport,vers=2,proto=udp,nosuid,nodev 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/cdrom2 type:=program;fs:=/mnt/cdrom2;\ mount:="/sbin/mount mount /mnt/cdrom2";\ unmount:="/sbin/umount umount /mnt/cdrom2" localhost/zip type:=program;fs:=/mnt/zip;\ mount:="/sbin/mount mount /mnt/zip";\ unmount:="/sbin/umount umount /mnt/zip" localhost/floppy type:=program;fs:=/mnt/floppy;\ mount:="/sbin/mount mount /mnt/floppy";\ unmount:="/sbin/umount umount /mnt/floppy" -- David Fleck david.fleck@mchsi.com