Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 2003 15:35:59 +0200
From:      Maxim Sobolev <sobomax@freebsd.org>
To:        current@freebsd.org, phk@freebsd.org
Subject:   disklabel is broken (GEOM related)
Message-ID:  <20030217133559.GA34599@vega.vega.com>

next in thread | raw e-mail | index | archive | help
Hi,

It seems that disklabel is currently broken on -current. In `read' mode it
reports incorrect information about disk layout:

root@notebook# disklabel -r ad0s1
# /dev/ad0s1c:
type: unknown
disk: amnesiac
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 240
sectors/cylinder: 15120
cylinders: 416
sectors/unit: 6289920
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:  6086656   233504    4.2BSD        0     0     0   # (Cyl.   15*- 417*)
  b:   200000    31240      swap                        # (Cyl.    2*- 15*)
  c:  6289920    30240    unused        0     0         # (Cyl.    2 - 417)
partition a: 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

However, in the `edit' mode everything is OK:

root@notebook# disklabel -e ad0s1
# /dev/ad0s1c:
type: unknown
disk: amnesiac
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 240
sectors/cylinder: 15120
cylinders: 416
sectors/unit: 6289920
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:  6086656   203264    4.2BSD        0     0     0   # (Cyl.   13*- 415*)
  b:   200000     1000      swap                        # (Cyl.    0*- 13*)
  c:  6289920        0    unused        0     0         # (Cyl.    0 - 415)

The problem doesn't exist in the my previous -current kernel compiled at the
beginning of January.

Please fix.

-Maxim

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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