Comment 9 for bug 530071

Steve Perkins (steve-perkins) wrote :

Hi,
I've tried the daily build of "Alternate Install" from 12 March on a 4K drive (WD10-EARS) and although the partitions now align on good 4K boundaries, I think the algorithm for creating partitions is working in cylinder units rather than sectors. So using the default install I get partition 1 starting at cylinder 2048 which as LBA 32901120 is a 4KB boundary but it is 16.8GB in to the disk. I think we should be looking at LBA 2048 as the start of the partition, not cylinder.

root@ubuntu1003a3120310ears4k:~# parted
GNU Parted 2.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit cyl
(parted) p
Model: ATA WDC WD10EARS-00Y (scsi)
Disk /dev/sda: 121601cyl
Sector size (logical/physical): 512B/4096B
BIOS cylinder,head,sector geometry: 121601,255,63. Each cylinder is 8225kB.
Partition Table: msdos

Number Start End Size Type File system Flags
 1 2048cyl 120831cyl 118784cyl primary ext4 boot
 2 120832cyl 121600cyl 769cyl extended
 5 120832cyl 121600cyl 768cyl logical linux-swap(v1)

(parted) unit s
(parted) p
Model: ATA WDC WD10EARS-00Y (scsi)
Disk /dev/sda: 1953525168s
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 32901120s 1941166079s 1908264960s primary ext4 boot
 2 1941166080s 1953520064s 12353985s extended
 5 1941168128s 1953519615s 12351488s logical linux-swap(v1)

(parted) unit gb

(parted) p
Model: ATA WDC WD10EARS-00Y (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 16.8GB 994GB 977GB primary ext4 boot
 2 994GB 1000GB 6.33GB extended
 5 994GB 1000GB 6.32GB logical linux-swap(v1)