[I tried to submit this via Trac, but it said "500 Internal Server Error (Submission rejected as potential spam)"].
I also tried to debug this with gdb, but the parted I built complains like this: $ /usr/local/sbin/parted ../rhel5.2-image /usr/local/sbin/parted: error while loading shared libraries: libparted-1.8.so.8: cannot open shared object file: No such file or directory The trace below is from the the compiled but not installed tool. I installed RHEL5.2 on an ia64 system, resulting in /dev/sda1 (a 100MB FAT partition containing the bootloader, kernel, etc) and /dev/sda2 (the 4GB root filesystem). I used dd to copy the first 5GB of /dev/sda to the file rhel5.2-image. The GPT scheme keeps a secondary copy of the partition table at the end of the disk. My rhel5.2-image file is obviously missing that, since it only contains the first 5GB of the disk image. That might explain this assertion failure. But I hope parted can handle this situation more gracefully. Anyway, I copied rhel5.2-image to an x86 system and ran parted on it: $ parted/parted ../rhel5.2-image print WARNING: You are not superuser. Watch out for permissions. Backtrace has 8 calls on stack: 8: /home/helgaas/tmp/parted-1.8.8/libparted/.libs/libparted-1.8.so.8(ped_assert+0x3b) [0xb7f2133b] 7: /home/helgaas/tmp/parted-1.8.8/libparted/.libs/libparted-1.8.so.8 [0xb7f60d4a] 6: /home/helgaas/tmp/parted-1.8.8/libparted/.libs/libparted-1.8.so.8(ped_disk_new+0xa3) [0xb7f29da3] 5: /home/helgaas/tmp/parted-1.8.8/parted/.libs/lt-parted [0x804e4f9] 4: /home/helgaas/tmp/parted-1.8.8/parted/.libs/lt-parted(non_interactive_mode+0x88) [0x8053fd8] 3: /home/helgaas/tmp/parted-1.8.8/parted/.libs/lt-parted(main+0x6d) [0x805269d] 2: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7d5a450] 1: /home/helgaas/tmp/parted-1.8.8/parted/.libs/lt-parted [0x804c741] ... Assertion ((PedSector) PED_LE64_TO_CPU (gpt->AlternateLBA) <= disk->dev->length - 1) at gpt.c:820 in function gpt_read() failed. Ignore/Cancel? i Backtrace has 8 calls on stack: 8: /home/helgaas/tmp/parted-1.8.8/libparted/.libs/libparted-1.8.so.8(ped_assert+0x3b) [0xb7f2133b] 7: /home/helgaas/tmp/parted-1.8.8/libparted/.libs/libparted-1.8.so.8 [0xb7f60756] 6: /home/helgaas/tmp/parted-1.8.8/libparted/.libs/libparted-1.8.so.8(ped_disk_new+0xa3) [0xb7f29da3] 5: /home/helgaas/tmp/parted-1.8.8/parted/.libs/lt-parted [0x804e4f9] 4: /home/helgaas/tmp/parted-1.8.8/parted/.libs/lt-parted(non_interactive_mode+0x88) [0x8053fd8] 3: /home/helgaas/tmp/parted-1.8.8/parted/.libs/lt-parted(main+0x6d) [0x805269d] 2: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7d5a450] 1: /home/helgaas/tmp/parted-1.8.8/parted/.libs/lt-parted [0x804c741] ... Assertion (last_usable <= disk->dev->length) at gpt.c:689 in function _parse_header() failed. Ignore/Cancel? i Error: Can't have a partition outside the disk! Error: Can't have a partition outside the disk! _______________________________________________ bug-parted mailing list bug-parted@gnu.org http://lists.gnu.org/mailman/listinfo/bug-parted