[Parted-maintainers] Bug#323438: marked as done (parted: problems in resizing a logical ext3)

Debian Bug Tracking System owner at bugs.debian.org
Mon Oct 3 19:03:11 UTC 2005


Your message dated Mon, 3 Oct 2005 20:59:22 +0200
with message-id <20051003205922.456fa42b.k_guillaume at libertysurf.fr>
and subject line problems in resizing a logical ext3
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 16 Aug 2005 19:44:28 +0000
>From luca at pca.it Tue Aug 16 12:44:28 2005
Return-path: <luca at pca.it>
Received: from (dione.pcaserver.net) [195.32.84.213] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E57MJ-0002PX-00; Tue, 16 Aug 2005 12:44:28 -0700
Received: (qmail 17466 invoked from network); 16 Aug 2005 21:44:38 +0200
Received: from 41.236.77.83.cust.bluewin.ch (HELO gismo.pca.it) (83.77.236.41)
  by bassiniecighetti.it with SMTP; 16 Aug 2005 21:44:38 +0200
Received: by gismo.pca.it (Postfix, from userid 1000)
	id BF853BF96; Tue, 16 Aug 2005 21:41:46 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Luca Capello <luca at pca.it>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: parted: problems in resizing a logical ext3
X-Mailer: reportbug 3.15
Date: Tue, 16 Aug 2005 21:41:46 +0200
Message-Id: <20050816194146.BF853BF96 at gismo.pca.it>
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: parted
Version: 1.6.23-3
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I've searched over the docs (and the net) and it seems that I'm not
wrong: parted can resize an ext3, provided that "the new start must be
the same as the old start" [1].

But I've 2 kinds of different errors, here the output (note that the
partition is unmounted and I tried in "emergency" mode with the same
results).

=====
gismo:/home/luca# parted /dev/hda print
Disk geometry for /dev/hda: 0kB - 60GB
Disk label type: msdos
Number  Start   End     Size    Type      File system  Flags
1       32kB    8000MB  8000MB  primary   fat32        boot, lba
2       8000MB  16GB    8000MB  primary   ext3         
3       16GB    60GB    44GB    extended               lba
5       16GB    17GB    512MB   logical   linux-swap   
6       17GB    32GB    15GB    logical   ext3         
7       32GB    42GB    10000MB logical   ext3         
8       42GB    52GB    10000MB logical   ext3         
9       52GB    60GB    8500MB  logical   ext3         
Information: Don't forget to update /etc/fstab, if necessary.             

gismo:/home/luca# parted
GNU Parted 1.6.23
Copyright (C) 1998 - 2005 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Using /dev/hda
(parted) resize 9 52000 59000
Error: Unable to satisfy all constraints on the partition.                
(parted) resize 9
Start?  [52GB]? 52000
End?  [60GB]? 59000                                                       
Error: Unable to satisfy all constraints on the partition.                
(parted) resize 9                                                         
Start?  [52GB]? 52000                                                     
End?  [60GB]? 58000                                                       
Error: Unable to satisfy all constraints on the partition.                
(parted) resize 9                                                         
Start?  [52GB]? 52000MB                                                   
End?  [60GB]? 59000MB                                                     
Error: Unable to satisfy all constraints on the partition.                
(parted) resize 9
Start?  [52GB]? 52GB                                                      
End?  [60GB]? 59000MB                                                     
Error: Can't have a partition outside the disk!                           
You found a bug in GNU Parted.  Please email a bug report to
bug-parted at gnu.org containing the version (1.6.23), and the following
message:

Assertion (geom != NULL) at ../../libparted/geom.c:100 in function
ped_geometry_destroy() failed.

Ignore/Cancel? cancel                                                     
Error: Unable to satisfy all constraints on the partition.                
(parted) resize
Partition number? 9                                                       
Start?  [52GB]?                                                           
End?  [60GB]? 59GB                                                        
Error: Can't have a partition outside the disk!                           
You found a bug in GNU Parted.  Please email a bug report to
bug-parted at gnu.org containing the version (1.6.23), and the following
message:

Assertion (geom != NULL) at ../../libparted/geom.c:100 in function
ped_geometry_destroy() failed.

Ignore/Cancel? cancel                                                     
Error: Unable to satisfy all constraints on the partition.                
(parted) quit                                                             
Information: Don't forget to update /etc/fstab, if necessary.             

gismo:/home/luca# 
=====

Is this really a bug or am I missing something?

BTW, just FYI, qtparted (Debian unstable and SystemRescueCD [2])
doesn't give me the option to resize /dev/hda9, while I can resize
/dev/hda3 (the extended partition).

Thx, bye,
Gismo / Luca

[1] http://www.gnu.org/software/parted/manual/html_chapter/parted_2.html#SEC25
[2] http://www.sysresccd.org/

- -- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-rc6
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages parted depends on:
ii  libc6                         2.3.5-3    GNU C Library: Shared libraries an
ii  libncurses5                   5.4-9      Shared libraries for terminal hand
ii  libparted1.6-12               1.6.23-3   The GNU Parted disk partitioning s
pi  libreadline4                  4.3-15     GNU readline and history libraries

parted recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDAkF6VAp7Xm10JmkRAonoAJ0QBejntutmew2rZEBi3VMmqQ3t5wCfdBtN
NRegcmsVpacM5kHdAVZR4j0=
=fvYs
-----END PGP SIGNATURE-----

---------------------------------------
Received: (at 323438-done) by bugs.debian.org; 3 Oct 2005 18:57:55 +0000
>From k_guillaume at libertysurf.fr Mon Oct 03 11:57:55 2005
Return-path: <k_guillaume at libertysurf.fr>
Received: from smtp2-g19.free.fr [212.27.42.28] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EMVVb-0001xm-00; Mon, 03 Oct 2005 11:57:55 -0700
Received: from localhost.localdomain (unknown [81.56.234.180])
	by smtp2-g19.free.fr (Postfix) with SMTP id E94532608F;
	Mon,  3 Oct 2005 20:57:51 +0200 (CEST)
Date: Mon, 3 Oct 2005 20:59:22 +0200
From: "K.G." <k_guillaume at libertysurf.fr>
To: 323438-done at bugs.debian.org
Cc: Luca Capello <luca at pca.it>
Subject: problems in resizing a logical ext3
Message-Id: <20051003205922.456fa42b.k_guillaume at libertysurf.fr>
In-Reply-To: <87fyry27o5.fsf at gismo.pca.it>
References: <20050816194146.BF853BF96 at gismo.pca.it>
	<20050920215405.3dc5300f.k_guillaume at libertysurf.fr>
	<87fyry27o5.fsf at gismo.pca.it>
X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Delivered-To: 323438-done at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: parted
Version: 1.6.24-1

"Error: Unable to satisfy all constraints on the partition."
is not a bug and is the normal behavior. When you specify
a position in MB, Parted takes the best solution +- 1 MB of
the value you specified. In the partition scheme 52GB was
indeed 51512MB rounded, and because resize was asked to
resize to 52000MB -> 59000MB it refused to do anything
because the start of an ext2 partition can't be changed by
Parted.

"Error: Can't have a partition outside the disk!"
This bug appeared because command_line_get_sector did not
set the allowed range of sectors when the default value was
taken by the user, so the values used for describing this
range during the program operation after that point were
unspecified and near to random ones...

Guillaume Knispel



More information about the Parted-maintainers mailing list