Date: Sat, 29 Jan 2011 18:31:56 -0800 From: "Duane H. Hesser" <duane.hesser@gmail.com> To: freebsd_user@guice.ath.cx Cc: freebsd-usb@freebsd.org Subject: Re: mount and umount large capacity external USB HDD (fstab) Message-ID: <201101300231.p0U2Vu9O003948@belinda.androcles.org> In-Reply-To: <ba8412236d2fe352fc1ee9c0401ca83b.squirrel@wtp1.ath.cx> References: <ba8412236d2fe352fc1ee9c0401ca83b.squirrel@wtp1.ath.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 29 Jan 2011 18:24:42 -0500 freebsd_user@guice.ath.cx wrote: > Hope we are posting to the correct list ... > > We__re using a laptop for our temp mail-server and would like to attach a > two (2) or three (3) TB external USB HDD for back-up purposes. Would > someone be kind enough to point us to a step-by-step article on what needs > to be entered in the /etc/fstab to allow us to leave the drive connected > and facilitate auto mount/umount across system reboots; the results Google > are presenting isn__t sufficient. Perhaps it__s or search terms that aren__t > on point. > > Thanks. The following link provides a 'recipe' for using gpart to partition the disk. http://scratching.psybermonkey.net/2010/06/freebsd-how-to-format-partition.html If you use the '-L' flag to newfs after creating one or more partitions, e.g. newfs -L "image" daXp1 This will create a device node in /dev/ufs (/dev/ufs/image). You may then create fstab entries as usual, but using the label device, e.g. /dev/ufs/image /usr/image ufs rw 2 2 Unless you add "noauto" to the options (rw,noauto) the system will fsck and mount the partition on boot. You can, of course, create several partitions on the disk, using a separate label (-L) for each. Is this what you needed?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101300231.p0U2Vu9O003948>