fdisk creates partition beyond end of disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Binary package hint: util-linux
fdisk creates a partition with the last cylinder 1 greater than the last available cylinder on the disk.
This is probably the root of the problem with this server installation bug: #569900
I was able to reproduce this on two 500GB drives, one was Seagate and the other WD. The total cylinder and sector count was the same on both drives.
# fdisk -l /dev/sda
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00068cd4
Starting with no partitions defined I started fdisk and turned off the DOS compatibility mode and changed the units to sectors.
I created partition 1 as Primary, starting at sector 2048 and size +1G.
I created partition 2 as Primary, starting at the default and using the rest of the drive.
If I change the units back to cylinders and then print the table the last cylinder on the second partition is 60802.
If I start with the units set to cylinders, it works properly and sets the last cylinder to 60801.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: util-linux 2.17.2-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-
Architecture: i386
Date: Wed Jul 14 23:17:46 2010
InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release i386 (20100427)
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, no user)
LANG=en_US.UTF-8
SourcePackage: util-linux
Changed in util-linux (Ubuntu): | |
importance: | Undecided → High |
Got the same error on an Optiplex 780 with two 500Gb disks...