Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2005 10:08:07 -0700
From:      Glenn Dawson <glenn@antimatter.net>
To:        "J.D. Bronson" <jbronson@wixb.com>, freebsd-questions@freebsd.org
Subject:   Re: bsdlabel question..
Message-ID:  <6.1.0.6.2.20050730100508.13b4b060@cobalt.antimatter.net>
In-Reply-To: <6.2.5.1.2.20050730073623.00c12950@wixb.com>
References:  <6.2.5.1.2.20050730073623.00c12950@wixb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 05:59 AM 7/30/2005, J.D. Bronson wrote:
># /dev/da0s1:
>type: SCSI
>disk: da0s1
>label:
>flags:
>bytes/sector: 512
>sectors/track: 63
>tracks/cylinder: 255
>sectors/cylinder: 16065
>cylinders: 2234
>sectors/unit: 35889147
>rpm: 15000
>interleave: 1
>trackskew: 0
>cylinderskew: 0
>headswitch: 0           # milliseconds
>track-to-track seek: 0  # milliseconds
>drivedata: 0
>
>8 partitions:
>#        size   offset    fstype   [fsize bsize bps/cpg]
>   a:  1048576        0    4.2BSD     2048 16384     8
>   b:  2097152  1048576    4.2BSD     2048 16384 28552
>   c: 35889147        0    unused        0     0         # "raw" part, 
> don't edit
>   d: 16777216  3145728    4.2BSD     2048 16384 28552
>   e:  8388608 19922944    4.2BSD     2048 16384 28552
>   f:  2097152 28311552    4.2BSD     2048 16384 28552
>   g:  2097152 30408704    4.2BSD     2048 16384 28552
>   h:  3383291 32505856    4.2BSD     2048 16384 28552
>
>
>...This is on a FreeBSD 5.4 machine with a Fuji 15K 18GB scsi drive.
>
>Does this disklabel look right? (28553 bps/cpg?)

I just checked the source for newfs, and my previous reply was 
correct.  Here's the relevant code that put's that number in the label:

         if (pp != NULL) {
                 pp->p_fstype = FS_BSDFFS;
                 pp->p_fsize = sblock.fs_fsize;
                 pp->p_frag = sblock.fs_frag;
                 pp->p_cpg = sblock.fs_fpg;
         }
The last line is the one that inserts that number.  sblock.fs_fpg is the 
number of frags per cylinder grounp.

-Glenn


>thanks!
>
>
>
>
>--
>J.D. Bronson
>Information Services
>Aurora Health Care - Milwaukee, Wisconsin
>Office: 414.978.8282 // Fax: 414.314.8787
>
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"




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