From owner-freebsd-questions@FreeBSD.ORG Wed Mar 28 22:13:32 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 1200916A401 for ; Wed, 28 Mar 2007 22:13:32 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id D6FE013C4D5 for ; Wed, 28 Mar 2007 22:13:31 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l2SMCQxG051477; Wed, 28 Mar 2007 18:12:26 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l2SMCQXm051476; Wed, 28 Mar 2007 18:12:26 -0400 (EDT) (envelope-from jerrymc) Date: Wed, 28 Mar 2007 18:12:25 -0400 From: Jerry McAllister To: RW Message-ID: <20070328221225.GA51394@gizmo.acns.msu.edu> References: <20070328211912.GA50959@gizmo.acns.msu.edu> <20070328224915.451e9c88@gumby.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070328224915.451e9c88@gumby.homeunix.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org 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 22:13:32 -0000 On Wed, Mar 28, 2007 at 10:49:15PM +0100, RW wrote: > 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 I think that is only true for some old stuff in old systems. I believe I saw somewhere that it only is meaningful it the -A option is used. It might also be meaningful for the so-called 'dangerously dedicated' disk where you don't use a slice, but the raw drive. But, I never start it at an offset of 16 - always 0 if my partition is within a slice. ////jerry > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"