From owner-freebsd-current@FreeBSD.ORG Fri Mar 17 22:58:58 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C21116A401 for ; Fri, 17 Mar 2006 22:58:58 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.49.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC73D43D45 for ; Fri, 17 Mar 2006 22:58:57 +0000 (GMT) (envelope-from paul@gromit.dlib.vt.edu) Received: from zappa.Chelsea-Ct.Org (pool-71-254-34-44.roa.east.verizon.net [71.254.34.44]) by gromit.dlib.vt.edu (8.13.4/8.13.4) with ESMTP id k2HMwnLB071408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 17 Mar 2006 17:58:51 -0500 (EST) (envelope-from paul@gromit.dlib.vt.edu) Received: from zappa.Chelsea-Ct.Org (localhost.Chelsea-Ct.Org [127.0.0.1]) by zappa.Chelsea-Ct.Org (8.13.4/8.13.4) with ESMTP id k2HMwh9A001464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 17 Mar 2006 17:58:43 -0500 (EST) (envelope-from paul@gromit.dlib.vt.edu) Received: (from paul@localhost) by zappa.Chelsea-Ct.Org (8.13.4/8.13.4/Submit) id k2HMwhUQ001463; Fri, 17 Mar 2006 17:58:43 -0500 (EST) (envelope-from paul@gromit.dlib.vt.edu) From: Paul Mather To: freebsd-current@freebsd.org In-Reply-To: <20060317204723.7F91416A51F@hub.freebsd.org> References: <20060317204723.7F91416A51F@hub.freebsd.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 17 Mar 2006 17:58:42 -0500 Message-Id: <1142636322.1188.15.camel@zappa.Chelsea-Ct.Org> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Cc: Dmitry Pryanishnikov Subject: Re: [patch] NetBSD disklabel support for geom_bsd X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Mar 2006 22:58:58 -0000 Dmitry Pryanishnikov wrote: > Look at my HDD layout from the POV of FreeBSD and NetBSD (I'll show > some > parts sufficient to understand the idea), start and size are in disk > sector > units: > > HDD area FreeBSD NetBSD Description in the > Start Size device device FreeBSD terms > > 0 312579695 ad0 wd0d Whole HDD > 63 2088387 ad0s1 wd0e First slice (DOS) > 147942585 81931500 ad0s3 wd0c Third slice (NetBSD) > 147942585 2097648 ad0s3a wd0a Partition 'a' of the 3rd > slice > 150040233 2097648 ad0s3b wd0b Partition 'b' of the 3rd > slice > > Of course, you'll get ad0s3a,b only after applying my patch, otherwise > they > aren't accessible from the FreeBSD. > > I hope you'll see what they do: > > 1. NetBSD's 'c' partition describes NetBSD slice (always?). > 2. NetBSD's 'd' partition describes the whole HDD (always?). AFAIK, statement (2) above holds only for a few architectures. According to the NetBSD disklabel man page, the "d" partition refers to the whole disk only on i386, hpcmips and arc platforms. On the rest, the whole disk is referred to by the "c" partition. I run NetBSD/alpha, and I've always used the "c" partition to refer to the whole "raw" disk. (I usually use the "d" partition for /var or /usr.) Furthermore, on NetBSD/alpha there's no concept of "slices," so far as I'm aware. Here is the partition table for drive sd0 on my NetBSD/alpha system: 8 partitions: # size offset fstype [fsize bsize cpg/sgs] a: 262144 0 RAID # (Cyl. 0 - 115*) b: 524288 262144 RAID # (Cyl. 115*- 347*) c: 8380080 0 unused 0 0 # (Cyl. 0 - 3707) d: 3483168 786432 RAID # (Cyl. 347*- 1889*) e: 4110480 4269600 RAID # (Cyl. 1889*- 3707) (Most of my system is mirrored via RAIDframe.) I don't know if FreeBSD/alpha has the notion of slices, as it's not supported on my Turbochannel alpha and so I've never run it... Cheers, Paul. -- e-mail: paul@gromit.dlib.vt.edu "Without music to decorate it, time is just a bunch of boring production deadlines or dates by which bills must be paid." --- Frank Vincent Zappa