[Parted-maintainers] Bug#620107: parted: Assertion (last_usable <= disk->dev->length) failed
H�kan
f96hajo at chalmers.se
Wed Mar 30 06:11:45 UTC 2011
Package: parted
Version: 2.3-5
Severity: normal
root at zac:~# cat /proc/partitions
major minor #blocks name
8 0 1953514584 sda
8 1 977 sda1
8 2 19531250 sda2
8 3 7137588 sda3
8 4 1926843392 sda4
8 16 1953514584 sdb
8 32 293057352 sdc
8 48 293057352 sdd
9 127 586112000 md127
I compied (with dd) the first 22 GB of /dev/sda to /dev/sdc . Plan was then to remove the new /dev/sdc4 (which is too large & outside the disk) and create a new one that fits. However, parted dies on trying 'print', with the error:
---
root at zac:~# parted /dev/sdc
GNU Parted 2.3
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Error: Ogiltigt argument during seek for read on /dev/sdc
Retry/Ignore/Cancel? i
Error: The backup GPT table is corrupt, but the primary appears OK, so that will
be used.
OK/Cancel?
OK/Cancel? ok
Backtrace has 8 calls on stack:
8: /lib/libparted.so.0(ped_assert+0x31) [0x7fe296570351]
7: /lib/libparted.so.0(+0x444c1) [0x7fe2965a14c1]
6: /lib/libparted.so.0(ped_disk_new+0x75) [0x7fe296577505]
5: parted() [0x4070de]
4: parted(interactive_mode+0xf3) [0x40e183]
3: parted(main+0x8f) [0x40b1df]
2: /lib/libc.so.6(__libc_start_main+0xfd) [0x7fe295d90c4d]
1: parted() [0x405709]
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:
http://ftp.gnu.org/gnu/parted/
Please check this version prior to bug reporting.
If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:
http://www.gnu.org/software/parted
for further information.
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 (last_usable <= disk->dev->length) at
.../../../libparted/labels/gpt.c:718 in function _parse_header() failed.
Avbruten (SIGABRT)
---
Also parted 'rm 4' is unable to complete.
-- System Information:
Debian Release: 6.0.1
APT prefers squeeze-updates
APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38.2 (SMP w/2 CPU cores)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages parted depends on:
ii libblkid1 2.17.2-9 block device id library
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.48-5 The Linux Kernel Device Mapper use
ii libncurses5 5.7+20100313-5 shared libraries for terminal hand
ii libparted0debian1 2.3-5 The GNU Parted disk partitioning s
ii libreadline6 6.1-3 GNU readline and history libraries
ii libuuid1 2.17.2-9 Universally Unique ID library
parted recommends no packages.
Versions of packages parted suggests:
pn parted-doc <none> (no description available)
-- no debconf information
More information about the Parted-maintainers
mailing list