Subject: bin/37414: fdisk suggests input formats it doesn't accept
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <rillig@NetBSD.org>
List: netbsd-bugs
Date: 11/21/2007 10:10:01
>Number:         37414
>Category:       bin
>Synopsis:       fdisk suggests input formats it doesn't accept
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 21 10:10:00 +0000 2007
>Originator:     Roland Illig
>Release:        NetBSD 4.99.30
>Organization:
>Environment:
>Description:

>How-To-Repeat:

Which partition do you want to change?: [none] 0
The data for partition 0 is:
Primary DOS with 32 bit FAT - LBA (sysid 12)
    start 63, size 976751937 (476930 MB, Cyls 0-60799)
sysid: [0..255 default: 12] 
start: [0..60801cyl default: 63, 0cyl, 0MB] 
size: [0..60801cyl default: 976751937, 60800cyl, 476930MB] 20480MB
20480MB is not a valid sector number.

The choices in the text suggested to me that I could input the size of the partition in megabytes, but fdisk doesn't accept that.

>Fix:
Allow user input in the formats that are specified in the brackets.