Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Nov 2000 21:54:35 -0800
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        "David J. Kanter" <david.kanter@mindspring.com>
Cc:        FreeBSD questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Disklabel question
Message-ID:  <20001105215435.F75251@149.211.6.64.reflexcom.com>
In-Reply-To: <20001105221959.A465@freebsd.mindspring.com>; from david.kanter@mindspring.com on Sun, Nov 05, 2000 at 10:19:59PM -0600
References:  <20001105221959.A465@freebsd.mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001105215435.F75251>