Problem: parted coredump when partition incorrect.
Description:
address@hidden ~]# parted -s /dev/sdg u s p
Backtrace has 14 calls on stack:
14: parted(ped_assert+0x45) [0x413635]
13: parted(ped_geometry_read+0x96) [0x41a276]
12: parted(ped_geometry_read_alloc+0x54) [0x41a2e4]
11: parted(nilfs2_probe+0x6e) [0x4210de]
10: parted(ped_file_system_probe_specific+0x43) [0x4148c3]
9: parted(ped_file_system_probe+0x5b) [0x41498b]
8: parted [0x429a53]
7: parted [0x429c45]
6: parted(ped_disk_new+0x55) [0x419325]
5: parted [0x40c56f]
4: parted(non_interactive_mode+0x82) [0x412f42]
3: parted(main+0x64) [0x410454]
2: /lib64/tls/libc.so.6(__libc_start_main+0xdb) [0x302af1c4bb]
1: parted [0x40abfa]
Aborted (core dumped)
Try using fdisk to figure out
address@hidden ~]# fdisk -l /dev/sdg
Disk /dev/sdg: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdg1 1 121601 976760001 83 Linux
/dev/sdg2 121602 121602 0+ 83 Linux
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Disk information:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
=== START OF INFORMATION SECTION ===
Model Family: Seagate Constellation ES (SATA)
Device Model: ST31000524NS
Serial Number: 9WK0XEJY
LU WWN Device Id: 5 000c50 0269c1ae1
Firmware Version: SN11
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Size: 512 bytes logical/physical