Assertion (head_size <= 63) at ../../../libparted/labels/dos.c:659 in function
probe_partition_for_geom() failed.
This has something to do with manufacturers partitioning - here is what fdisk shows:
root@quabuntu:~# fdisk /dev/sdb
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Same issue with a Kingston 4GB DataTraveler.
Backtrace has 16 calls on stack: so.0(ped_ assert+ 0x2a) [0x16af0a] so.0(+0x42507) [0x1a2507] so.0(+0x43317) [0x1a3317] so.0(+0x4460c) [0x1a460c] so.0(+0xf7b1) [0x16f7b1] so.0(ped_ disk_add_ partition+ 0x262) [0x173032] so.0(+0x45fa3) [0x1a5fa3] so.0(+0x4619f) [0x1a619f] so.0(ped_ disk_new+ 0x75) [0x173e15] i686/cmov/ libc.so. 6(__libc_ start_main+ 0xe6) [0x31fbd6]
16: /lib/libparted.
15: /lib/libparted.
14: /lib/libparted.
13: /lib/libparted.
12: /lib/libparted.
11: /lib/libparted.
10: /lib/libparted.
9: /lib/libparted.
8: /lib/libparted.
7: parted() [0x804e389]
6: parted() [0x804f553]
5: parted() [0x80517da]
4: parted() [0x8052e51]
3: parted(main+0x2e) [0x8052f5e]
2: /lib/tls/
1: parted() [0x804c3f1]
Assertion (head_size <= 63) at ../../. ./libparted/ labels/ dos.c:659 in function _for_geom( ) failed.
probe_partition
This has something to do with manufacturers partitioning - here is what fdisk shows:
root@quabuntu:~# fdisk /dev/sdb
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): p
Disk /dev/sdb: 3980 MB, 3980394496 bytes
9 heads, 9 sectors/track, 95977 cylinders
Units = cylinders of 81 * 512 = 41472 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/sdb1 * 100 95978 3883072 c W95 FAT32 (LBA)
If I delete the partition, and recreate a new primary partition, then parted works fine.