Your report should contain the version of this release (2.3)
along with the error message below, the output of
parted DEVICE unit co print unit s print
and the following history of commands you entered. Also include any additional information about your setup you
consider important.
Assertion ((C * heads + H) * sectors + S == A) at ../../../libparted/labels/dos.c:682 in function probe_partition_for_geom() failed.
Aborted
I checked and the latest version is 2.3. I tried literally entering "parted DEVICE unit co print unit s print" and got an error. Realizing then that DEVICE was supposed to /dev/{fdisk} I ran it again against /dev/sda and got a similar errror:
address@hidden ~ $ sudo parted /dev/sda unit co print unit s print Backtrace has 13 calls on stack: 13: /lib/libparted.so.0(ped_assert+0x31) [0x7f8e2a06f5c1] 12: /lib/libparted.so.0(+0x3927a) [0x7f8e2a09a27a]
11: /lib/libparted.so.0(+0x39a73) [0x7f8e2a09aa73] 10: /lib/libparted.so.0(+0x3a72d) [0x7f8e2a09b72d] 9: /lib/libparted.so.0(ped_disk_add_partition+0x1cb) [0x7f8e2a075d3b] 8: /lib/libparted.so.0(+0x3bc74) [0x7f8e2a09cc74]
7: /lib/libparted.so.0(+0x3be65) [0x7f8e2a09ce65] 6: /lib/libparted.so.0(ped_disk_new+0x75) [0x7f8e2a076815] 5: parted() [0x40698e] 4: parted(non_interactive_mode+0x8c) [0x40c7cc] 3: parted(main+0x63) [0x40ab13]
2: /lib/libc.so.6(__libc_start_main+0xfe) [0x7f8e29877d8e] 1: parted() [0x404fa9]
You found a bug in GNU Parted! Here's what you have to do:
Don't panic! The bug has most likely not affected any of your data. Help us to fix this bug by doing the following:
Check whether the bug has already been fixed by checking the last version of GNU Parted that you can find at:
Your report should contain the version of this release (2.3)
along with the error message below, the output of
parted DEVICE unit co print unit s print
and the following history of commands you entered. Also include any additional information about your setup you
consider important.
Assertion ((C * heads + H) * sectors + S == A) at ../../../libparted/labels/dos.c:682 in function probe_partition_for_geom() failed.
Aborted
It appears the problem may be with Solid State Drives as I don't get that error on the next 3 Hitachi Deskstar 2 TB fdisks:
address@hidden ~ $ sudo parted /dev/sdb unit co print unit s print Model: ATA Hitachi HDS72202 (scsi) Disk /dev/sdb: 2000GB Sector size (logical/physical): 512B/512B Partition Table: msdos
Number Start End Size Type File system Flags
Model: ATA Hitachi HDS72202 (scsi) Disk /dev/sdb: 3907029168s Sector size (logical/physical): 512B/512B Partition Table: msdos
Number Start End Size Type File system Flags
address@hidden ~ $ sudo parted /dev/sdc unit co print unit s print
Model: ATA Hitachi HDS72202 (scsi) Disk /dev/sdc: 2000GB Sector size (logical/physical): 512B/512B Partition Table: msdos
Number Start End Size Type File system Flags
Model: ATA Hitachi HDS72202 (scsi)
Disk /dev/sdc: 3907029168s Sector size (logical/physical): 512B/512B Partition Table: msdos
Number Start End Size Type File system Flags
address@hidden ~ $ sudo parted /dev/sdd unit co print unit s print
Model: ATA Hitachi HDS72202 (scsi) Disk /dev/sdd: 2000GB Sector size (logical/physical): 512B/512B Partition Table: msdos
Number Start End Size Type File system Flags 1 1049kB 9437MB 9436MB primary
Model: ATA Hitachi HDS72202 (scsi) Disk /dev/sdd: 3907029168s Sector size (logical/physical): 512B/512B Partition Table: msdos
Number Start End Size Type File system Flags 1 2048s 18431999s 18429952s primary