Date: Sat, 29 Jul 2000 17:36:16 -0700 (PDT) From: hvb@dsms.com To: freebsd-gnats-submit@FreeBSD.org Subject: bin/20295: fdisk -s give incorrect disk size Message-ID: <20000730003616.7147537B8EE@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 20295 >Category: bin >Synopsis: fdisk -s give incorrect disk size >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 29 17:40:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: harold barker >Release: 4.0-R >Organization: dsms >Environment: FreeBSD ks-1 4.0-RELEASE FreeBSD 4.0-RELEASE #4: Thu Jul 6 00:13:58 PDT 2000 root@nectarien.sm.dsms.com:/usr/src/sys/compile/dsms40aBP i386 r >Description: The output of fdisk -s does not agree with /stand/sysinstall or disklable for one of my IBM SCSI disk and maybe other. root@ks-1:bin[131] disklabel -r /dev/rda0 # /dev/rda0: type: SCSI disk: IBM label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 263 sectors/unit: 4226725 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] c: 4226725 0 unused 0 0 # (Cyl. 0 - 263*) root@ks-1:bin[132] fdsik -s zsh: correct 'fdsik' to 'fdisk' [nyae]? y /dev/rda0: 263 cyl 255 hd 63 sec Part Start Size Type Flags root@ks-1:bin[133] fdisk -I da0 ******* Working on device /dev/da0 ******* root@ks-1:bin[134] fdisk -s /dev/rda0: 263 cyl 255 hd 63 sec Part Start Size Type Flags 1: 63 4225032 0xa5 0x80 Sorry no time to chase this any more right now. Will check 4.1-R in a day or so >How-To-Repeat: /bin/dd if=/dev/zero of=$dev count=128 /sbin/fdisk -I $disk /sbin/disklabel -r -w da0 auto <--- will fail with can not change size of open >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000730003616.7147537B8EE>