From owner-freebsd-questions Mon Jul 10 21: 6:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fedde.littleton.co.us (fedde.littleton.co.us [216.17.174.44]) by hub.freebsd.org (Postfix) with ESMTP id 0E3AC37BC0C for ; Mon, 10 Jul 2000 21:06:03 -0700 (PDT) (envelope-from cfedde@fedde.littleton.co.us) Received: from fedde.littleton.co.us (localhost [127.0.0.1]) by fedde.littleton.co.us (8.11.0.Beta3/8.11.0.Beta3) with ESMTP id e6B45sI49289; Mon, 10 Jul 2000 22:05:54 -0600 (MDT) Message-Id: <200007110405.e6B45sI49289@fedde.littleton.co.us> To: Harry Putnam Cc: freebsd-questions@FreeBSD.ORG Subject: Re: disklabel output confusing or meaningless In-Reply-To: From: Chris Fedde Date: Mon, 10 Jul 2000 22:05:54 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 10 Jul 2000 20:16:50 -0700 Harry Putnam wrote: +------------------ | Using disklabel -r /dev/ad0s4e ( a recently created | `anex' partition) | | I see what appears to be at best confusing and at worst nonsense | information. | | [...] snip | 8 partitions: | # size offset fstype [fsize bsize bps/cpg] | c: 3213000 0 unused 0 0 # (Cyl. 0 - 199) | e: 3213000 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 199) | root@satellite / +------------------ FreeBSD has a much longer history than Linux, because of this it sometimes reports in what appear to be odd ways. There is a section somewhere in the handbook that goes over this but here is the short of it. Partitions on a disk are named using a letter from "a" to "g". By convention partition c is the whole disk. Size and offset are quoted in blocks of 512 bytes. Fstype is looked up in a table that is defined in /usr/include/sys/disklabel.h. The other columns have to do with file allocation specifics on the disk. Hope this helps chris -- Chris Fedde 303 773 9134 If it's not in the book, and it was not covered in the lecture, then we'll cover it on the test. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message