Red Hat Bugzilla – Bug 585468
Assertion head_size <= 63 at dos.c:678 in function probe_partition_for_geom()
Last modified: 2011-06-14 19:25:10 EDT
Description of problem:
when using gparted or parted on a fresh usb stick, it crashs with the following trace:
libparted : 2.1
Backtrace has 15 calls on stack:
15: /lib64/libparted-2.1.so.0(ped_assert+0x31) [0x37f4011f61]
14: /lib64/libparted-2.1.so.0() [0x37f403b6a6]
13: /lib64/libparted-2.1.so.0() [0x37f403be1e]
12: /lib64/libparted-2.1.so.0() [0x37f403cabd]
11: /lib64/libparted-2.1.so.0(ped_disk_add_partition+0x1cb) [0x37f40185fb]
10: /lib64/libparted-2.1.so.0() [0x37f403df31]
9: /lib64/libparted-2.1.so.0() [0x37f403e0d5]
8: /lib64/libparted-2.1.so.0(ped_disk_new+0x75) [0x37f40190c5]
7: /usr/sbin/gpartedbin() [0x446b44]
6: /usr/sbin/gpartedbin() [0x45644c]
5: /usr/sbin/gpartedbin() [0x46fd07]
4: /usr/lib64/libglibmm-2.4.so.1() [0x37f5434acd]
3: /lib64/libglib-2.0.so.0() [0x37edc64e84]
2: /lib64/libpthread.so.0() [0x37ecc07951]
1: /lib64/libc.so.6(clone+0x6d) [0x37ec4e4d3d]
Assertion (head_size <= 63) at dos.c:677 in function probe_partition_for_geom() failed.
GParted crashs immedently, parted crashs after an operation like toogle.
Version-Release number of selected component (if applicable):
gparted.x86_64 0.5.2-1.fc13 @fedora
parted.x86_64 2.1-7.fc13 @updates-testing
Steps to Reproduce:
1. gparted /dev/sdf (an 4 GB usb stick)
Gparted shows up
The problem is not reproducable when being performed on the harddisks of the system.
Disk /dev/sdf: 4007 MB, 4007657472 bytes
86 heads, 22 sectors/track, 4137 cylinders
Units = cylinders of 1892 * 512 = 968704 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdf1 5 4138 3909696 c W95 FAT32 (LBA)
Sorry for not noticing this much much earlier. Seems to be a parted bug (?), re-assigning.
The problem is that this usb stick is reporting 86 heads, which is just plain out of spec, a disk cannot have more then 63 heads.
This is likely caused by some bogus partition table on there, try:
dd if=/dev/zero of=/dev/sdf bs=1024 count=1024
Then unplug and replug the usb stick, and see if things are better now.
Note this will destroy the partition table and thus any data on the stick!!
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
*** Bug 638694 has been marked as a duplicate of this bug. ***
*** Bug 675138 has been marked as a duplicate of this bug. ***
parted needs to stop using PED_ASSERT for partitions where it cannot calculate a CHS value. See http://lists.alioth.debian.org/pipermail/parted-devel/2011-February/003805.html
*** Bug 684399 has been marked as a duplicate of this bug. ***
parted-2.3-9.fc15 has been submitted as an update for Fedora 15.
*** Bug 702654 has been marked as a duplicate of this bug. ***