Bug #781
openfdisk uses wrong geometry on usb flash drives
Description
hey,
fdisk uses some stupid geometry like 1/0/1 on usb flash drives. umass however detects the geometry correctly; it seems this information is not correctly passed along.
cheers
simon
Updated by tuxillo almost 12 years ago
- Description updated (diff)
- Status changed from New to In Progress
- Assignee deleted (
0)
Hi,
Seems still relevant. On a USB stick which is 32GB big:
dfly_i386# fdisk da8- Working on device /dev/da8 *
parameters extracted from device are:
cylinders=10679 heads=115 sectors/track=50 (5750 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=10679 heads=115 sectors/track=50 (5750 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 69,(unknown)
start 1701060722, size 1936286752 (945452 Meg), flag 6f
beg: cyl 10/ head 255/ sector 13;
end: cyl 367/ head 114/ sector 50
The data for partition 2 is:
sysid 10,(OS/2 Boot Manager or OPUS)
start 1965043315, size 1948279150 (951308 Meg), flag 63
beg: cyl 781/ head 111/ sector 63;
end: cyl 357/ head 80/ sector 50
The data for partition 3 is:
sysid 32,(unknown)
start 1701978209, size 1667853929 (814381 Meg), flag 65
beg: cyl 353/ head 99/ sector 44;
end: cyl 370/ head 112/ sector 33
The data for partition 4 is:
sysid 10,(OS/2 Boot Manager or OPUS)
start 2885681152, size 53696 (26 Meg), flag 69
beg: cyl 269/ head 97/ sector 50;
end: cyl 0/ head 0/ sector 0
Cheers,
Antonio Huete
Updated by tuxillo almost 11 years ago
- Description updated (diff)
- Category set to Kernel
- Assignee set to tuxillo
- Target version set to 3.8
Grab.