Now I can't update my bootblocks to new ones using 'disklabel -B da0s1',
checklabel() disklabel function return error preventing actual write with 
following diagnostic:

partition b: partition extends past end of unit
partition c: partition extends past end of unit
Warning, partition c doesn't start at 0!
Warning, An incorrect partition c may cause problems for standard system utilities
Warning, partition d: size 0, but offset 32
Warning, partition e: size 0, but offset 32
Warning, partition f: size 0, but offset 32
Warning, partition g: size 0, but offset 32
Warning, partition h: size 0, but offset 32

In fact, this is exact the same diagnostic as from 'disklabel -r da0s1':

# /dev/da0s1c:
type: SCSI
disk: da0s1
label: 
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 17500
sectors/unit: 35842016
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: 34611200       32    4.2BSD     2048 16384    64   # (Cyl.    0*- 16900)
  b:  1230816 34611232      swap                        # (Cyl. 16900*- 17500*)
  c: 35842016       32    unused        0     0         # (Cyl.    0*- 17500*)
partition b: partition extends past end of unit
partition c: partition extends past end of unit
Warning, partition c doesn't start at 0!
Warning, An incorrect partition c may cause problems for standard system utilities
Warning, partition d: size 0, but offset 32
Warning, partition e: size 0, but offset 32
Warning, partition f: size 0, but offset 32
Warning, partition g: size 0, but offset 32
Warning, partition h: size 0, but offset 32

For comparison see just 'disklabel da0s1' output which indicate no errors 
and no mysterious offset 32 in the data:

# /dev/da0s1c:
type: SCSI
disk: da0s1
label: 
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 17500
sectors/unit: 35842016
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: 34611200        0    4.2BSD     2048 16384    64   # (Cyl.    0 - 16899)
  b:  1230816 34611200      swap                        # (Cyl. 16900 - 17500*)
  c: 35842016        0    unused        0     0         # (Cyl.    0 - 17500*)

Please fix this GEOM bug, to allow to update bootblocks at least.

-- 
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