From owner-freebsd-questions@FreeBSD.ORG Fri Dec 1 22:47:24 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 ABEE816A403 for ; Fri, 1 Dec 2006 22:47:24 +0000 (UTC) (envelope-from rob_27_preston@yahoo.co.uk) Received: from web25009.mail.ukl.yahoo.com (web25009.mail.ukl.yahoo.com [217.12.10.45]) by mx1.FreeBSD.org (Postfix) with SMTP id 7F29C43C9D for ; Fri, 1 Dec 2006 22:47:07 +0000 (GMT) (envelope-from rob_27_preston@yahoo.co.uk) Received: (qmail 55193 invoked by uid 60001); 1 Dec 2006 22:47:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=A8HD2wa1zVeBgPjylH+tvKgknGu+KvGzPKTLEAJymYL6ZaNQrVtoxTzebvVCUk5h/xNfMcNCenAzfuTLd6FQbZa0v5QWSBtTZGxO/3cECF1eLbByeMo1Znzh+6W1x7gcgtf7lEJJMTs3oKDc84H8EE24erSI0dE4rtM1H+WSh94=; X-YMail-OSG: vgjr.CgVM1nHauXCCLqxu5E.q9YeST9wpFseDmpm1NGJnOGnFbdnSo_cR0gDtAzLKr55755Y8R_7zTEf8uOIHNAq._wMBPlQg.RR4WyjMyVsBqMxPhJ6XOJypdrnHc5Xv96sT_tu9kNK Received: from [83.67.67.49] by web25009.mail.ukl.yahoo.com via HTTP; Fri, 01 Dec 2006 22:47:22 GMT Date: Fri, 1 Dec 2006 22:47:22 +0000 (GMT) From: Robert Davison To: Lowell Gilbert In-Reply-To: <44k61bn04t.fsf@be-well.ilk.org> MIME-Version: 1.0 Message-ID: <952187.54842.qm@web25009.mail.ukl.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Automount X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2006 22:47:24 -0000 I've read various documents on amd, but am having issues... 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, but I do get a .snap file now in my / if this means anything ? Am I missing a step here, or the point totally ?? Lowell Gilbert wrote: Robert Davison writes: > I've just installed an external SCSI hard drive in the form of a sun StorEdge. All is working well. > > The StorEdge has two drives called da0 and da1 respectivly. > > I've put entries into /etc/fstab so that they are mounted on boot as /s and /t. My question is....... > > If I dont have the StorEdge running 24/7 and I reboot the server, the boot process fails when mounting the file systems as /s /t can not be reached. > > Is there anyway of writing an automount line in fstab that is smart enough to know that if the /s and /t are not reachable then continue with the boot process without stopping. My fstab enty is... > > /dev/da0s1d /s ufs rw 0 0 > > I see that the cdrom has the entry > > /dev/cd0 /cdrom cd9660 ro,noauto 0 0 > > Is it simply a case of changing the mount option to rw,noauto ?? To start with, yes. If you don't use "noauto", then the disk *has* to be there at boot. You might want to put in some devfs rules to mount the disks when they show up. Or an automounter. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" Send instant messages to your online friends http://uk.messenger.yahoo.com