From owner-freebsd-questions Sun Nov 5 21:54:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id DDA4E37B4CF for ; Sun, 5 Nov 2000 21:54:50 -0800 (PST) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Sun, 5 Nov 2000 21:53:26 -0800 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id eA65sZH63124; Sun, 5 Nov 2000 21:54:35 -0800 (PST) (envelope-from cjc) Date: Sun, 5 Nov 2000 21:54:35 -0800 From: "Crist J . Clark" To: "David J. Kanter" Cc: FreeBSD questions Subject: Re: Disklabel question Message-ID: <20001105215435.F75251@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <20001105221959.A465@freebsd.mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20001105221959.A465@freebsd.mindspring.com>; from david.kanter@mindspring.com on Sun, Nov 05, 2000 at 10:19:59PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Nov 05, 2000 at 10:19:59PM -0600, David J. Kanter wrote: > I'm confused with disklabel: Should the disklabel output show labels for > *only* my FreeBSD partition, or should it be aware of my Windows partition > as well? Looks like we have some slice-partition confusion. > Currently, I've got Windows (ad0s1) and FreeBSD (ad0s2) installed, and am > able to mount the Windows partition just fine. But should disklabel know > about this partition? ad0s1 and ad0s2 are _slices_ (MS-DOS partitions) and NOT FreeBSD partitions. > Here's my disklabel output: > > # size offset fstype [fsize bsize bps/cpg] > a: 131072 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 8*) > b: 524288 131072 swap # (Cyl. 8*- 40*) > c: 8177085 0 unused 0 0 # (Cyl. 0 - 508) > e: 65536 655360 4.2BSD 1024 8192 16 # (Cyl. 40*- 44*) > f: 65536 720896 4.2BSD 1024 8192 16 # (Cyl. 44*- 48*) > g: 5120000 786432 4.2BSD 1024 8192 16 # (Cyl. 48*- 367*) > h: 2270653 5906432 4.2BSD 1024 8192 16 # (Cyl. 367*- 508*) > > However, there's a Windows partition before the "a" slice, so why does > disklabel say slice "a" runs from cylinders 0 through 8? Are these cylinders > 0 through 8 relative to the FreeBSD partition? disklabel only operates on a single slice and shows you the partitions within the slice. The cylinder numbers on the right are complete fiction and are only there for informational purposes. Use fdisk(8) if you want to look at slices. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message