Date: Wed, 30 Apr 2003 12:44:48 +0200 From: "Simon L. Nielsen" <simon@nitro.dk> To: freebsd-current@freebsd.org Cc: Poul-Henning Kamp <phk@phk.freebsd.dk> Subject: Disklabel bug? Message-ID: <20030430104448.GD400@nitro.dk>
next in thread | raw e-mail | index | archive | help
--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: <UNUSED> The data for partition 4 is: <UNUSED> --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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030430104448.GD400>
