[Bug 605720] [NEW] fdisk creates partition beyond end of disk

Keith Cornwell 605720 at bugs.launchpad.net
Thu Jul 15 03:38:23 UTC 2010


Public bug reported:

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
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic-pae 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic-pae i686
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

** Affects: util-linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 lucid

-- 
fdisk creates partition beyond end of disk
https://bugs.launchpad.net/bugs/605720
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to util-linux in ubuntu.




More information about the kernel-bugs mailing list