From owner-freebsd-questions@FreeBSD.ORG Mon Jun 4 20:59:45 2012 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 372341065672 for ; Mon, 4 Jun 2012 20:59:45 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) by mx1.freebsd.org (Postfix) with ESMTP id F19348FC16 for ; Mon, 4 Jun 2012 20:59:44 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id q54KxiGj003391; Mon, 4 Jun 2012 14:59:44 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <4FCD21C0.50200@dreamchaser.org> Date: Mon, 04 Jun 2012 14:59:44 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120528 Thunderbird/12.0.1 MIME-Version: 1.0 To: Warren Block References: <4FCCBDF4.1030008@dreamchaser.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Mon, 04 Jun 2012 14:59:44 -0600 (MDT) Cc: FreeBSD Mailing List Subject: Re: bsdlabel geometry params X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 20:59:45 -0000 On 06/04/12 14:26, Warren Block wrote: > On Mon, 4 Jun 2012, Gary Aitken wrote: > >> According the the handbook, one should do the following to set up a new disk: >> >> 1 dd if=/dev/zero of=/dev/da1 bs=1k count=1 >> 2 fdisk -BI da1 #Initialize your new disk >> 3 bsdlabel -B -w da1s1 auto #Label it. >> 4 bsdlabel -e da1s1 # Edit the bsdlabel just created and add any partitions. >> 5 mkdir -p /1 >> 6 newfs /dev/da1s1e # Repeat this for every partition you created. >> 7 mount /dev/da1s1e /1 # Mount the partition(s) >> 8 vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab. >> >> In step #4, bsdlabel gives you a label with zeros for fsize, bsize, bps/cpg >> Is it necessary to fill these in, or is there a way to get some reasonable defaults? >> "newfs -N" will give you numbers for bsize and fsize, but what about bps/cpg? >> >> What does the install process do for this step? I don't remember ever having to deal with it. > > What part of the Handbook? I would suggest using gpart(8), it makes GPT partitions easy, and nasty old MBR partitions aren't any worse than with fdisk/bsdlabel. 19.3.2 Thanks