From owner-freebsd-questions@FreeBSD.ORG Mon Dec 4 15:21:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B49E16A4C8 for ; Mon, 4 Dec 2006 15:21:14 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 950E543CF4 for ; Mon, 4 Dec 2006 15:20:11 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 18225 invoked from network); 4 Dec 2006 15:20:44 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 4 Dec 2006 15:20:44 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id CC43128430; Mon, 4 Dec 2006 10:20:43 -0500 (EST) To: Robert Davison References: <444118.56083.qm@web25010.mail.ukl.yahoo.com> From: Lowell Gilbert Date: Mon, 04 Dec 2006 10:20:43 -0500 In-Reply-To: <444118.56083.qm@web25010.mail.ukl.yahoo.com> (Robert Davison's message of "Fri, 1 Dec 2006 22:37:01 +0000 (GMT)") Message-ID: <44mz63pu0k.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Automount X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2006 15:21:14 -0000 Robert Davison writes: > After some kind advice from this mail list, im trying to set up an amd automount so that my external hard drive doesnt have to be on all the time for the main server to boot. > > My fstab for the drives (there is two drives contained within a Sun StorEdge S1) reads: > > /dev/da0s1b none swap sw 0 0 > /dev/da0s1d /s none rw,noauto 0 0 > /dev/da1s1b none swap sw 0 0 > /dev/da1s2d /t none rw,noauto 0 0 > > I've mkdir -p both /s and /t as mount points > > I've then put the following lines into /etc/amd.map > > localhost/s type:=program:fs:=/s;\ > mount:="/sbin/mount mount /s";\ > unmount:="/sbin/umount umount /s" > > localhost/t type:=program:fs:=/t;\ > mount:="/sbin/mount mount /t";\ > unmount:="/sbin/umount umount /t" > > And finaly I've added the following to ,y /etc/rc.conf > > portmap_enable="YES" > amd_enable="YES" > amd_flags="-a /.amd_mnt -l syslog /host/etc/amd.map" > > when i reboot the server the external drives are not mounted. > > Am I missing a step here, or the point totally ?? I'm not sure about the exact syntax of what you have, but note that the automounter won't mount the filesystem until something tries to access it...