Hi Anomie and Phillip,

There was a recent change in GParted 0.16.2 that is directly related to resizing ext2/3/4 file systems. Specifically the change no longer subtracts 1 kiB from the file system size which would have prevented this problem from occurring.

The relevant commit is:

Shrink file systems to exact size (#701075)
https://git.gnome.org/browse/gparted/commit/?id=3461413d283f1bac77e541b1054e775ec105212f

In my resize testing of ext2/3/4 I have not encountered this problem, but based on the bug report gparted_details.htm log file there exists at least one situation where the file system is resized at least 1 sector bigger than the partition.

I CC'd Mike Fleetwood on this so that he is aware of this problem. Any thoughts Mike?

Curtis

On 14-01-31 06:51 PM, Phillip Susi wrote:
Yikes, looks like gparted has an off by one: it set the partition size
one sector two small.  Do you have any thoughts on this Curtis?

On 01/31/2014 02:16 PM, [email protected] wrote:
Package: gparted
Version: 0.17.0-4

I tried to shrink-and-move a partition on an external hard drive. It
seems that gparted shrunk the parition to 93768726 4K blocks, but then
resized the parition to only 750149807 512-byte sectors (93768725.875 4K
blocks). The post-shrink e2fsck then errored out before the partition
could be moved.

gparted log attached.



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to