From owner-freebsd-current@FreeBSD.ORG Wed Apr 30 03:44:51 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B70C37B401 for ; Wed, 30 Apr 2003 03:44:51 -0700 (PDT) Received: from arthur.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A56743FB1 for ; Wed, 30 Apr 2003 03:44:50 -0700 (PDT) (envelope-from simon@arthur.nitro.dk) Received: by arthur.nitro.dk (Postfix, from userid 1000) id 751A810BF82; Wed, 30 Apr 2003 12:44:48 +0200 (CEST) Date: Wed, 30 Apr 2003 12:44:48 +0200 From: "Simon L. Nielsen" To: freebsd-current@freebsd.org Message-ID: <20030430104448.GD400@nitro.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4zI0WCX1RcnW9Hbu" Content-Disposition: inline User-Agent: Mutt/1.5.4i cc: Poul-Henning Kamp Subject: Disklabel bug? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2003 10:44:51 -0000 --4zI0WCX1RcnW9Hbu Content-Type: multipart/mixed; boundary="5QAgd0e35j3NYeGe" Content-Disposition: inline --5QAgd0e35j3NYeGe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello I have a disk with two slices since I need more partions than on slice can hold. I have one 20GB and one ~200GB but when I edit the disklabels for the two slices it looks like disklabel(8) get the total size of the slize wrong (sectors/unit). It uses the size of the entire disk instead of the slice causing disklabel to complain about the c partion being wrong size. It looks like disklabel gets the sectors/unit directly from Geom trough ioctl so I have put the output of sysctl -b kern.geom.confxml on http://simon.nitro.dk/freebsd/files/misc/geomconfxml (since it is a bit large for a maillinglist). The problem disk is da0 but ad0 on the same system seems to have the same behavior. Anybody else seeing this ? This on a -CURRENT from 25/4. --=20 Simon L. Nielsen --5QAgd0e35j3NYeGe Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=disklabel1 Content-Transfer-Encoding: quoted-printable # /dev/da0s1c: type: SCSI disk: da0s1 label:=20 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 29187 sectors/unit: 468903936 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0=20 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 41929587 0 unused 0 0 # (Cyl. 0 - 2609*) Warning, partition c doesn't cover the whole unit! Warning, An incorrect partition c may cause problems for standard system ut= ilities --5QAgd0e35j3NYeGe Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=disklabel2 Content-Transfer-Encoding: quoted-printable # /dev/da0s2c: type: SCSI disk: da0s2 label:=20 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 29187 sectors/unit: 468903936 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0=20 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 426959505 0 unused 0 0 # (Cyl. 0 - 2657= 6) Warning, partition c doesn't cover the whole unit! Warning, An incorrect partition c may cause problems for standard system ut= ilities --5QAgd0e35j3NYeGe Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=fdisk ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=29187 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=29187 heads=255 sectors/track=63 (16065 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 41929587 (20473 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 41929650, size 426959505 (208476 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: The data for partition 4 is: --5QAgd0e35j3NYeGe-- --4zI0WCX1RcnW9Hbu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+r6kg8kocFXgPTRwRAoJ4AJ9mOcO+7JKRQuJXKquL4niWobmAmgCgzOjc suLm7iYpo7bINnC9Q/UexW4= =xpa6 -----END PGP SIGNATURE----- --4zI0WCX1RcnW9Hbu--