GNOME Bugzilla – Bug 741061
Error when resizing partition
Last modified: 2020-11-13 10:41:39 UTC
Created attachment 292061 [details] gparted logs Hi, Using gparted from systemrescuecd 4.4.1 i get an error when resizing partition. I launch again the command and it was fine, so not a big problem. I give you the log as suggested by gparted. Thank you, Guy
Looked through the attached gparted log. GParted 0.19.1 Libparted 3.2 Initial partition layout: Sector size: 512 bytes (assumed) Partition type: msdos (educated guess) Partitions aligned to cylinder boundaries of 255*63 sectors Device Start End Size (sectors) (sectors) (sectors) File system ---------- --------- --------- --------- ----------- /dev/sdg1 63 98317799 98317737 UNKNOWN /dev/sdg2 98317800 147476699 49158900 ext2/3/4 /dev/sdg3 147476700 151685729 4209030 swap Individual resizing operations: 1) Grow partition sdg3. Move end. +0 +130885412 /dev/sdg3 147476700 282571141 135094442 2) Shrink partition sdg3. Move start. Start becomes whole MiB aligned. +130885412 +0 /dev/sdg3 278362112 282571141 4209030 3) Grow partition sdg3. Move end. +0 +4178338 /dev/sdg3 278362112 286749479 8387368 ^^^^^^^^^ 4) Grow partition sdg2. Move end. +0 +97583640 /dev/sdg2 98317800 245060339 146742540 5) Shrink partition sdg2. Move start. Start becomes whole MiB aligned. +97583640 +0 /dev/sdg2 195901440 245060339 49158900 6) Grow partition sdg2. Move end. +0 +33303820 /dev/sdg2 195901440 278364159 82462720 ^^^^^^^^^ Error: Partition sdg2 ends 1 MiB past the start sdg3 starts. Hence libparted reported error: Can't have overlapping partitions. sdg2 end 278364159 sdg3 start 278362112
Steps to reproduce the error: 1) Initial setup On a disk larger than 135 GiB disk=/dev/sdd cat << EOF > test.ptns # partition table of /dev/sdg unit: sectors /dev/sdb1 : start= 63, size= 98317737, Id=83 /dev/sdb2 : start= 98317800, size= 49158900, Id=83 /dev/sdb3 : start=147476700, size= 4209030, Id=82 EOF sfdisk $disk < test.ptns mkfs.ext4 ${disk}2 mkswap -L 'SWAP' ${disk}3 2) Apply these operations in GParted Resize/Move ptn3 * free space preceding 63909 MiB * new size 4096 MiB * (default) Align MiB Resize/Move ptn2 * new size 40265 MiB * free space following 0 MiB * (default) Align MiB Apply This produced the same error with partition 2 trying to overlay partition 3 by 1 MiB.
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time. If you still use gparted and if you still see this bug / want this feature in a recent and currently supported version, then please feel free to report it at https://gitlab.gnome.org/GNOME/gparted/-/issues/ by following the guidelines at https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines Thank you for creating this report and we are sorry it could not be implemented so far (volunteer workforce and time is limited).