From owner-freebsd-questions@FreeBSD.ORG Mon Jun 4 20:26:26 2012 Return-Path: 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 40D45106566C for ; Mon, 4 Jun 2012 20:26:26 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id F03E98FC12 for ; Mon, 4 Jun 2012 20:26:24 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q54KQMM5001398; Mon, 4 Jun 2012 14:26:22 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q54KQMjd001395; Mon, 4 Jun 2012 14:26:22 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 4 Jun 2012 14:26:22 -0600 (MDT) From: Warren Block To: Gary Aitken In-Reply-To: <4FCCBDF4.1030008@dreamchaser.org> Message-ID: References: <4FCCBDF4.1030008@dreamchaser.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Mon, 04 Jun 2012 14:26:22 -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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 20:26:26 -0000 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.