bug#33634: Strange behavior from gparted

"Brent W. Baccala" <[email protected]>
Newsgroups gmane.comp.gnu.parted.bugs
Message-ID <CADyN2VxFO6SnppCMqCvDe3vaERCH0f+aEZxfho2gpj34qWwqsg@mail.gmail.com>
Hi -

I just using gparted 0.32.0 on Ubuntu Bionic 18.04 to move and resize a
partition.

Initially, there was a 25 GB partition and a 100 GB partition followed by a
574 GB partition.  The operation was to remove the 25 GB and 100 GB
partitions, move the 574 GB partition backwards to align with the old
partition's start, and resize the new partition to approx 698 GB.

Take a look at the attached gparted_details.htm.  It looks like after the
old partitions were deleted, the 574 GB partition was moved and resized to
698 GB in one step, then resized back to 574 GB, then resized again to 698
GB.

Everything worked out fine, but this looked to me like some kind of bug, so
I thought it was best to report it.

    agape
    brent
gparted_details.htm (text/html, 9.1 KB)
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en-US' lang='en-US'>
<head>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8' />
<title>GParted Details</title>
</head>
<body>
<p>GParted 0.32.0 --enable-libparted-dmraid --enable-online-resize</p>
<p>Libparted 3.2</p>
<table border='0'>
<tr>
<td colspan='2'>
<b>Delete /dev/sda1 (fat32, 25.00 GiB) from /dev/sda</b>&nbsp;&nbsp;00:00:02&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
calibrate /dev/sda1&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>path: /dev/sda1 (partition)<br />start: 2048<br />end: 52430847<br />size: 52428800 (25.00 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
delete partition&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>========================================</p>
<table border='0'>
<tr>
<td colspan='2'>
<b>Delete /dev/sda2 (ntfs, 100.00 GiB) from /dev/sda</b>&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
calibrate /dev/sda2&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>path: /dev/sda2 (partition)<br />start: 52430848<br />end: 262146047<br />size: 209715200 (100.00 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
delete partition&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>========================================</p>
<table border='0'>
<tr>
<td colspan='2'>
<b>Move /dev/sda3 to the left and grow it from 573.64 GiB to 698.63 GiB</b>&nbsp;&nbsp;06:03:06&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
calibrate /dev/sda3&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>path: /dev/sda3 (partition)<br />start: 262146048<br />end: 1465149167<br />size: 1203003120 (573.64 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
check file system on /dev/sda3 for errors and (if possible) fix them&nbsp;&nbsp;00:03:54&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>e2fsck -f -y -v -C 0 &apos;/dev/sda3&apos;</i></b>&nbsp;&nbsp;00:03:54&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>Pass 1: Checking inodes, blocks, and sizes<br />Pass 2: Checking directory structure                                           <br />Pass 3: Checking directory connectivity                                        <br />Pass 4: Checking reference counts                                              <br />Pass 5: Checking group summary information                                     <br />                                                                               <br />     3085849 inodes used (8.21%, out of 37601280)<br />        8567 non-contiguous files (0.3%)<br />        2716 non-contiguous directories (0.1%)<br />             # of inodes with ind/dind/tind blocks: 0/0/0<br />             Extent depth histogram: 3025852/1797/21<br />   150258992 blocks used (99.92%, out of 150375390)<br />           0 bad blocks<br />          42 large files<br /><br />     2709390 regular files<br />      306947 directories<br />         119 character device files<br />          50 block device files<br />          17 fifos<br />        3223 links<br />       69182 symbolic links (57850 fast symbolic links)<br />         135 sockets<br />------------<br />     3089063 files<br /></i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>e2fsck 1.44.4 (18-Aug-2018)<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
grow partition from 573.64 GiB to 698.64 GiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>old start: 262146048<br />old end: 1465149167<br />old size: 1203003120 (573.64 GiB)</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>new start: 2048<br />new end: 1465149167<br />new size: 1465147120 (698.64 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
move file system to the left&nbsp;&nbsp;05:55:08&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>e2image -ra -p -o 134217728000 &apos;/dev/sda3&apos;</i></b>&nbsp;&nbsp;05:55:08&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i></i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>e2image 1.44.4 (18-Aug-2018)<br />Scanning inodes...<br />Copied 150254570 / 150254584 blocks (100%) in 05:53:48 at 27.65 MB/s       s<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
shrink partition from 698.64 GiB to 573.64 GiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>old start: 2048<br />old end: 1465149167<br />old size: 1465147120 (698.64 GiB)</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>new start: 2048<br />new end: 1203005167<br />new size: 1203003120 (573.64 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
check file system on /dev/sda3 for errors and (if possible) fix them&nbsp;&nbsp;00:03:46&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>e2fsck -f -y -v -C 0 &apos;/dev/sda3&apos;</i></b>&nbsp;&nbsp;00:03:46&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>Pass 1: Checking inodes, blocks, and sizes<br />Pass 2: Checking directory structure                                           <br />Pass 3: Checking directory connectivity                                        <br />Pass 4: Checking reference counts                                              <br />Pass 5: Checking group summary information                                     <br />                                                                               <br />     3085849 inodes used (8.21%, out of 37601280)<br />        8567 non-contiguous files (0.3%)<br />        2716 non-contiguous directories (0.1%)<br />             # of inodes with ind/dind/tind blocks: 0/0/0<br />             Extent depth histogram: 3025852/1797/21<br />   150258992 blocks used (99.92%, out of 150375390)<br />           0 bad blocks<br />          42 large files<br /><br />     2709390 regular files<br />      306947 directories<br />         119 character device files<br />          50 block device files<br />          17 fifos<br />        3223 links<br />       69182 symbolic links (57850 fast symbolic links)<br />         135 sockets<br />------------<br />     3089063 files<br /></i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>e2fsck 1.44.4 (18-Aug-2018)<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
grow partition from 573.64 GiB to 698.63 GiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>old start: 2048<br />old end: 1203005167<br />old size: 1203003120 (573.64 GiB)</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>new start: 2048<br />new end: 1465145343<br />new size: 1465143296 (698.63 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
grow file system to fill the partition&nbsp;&nbsp;00:00:15&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>resize2fs -p &apos;/dev/sda3&apos;</i></b>&nbsp;&nbsp;00:00:15&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>Resizing the filesystem on /dev/sda3 to 183142912 (4k) blocks.<br />The filesystem on /dev/sda3 is now 183142912 (4k) blocks long.<br /><br /></i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>resize2fs 1.44.4 (18-Aug-2018)<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>========================================</p>
</body>
</html>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.