gparted does not shrink partitions

Bug #22772 reported by David Meier
16
Affects Status Importance Assigned to Milestone
gparted (Ubuntu)
Fix Released
Medium
Daniel Holbach

Bug Description

Shrinking partitions in gparted fails. I tried ext2/3 and reiserfs. In terminal,
I get the following errors:

It seems the size value is given including a point, like "2.508M" instead of
"2508M".

with reiser: resizer_reiserfs: the new size value is wrong.
with ext: resize2fs: ungültige Dateisystemgröße - 2.508M
(invalid filesystem size)

Calling resize2fs manually without a point works, with a point it fails with the
above error message.

I also tried shrinking an NTFS partition, which only worked with a new size <1000M.

Revision history for this message
David Meier (droebbel-melta) wrote :

The error seems to bei in Utils.h:

inline Glib::ustring num_to_str( Sector number )
{
 std::ostringstream os;
 os .imbue( std::locale("") );
 os << number ;
 return os .str() ;
}

this is used by the GUI as well as by the actual resize-function, where the
formatting makes no sense. Commenting out that line

// os .imbue( std::locale("") );

makes the partition list in the GUI look a bit less pretty, but at least
shrinking works then.

This is not relevant for growing, as no size parameter is handed then at all to
the filesystem resizer.

Revision history for this message
Daniel Holbach (dholbach) wrote :

*** Bug 22839 has been marked as a duplicate of this bug. ***

Revision history for this message
Daniel Holbach (dholbach) wrote :

Fixed in CVS.

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

According to the Gparted bugzilla this bug is already fixed - look at
http://bugzilla.gnome.org/show_bug.cgi?id=161362

It would be nice to have this bug fixed ASAP.

Revision history for this message
Daniel Holbach (dholbach) wrote :

That's what I wrote in the last comment, and that's why the bug status is
PENDINGUPLOAD :-)

Revision history for this message
Daniel Holbach (dholbach) wrote :

 gparted (0.0.9-0ubuntu1) dapper; urgency=low
 .
   * New upstream release:
     - gparted finally has a logo/icon ;) (thanks to Alain Clement)
       see also #162092
     - minor cleanups
     - correct partitiontype is now set after creation or conversion.
       (#322281) (Ubuntu: #20013)
     - changes already covered in our CVS checkouts.
   * debian/patches/privileged.patch:
     - updated.
   * debian/patches/changed-menu-icon.patch,
     debian/gparted.png.uuencoded:
     - dropped, upstream has their own icon.
   * debian/rules:
     - don't install pixmaps.
   * debian/control:
     - don't depend on sharutils any more (uudecode).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.