Project

General

Profile

Actions

Bug #781

open

fdisk uses wrong geometry on usb flash drives

Added by corecode over 17 years ago. Updated over 3 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
Kernel
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

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

Actions #1

Updated by tuxillo over 11 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

Actions #2

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.

Actions #3

Updated by tuxillo over 3 years ago

  • Target version changed from 3.8 to 6.0
Actions

Also available in: Atom PDF