Subject: Re: disklabel and df output
To: mac68k Liste <port-mac68k@netbsd.org>
From: Bradley R. Smith <brad5903@pobox.com>
List: port-mac68k
Date: 02/01/2000 13:34:28
I believe disklabel reports sizes in terms of sectors which are 512 bytes each, exactly half of 1kb. The disklabel(8) man page doesn't appear to mention this or describe how to interpret the other fields either.
Where would I look for that kind of information?
I've been reading the "The Design and Implementation of the 4.4 BSD OS" where I learned about blocks, fragments, and cylinder groups in the Berkeley Fast File System.
I'm guessing that:
fsize = fragment size in bytes
bsize = block size in bytes
cpg = cylinders per group?  <from a netbsd-i386 disklabel; what's cpp in the mac68k one below?>

I'm also guessing that the reason that fsize and bsize are 0 in the disklabel below is because it's "fictitious."  :)
The mac68k port doesn't actually put a disklabel on the disk, right? Because it conflicts with MacOS somehow?

On 2/1/00 at 15:49, Netzhaut@t-online.de (Dirk Hoppe) wrote:
> followed. I was surprised about the partition size in disklabel. For example
> a: 102400, shouldn´t it be 51200 (50 MB)?

> disklabel
> # /dev/rsd1c:
> type: SCSI
> disk: DCAS-3433W
> label: fictitious
> flags:
> bytes/sector: 512
> sectors/Track: 171
> tracks/cylinder: 6
> sectors/cylinder: 1026
> cylinders: 8205
> total sectors: 8467200
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitsch: 0          #milliseconds
> track-to-track seek: 0  #milliseconds
> drivedata: 0
> 
> 7 partitions:
> #       size        offset      fstype      [fsize  bsize   cpp]
>     a:  102400      1201        4.2BSD           0      0     0
>     b:  327680      103601      swap
>     c:  8467200     0           unused           0      0
>     d:  204800      1864881     4.2BSD           0      0     0
>     e:  307200      2069681     4.2BSD           0      0     0
>     f:  6090319     2376881     HFS
>     g:  1433600     431281      4.2BSD           0      0     0
> disklabel: boot block size 0
> disklabel: super block size 0