I have disk shared between FreeBSD and M$ Win, two slices, and got 
incorrect disklabel with GEOM kernel. Namely "cylinders" and 
"sectors/unit" fields are from _whole_ disk, not from just requested 
slice. 

It invalidates previously correct 'c' BSD partition too, 'disklabel' 
outputs several warnings about it. I am not familiar with GEOM. In which 
place it senses cylinders and secs/unit? Does anyone saw the same problem 
too?

Specific info attached below. Look at the wrong fields in disklabel. They
even can't be corrected using 'disklabel -e'.

----------------------------------------------------------------------
fdisk: can't get disk parameters on /dev/ad0; supplying dummy ones
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=89355 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=89355 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 12514572 (6110 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 778/ head 254/ sector 63
The data for partition 2 is:
sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
    start 12514698, size 77545692 (37864 Meg), flag 0
        beg: cyl 779/ head 1/ sector 1;
        end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
----------------------------------------------------------------------
# /dev/ad0s1c:
type: ESDI
disk: ad0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 5606
^^^^^^^^^^^^^^^^^^^^^^^ must be 778 (or 779?)
sectors/unit: 90069840
^^^^^^^^^^^^^^^^^^^^^^^ must be 12514572
rpm: 3600
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: 11900172   614400    4.2BSD     2048 16384    64   # (Cyl.   38*- 
778*)
  b:   614400        0      swap                        # (Cyl.    0 - 
38*)
  c: 12514572        0    unused        0     0         # (Cyl.    0 - 
778*)

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to