From owner-freebsd-usb@FreeBSD.ORG Sun Jan 30 02:59:51 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD3A21065672 for ; Sun, 30 Jan 2011 02:59:51 +0000 (UTC) (envelope-from duane.hesser@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7D57D8FC13 for ; Sun, 30 Jan 2011 02:59:51 +0000 (UTC) Received: by iyb26 with SMTP id 26so3882458iyb.13 for ; Sat, 29 Jan 2011 18:59:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:to:cc:subject:in-reply-to :references:reply-to:x-mailer:mime-version:content-type :content-transfer-encoding; bh=OKCaxHTOgFezqgJl68ZEQAE5joyyO0F3Vex2rWlxQkA=; b=efwcMlsLR8kbbLyVeCBerZdYrh/DK1SxTFunwTH8fCxjaySjvCmSOSyAY0JMZ5bnFm 92S9bRyXRHt8RS8rQkmhF6zzTokY72UPBjVoXcPW0k3QZys9BeYEDS6ttxjwPszP1E6p QVKL3twsx89DF4aFTAxDmSO8ySUKE/9Op7YyM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:cc:subject:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=AaUizEj5+g4s2HAmalmAhQPRjgrDKkWs467DmWEZHv2e6f63rlcNPAAOXZdGUIifA6 bd3bg9r/QmQfsB4MbArEj14RcI+2IbZqH/cvwmq6CQHAxFvOVsAE/EQnOLflQ9oRzT3N 6jMFu/xCqFnwuhmWJoyJfgjzQLfqbHqZ+pPRs= Received: by 10.42.230.8 with SMTP id jk8mr5986015icb.165.1296354719358; Sat, 29 Jan 2011 18:31:59 -0800 (PST) Received: from belinda.androcles.org ([199.204.207.9]) by mx.google.com with ESMTPS id gy41sm16415217ibb.23.2011.01.29.18.31.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 29 Jan 2011 18:31:58 -0800 (PST) Received: from belinda.androcles.org (localhost [127.0.0.1]) by belinda.androcles.org (8.14.4/8.14.4/8.13.3/1) with SMTP id p0U2Vu9O003948; Sat, 29 Jan 2011 18:31:56 -0800 (PST) (envelope-from duane.hesser@gmail.com) Message-Id: <201101300231.p0U2Vu9O003948@belinda.androcles.org> Date: Sat, 29 Jan 2011 18:31:56 -0800 From: "Duane H. Hesser" To: freebsd_user@guice.ath.cx In-Reply-To: References: X-Mailer: Sylpheed 3.0.3 (GTK+ 2.22.1; i386-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: mount and umount large capacity external USB HDD (fstab) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Duane.Hesser@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2011 02:59:51 -0000 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?