Debian Bug report logs - #405098
Resizing/copying ext3 partitions with dir_index and resize_inode not supported

Package: partman-partitioning; Maintainer for partman-partitioning is Debian Install System Team <debian-boot@lists.debian.org>; Source for partman-partitioning is src:partman-partitioning.

Reported by: "Adam Porter" <adam@alphapapa.net>

Date: Sun, 31 Dec 2006 08:33:02 UTC

Severity: important

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#405098; Package debian-installer. Full text and rfc822 format available.

Acknowledgement sent to "Adam Porter" <adam@alphapapa.net>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: "Adam Porter" <adam@alphapapa.net>
To: submit@bugs.debian.org
Subject: Many errors and eventual failure when "Copy data from partition" used on partition with dir_index
Date: Sun, 31 Dec 2006 02:28:07 -0600
Package: debian-installer
Severity: important

i386 using RC1 netinst image

I am copying my Debian installation onto a new hard drive with LVM and
encrypted swap and /tmp.  I tried to use the installer's option to
"Copy data from partition," but after I selected the source partition,
it complained about parted not being able to resize a partition that
had dir_index enabled, saying that parted can only resize it if it
disables dir_index first.  I don't know why it would need to resize
any of the partitions just to copy data from one partition to another,
and I'm not sure if it was referring to the source partition, or the
new, blank partition.

The options in the dialog were "Ignore," "Cancel," and "Go Back."  The
first time I selected Ignore, and it started copying the data. At the
end of the copy process, it started giving a series of error dialogs
saying, "Block 2490887 shouldn't have been marked (1, 0)!"  Choosing
"Continue" caused it to pop up several more times, but the first
number in the parentheses would double each time, and the block number
would increase as well, though only by a few.

After three or four of those, it would pop up a larger dialog saying,
"Assertion (block < EXT2_SUPER_BLOCKS_COUNT)fs->sb)) at
../../../../libparted/fs/ext2/ext2.h:226 in function
ext2_is_data_block() failed. \n\n A bug has been discovered! \n\n
Ignore \n Cancel" (added "\n" myself to indicate newlines in error
dialog)  Choosing Ignore caused more of the "block shouldn't have been
marked" errors, and after a few more of those, I'd get another one of
this same larger error.

IIRC, after getting into this situation, choosing Cancel or Go Back
did the same as choosing Ignore, and the only way to get out of it was
to reboot.  But if I chose Cancel or Go Back when the first warning
about resizing with dir_index appeared, all I got was a blank debconf
screen, blue with a gray bay at the bottom, and no text.  I rebooted
then too.

I've described this to the best of my recollection.  Apologies for any
errors.  I will follow up with a few photos I took of some errors
after I get my system running on the new disk.

In the end, I used the rescue mode to use the Guided Partitioning for
LVM and crypto setup, but then switched to a console and am copying
over the data manually after making symlinks to the necessary libs so
I could use GNU cp rather than busybox's.

P.S.  Is there no room for the GNU utils on the netinst iso?  Busybox
is nice but, for example, has no --help for cp, and no -v for cp
either.  I don't know about you, but when I'm copying tens of gigs of
data, I'd like -v so I can see that it's working.  :)



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#405098; Package debian-installer. Full text and rfc822 format available.

Acknowledgement sent to Frans Pop <elendil@planet.nl>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

Message #10 received at 405098@bugs.debian.org (full text, mbox):

From: Frans Pop <elendil@planet.nl>
To: Adam Porter <adam@alphapapa.net>, 405098@bugs.debian.org
Subject: Re: Bug#405098: Many errors and eventual failure when "Copy data from partition" used on partition with dir_index
Date: Thu, 04 Jan 2007 04:56:09 +0100
[Message part 1 (text/plain, inline)]
On Sunday 31 December 2006 09:28, Adam Porter wrote:
> I am copying my Debian installation onto a new hard drive with LVM and
> encrypted swap and /tmp.  I tried to use the installer's option to
> "Copy data from partition," but after I selected the source partition,
> it complained about parted not being able to resize a partition that
> had dir_index enabled, saying that parted can only resize it if it
> disables dir_index first.  I don't know why it would need to resize
> any of the partitions just to copy data from one partition to another,
> and I'm not sure if it was referring to the source partition, or the
> new, blank partition.

I can reproduce the fact that new features like dir_index and resize_inode 
are not supported. This does not only affect copying data, but also plain 
resizing of a partition (which is refused with the rather vague 
message "unable to determine max new size for partition", but has the 
same underlying problem).

For reference, see for example:
https://launchpad.net/ubuntu/+source/parted/+bug/59620

However, If I create a new (ext3) partition and try to copy data from an 
existing (ext3) partition, I only get a message that an incompatible 
feature is enabled and both the "Go Back" and "Continue" options do the 
right thing: cancel the action without any harm done.

I'd like to make sure that what happened to you does not occur to others, 
but it seems that to reproduce this, we'll need more info about what 
exactly you did.

What we need seems to be:
- exact partition/file system layout before you started
- any partitioning changes you made before trying the copy action
- which partitions you selected as source and target for the copy
  operation

Cheers,
FJP
[Message part 2 (application/pgp-signature, inline)]

Bug reassigned from package `debian-installer' to `partman-partitioning'. Request was from Frans Pop <elendil@planet.nl> to control@bugs.debian.org. Full text and rfc822 format available.

Severity set to `important' from `important' Request was from Frans Pop <elendil@planet.nl> to control@bugs.debian.org. Full text and rfc822 format available.

Changed Bug title. Request was from Frans Pop <elendil@planet.nl> to control@bugs.debian.org. Full text and rfc822 format available.

Blocking bugs of 405098 added: 406680 Request was from Frans Pop <elendil@planet.nl> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#405098; Package partman-partitioning. Full text and rfc822 format available.

Acknowledgement sent to Adam Porter <adam@alphapapa.net>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

Message #23 received at 405098@bugs.debian.org (full text, mbox):

From: Adam Porter <adam@alphapapa.net>
To: 405098@bugs.debian.org
Subject: It's been a while
Date: Sun, 25 Mar 2007 00:18:35 -0500
[Message part 1 (text/plain, inline)]
Regretfully, it's been too long since I encountered this bug for me to provide 
additional information.  Feel free to close it if you think that's 
appropriate.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#405098; Package partman-partitioning. Full text and rfc822 format available.

Acknowledgement sent to Frans Pop <elendil@planet.nl>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

Message #28 received at 405098@bugs.debian.org (full text, mbox):

From: Frans Pop <elendil@planet.nl>
To: Adam Porter <adam@alphapapa.net>, 405098@bugs.debian.org
Subject: Re: Bug#405098: It's been a while
Date: Sun, 25 Mar 2007 18:13:58 +0200
[Message part 1 (text/plain, inline)]
On Sunday 25 March 2007 07:18, Adam Porter wrote:
> Regretfully, it's been too long since I encountered this bug for me to
> provide additional information.  Feel free to close it if you think
> that's appropriate.

No, certainly not. This is a real issue that has been confirmed.
[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 00:59:48 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.