[Parted-maintainers] Bug#483168: Parted crashes when using GPT and a volume is resized

Bernhard Miklautz miklautz at inqnet.at
Tue May 27 15:34:28 UTC 2008


Package: parted
Version: 1.7.1-5.1
Severity: important

*** Please type your report below this line ***

When increasing the size of a disk/volume containing GPT label, parted
recognizes that the backup GPT is not at the end anymore but fails when
it tries to fix this.

This is working in parted version 1.8.0+.


Error messages:

Error: The backup GPT table is not at the end of the disk, as it should
be.  This might mean that another operating system believes the disk is
smaller.  Fix, by moving the backup to the end (and removing the old
backup)?
Fix/Cancel? F

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 (1.7.1)
along with the error message below, the output of

        parted DEVICE unit co print unit s print

and additional information about your setup you consider important.

Assertion (n > 0) at ../../libparted/exception.c:112 in function
ped_log2() failed.



Steps to reproduce:

# create a image
dd if=/dev/zero of=testimg bs=1M count=100
# create a gpt on it
parted testimg mklabel gpt
# increase the image size
dd if=/dev/zero of=testimg bs=1M count=100 seek=100
# trigger the bug
parted testimg print
# Press F to Fix


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages parted depends on:
ii  libc6                     2.7-10         GNU C Library: Shared libraries
ii  libncurses5               5.6+20080308-1 Shared libraries for
terminal hand
ii  libparted1.7-1            1.7.1-5.1      The GNU Parted disk
partitioning s
ii  libreadline5              5.2-3          GNU readline and history
libraries

parted recommends no packages.

-- no debconf information





More information about the Parted-maintainers mailing list