Hi,

parted crashes on a linux environment with a disk previously used for zfs,
basically due to CHS geometry saved in disk label.


 ./parted/parted /dev/vdiska
GNU Parted 3.1
Using /dev/vdiska
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p

Warning: The disk CHS geometry (1305,255,63) reported by the operating
system does not match the geometry stored on the disk label (65535,575,31).
Ignore/Cancel? I
Warning: The disk label describes a disk bigger than /dev/vdiska.
Ignore/Cancel? I
Model: Unknown (unknown)
Disk /dev/vdiska: 10.7GB
Sector size (logical/physical): 512B/512B
Partition Table: sun
Disk Flags:

Number  Start  End  Size  File system  Flags

(parted) p
Backtrace has 9 calls on stack:
  9: /root/parted-3.1/libparted/.libs/libparted.so.2(+0x397b4)
[0xfffff8010003d7b4]
  8:
/root/parted-3.1/libparted/.libs/libparted.so.2(ped_disk_new_fresh+0x50)
[0xfffff8010001c510]
  7: /root/parted-3.1/libparted/.libs/libparted.so.2(ped_disk_new+0x48)
[0xfffff8010001e468]
  6: /root/parted-3.1/parted/.libs/lt-parted() [0x1061e4]
  5: /root/parted-3.1/parted/.libs/lt-parted(command_run+0x8) [0x1049a8]
  4: /root/parted-3.1/parted/.libs/lt-parted(interactive_mode+0x110)
[0x10bc70]
  3: /root/parted-3.1/parted/.libs/lt-parted(main+0x90) [0x1080f0]
  2: /lib64/libc.so.6(__libc_start_main+0x100) [0xfffff80100402e40]
  1: /root/parted-3.1/parted/.libs/lt-parted(_start+0x2c) [0x10484c]


Assertion (bios_geom->cylinders == (PedSector) (dev->length / cyl_size)) at
sun.c:189 in function sun_alloc() failed.

Aborted


Thanks,
-----
Guru

Reply via email to