From owner-freebsd-questions@FreeBSD.ORG Tue Jul 8 15:28:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D41CC1065673 for ; Tue, 8 Jul 2008 15:28:26 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 9DAFB8FC23 for ; Tue, 8 Jul 2008 15:28:26 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id m68FPnxd079313; Tue, 8 Jul 2008 11:25:49 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id m68FPnZH079312; Tue, 8 Jul 2008 11:25:49 -0400 (EDT) (envelope-from jerrymc) Date: Tue, 8 Jul 2008 11:25:49 -0400 From: Jerry McAllister To: Zbigniew Szalbot Message-ID: <20080708152549.GC79128@gizmo.acns.msu.edu> References: <48731B33.2090502@lc-words.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48731B33.2090502@lc-words.com> User-Agent: Mutt/1.4.2.2i Cc: User Questions Subject: Re: how to mount USB drive on system startup 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: Tue, 08 Jul 2008 15:28:26 -0000 On Tue, Jul 08, 2008 at 09:45:55AM +0200, Zbigniew Szalbot wrote: > Dear all, > > I am trying to make sure my USB hard drive will be available when system > has finished booting. So: > $ grep usbd /etc/rc.conf > usbd_enable="YES" > > and > $ grep backup /etc/fstab > /dev/ad3s1d /backup ufs rw 2 2 > > But when I restart the system (FreeBSD 6.3-RELEASE-p1), it complains > that it cannot mount /backup. > > mount: /backup: No such file or directory > Mounting /etc/fstab filesystem failed. Startup aborted. > > I am sure there is something very simple that I need to do, so I'll > appreciate your suggestions! Thanks! Well, the first thing that comes to mind is, did you make the /backup mountpoint eg 'mkdir /backup' at some time? Is it really there? Next question is, did you build a filesystem on the USB? eg [fdisk] bsdlabel and newfs Check it by running fdisk and bsdlabel on it just to read what it thinks is there, as in: fdisk ad3 bsdlabel ad3s1 I make all my USB stuff as 'noauto' in /etc/fstab and then manually mount them later when needed and I have never had a problem - with either ufs or msdos filesystem types. I don't think you have to do it that way, but check it out and see if it makes any difference. eg change 'rw' to 'rw,noauto' in fstab, boot and then try to do the mount. If it makes a difference, then maybe there is something to file a PR on, but it would take further investigation to nail it down. ////jerry > > -- > Zbigniew Szalbot > www.LCWords.com