From owner-freebsd-questions@FreeBSD.ORG Wed Mar 28 21:49:20 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 0C90A16A402 for ; Wed, 28 Mar 2007 21:49:20 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id DB38013C4B7 for ; Wed, 28 Mar 2007 21:49:19 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 473E85190F for ; Wed, 28 Mar 2007 17:49:18 -0400 (EDT) Date: Wed, 28 Mar 2007 22:49:15 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070328224915.451e9c88@gumby.homeunix.com> In-Reply-To: <20070328211912.GA50959@gizmo.acns.msu.edu> References: <20070328211912.GA50959@gizmo.acns.msu.edu> X-Mailer: Claws Mail 2.8.1 (GTK+ 2.10.11; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Why is 'disklabel'ng a new drive so difficult? 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: Wed, 28 Mar 2007 21:49:20 -0000 On Wed, 28 Mar 2007 17:19:12 -0400 Jerry McAllister wrote: > Then, the only thing wrong is that your offsets should start at 0. > They mean within the slice, not raw disk sector 0. I was just looking at the bsdlable manpage, and it says: "For partition `c', * will be interpreted as an offset of 0. The first partition should start at offset 16, because the first 16 sectors are reserved for metadata." I normally use sysintall for new slices, but a few days ago I edited an old slice to turn the old root, swap, /tmp and /var partitions into a single partition d for a squid cache, and I ended-up with this: $ bsdlabel /dev/ad0s2 # /dev/ad0s2: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 141853950 0 unused 0 0 # ... d: 5242880 0 4.2BSD 2048 16384 28552 f: 16777216 5242880 4.2BSD 0 0 0 g: 119833854 22020096 4.2BSD 0 0 0 I'm wondering if I should put in an offset of 16 for the d partition