After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 571151 - gparted moves partition to the left even if unneeded
gparted moves partition to the left even if unneeded
Status: RESOLVED FIXED
Product: gparted
Classification: Other
Component: application
unspecified
Other All
: Normal normal
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
: 564645 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-02-10 10:33 UTC by Maciej (Matthew) Piechotka
Modified: 2009-03-26 22:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Maciej (Matthew) Piechotka 2009-02-10 10:33:54 UTC
Please describe the problem:
gparted moves partition to the left even if it is not needed (i.e. if I only wanted to shrink it). The reading test takes about 2 h on 1 TB disk which is approximatly the time needed to reinstall system.

In most cases if user didn't changed the start value the partition should not be moved (especially if offset is equal to 0).

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?
Yes

Other information:
Comment 1 Curtis Gedak 2009-02-11 19:31:30 UTC
Thank you Maciej for reporting this problem.

Which version of GParted did you use?

From your description, I suspect that the "Round to cylinders" option was checked.  If the partition did not originally start on a cylinder boundary, then this option would move the partition to align with a cylinder boundary as well as perform the resize operation.
Comment 2 Maciej (Matthew) Piechotka 2009-02-11 20:01:14 UTC
(In reply to comment #1)
> Thank you Maciej for reporting this problem.
> 
> Which version of GParted did you use?
> 

It was present in a few releases of sysrescd and in 0.4.1 compiled on Gentoo.

> From your description, I suspect that the "Round to cylinders" option was
> checked.  If the partition did not originally start on a cylinder boundary,
> then this option would move the partition to align with a cylinder boundary as
> well as perform the resize operation.
> 

Possibly. Still the default option should not move the border which user had not touched.
Comment 3 Curtis Gedak 2009-02-16 19:56:53 UTC
Hi Maciej,

I have reworked the logic of the resize/move dialog to only move the start sector of a partition IF the space before value is changed.  This fix has been committed to the Gnome SVN repository.

Would you be able to compile and test the latest version of GParted from the SVN repository?

http://gparted.sourceforge.net/svn.php

To compile:
  ./autogen.sh
  make
  make install
Comment 4 Curtis Gedak 2009-02-16 20:06:24 UTC
*** Bug 564645 has been marked as a duplicate of this bug. ***
Comment 5 Maciej (Matthew) Piechotka 2009-02-16 20:20:50 UTC
(In reply to comment #3)
> Hi Maciej,
> 
> I have reworked the logic of the resize/move dialog to only move the start
> sector of a partition IF the space before value is changed.  This fix has been
> committed to the Gnome SVN repository.
> 

That's great. I guess it is the most expected behaviour.

> Would you be able to compile and test the latest version of GParted from the
> SVN repository?
> 
> http://gparted.sourceforge.net/svn.php
> 

Ok. First let me find some drives to format.

> To compile:
>   ./autogen.sh
>   make
>   make install
> 

Personaly I prefere
./autogen.sh --help
CFLAGS="-ggdb ..." ./configure --prefix=~/.applications --with-my-params
make all install
But thanks for info ;)
Comment 6 Curtis Gedak 2009-02-20 17:12:05 UTC
Did you find some drives to format?
If so, how is your testing going?

Comment 7 Maciej (Matthew) Piechotka 2009-02-20 22:00:26 UTC
Only on pendrive - which works OK. Probably next week I will check on real disk - unfortunatly now I have my time organised by illness and I'm not able to check it.
Comment 8 Curtis Gedak 2009-02-20 22:05:53 UTC
Health comes first.

Best wishes for improvement.
Comment 9 Maciej (Matthew) Piechotka 2009-02-20 22:08:50 UTC
Thanks
Comment 10 Curtis Gedak 2009-03-26 22:15:28 UTC
This bug fix will be included in the next release of GParted (0.4.4) which is planned for April 2nd, 2009.
Closing this bug.