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 655215 - NTFS partition resize fails
NTFS partition resize fails
Status: RESOLVED FIXED
Product: gparted
Classification: Other
Component: application
0.9.0
Other Linux
: Normal normal
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
: 665128 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-07-24 17:00 UTC by Marcos Mello
Modified: 2011-12-04 03:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Attempt 1 (10.33 KB, text/html)
2011-07-24 17:02 UTC, Marcos Mello
Details
Attempt 2 (8.32 KB, text/html)
2011-07-24 17:03 UTC, Marcos Mello
Details

Description Marcos Mello 2011-07-24 17:00:54 UTC
I'm using latest GParted live CD (0.9.0-6). When I try to resize a Windows 7 partition, I get an error. I think ntfsresize (maybe after ntfs-3g merge?) is the culprit, see:

ntfsresize blabla
[...]
WARNING: Every sanity check passed and only the dangerous operations left.
Make sure that important data has been backed up! Power outage or computer
crash may result major data loss!
Are you sure you want to proceed (y/[n])? OK quitting. NO CHANGES have been made to your NTFS volume.

And then GParted fails.

Attached two resize attempts.

Marcos
Comment 1 Marcos Mello 2011-07-24 17:02:36 UTC
Created attachment 192566 [details]
Attempt 1
Comment 2 Marcos Mello 2011-07-24 17:03:01 UTC
Created attachment 192567 [details]
Attempt 2
Comment 3 Curtis Gedak 2011-07-24 17:23:18 UTC
Thank you Marcos for reporting this problem.

I have confirmed that there certainly does seem to be a problem with this new GParted Live 0.9.0-6 image which uses the ntfsresize command version 2.011.4.12AR.4 (libntfs-3g).

This problem does not occur with GParted Live 0.8.1-3 which uses the ntfsresize command version 2.0.0.

Would you be able to raise this problem to the persons currently maintaining ntfsprogs (tuxera.com?)?

I tried to connecting to tuxera.com but for some reason my connection always times out.

Meanwhile we will look into downgrading the ntfsprogs (and hence ntfsresize) version.
Comment 4 Curtis Gedak 2011-07-24 17:46:15 UTC
Moving this to component livecd.
Comment 5 Marcos Mello 2011-07-24 19:48:16 UTC
Hi, Curtis. Here tuxera.com is not working too (Error establishing a database connection). Their site is down.

Downgrade to ntfsprogs 2.0.0 is just a workarround IMO. The ntfsprogs 2.0.0 code is unmaintained since ages. ntfs-3g_ntfsprogs is where the development goes now.

What happened was a behaviour change, right? With "--force" the command should not question anything.
Comment 6 Curtis Gedak 2011-07-24 21:28:34 UTC
Hi Marcos.  Yes the downgrade to ntfsprogs 2.0.0 would be temporary until ntfs-3g_ntfsprogs can get the problem fixed.

The old ntfsprogs has not been enhanced for a few years but has proven to be relatively robust.  As such I think it might be the best interim solution.

tuxera.com is still down....
Comment 7 Franpa 2011-07-27 05:20:11 UTC
tuxera.com is up now, here are phone numbers and emails to contact them via.

Finland:
sales@tuxera.com
+358 50 598 0498
mac-sales@tuxera.com
sales@tuxera.com
jobs@tuxera.com

America:
+1 408 744 6305

Asia:
+886 2 2659 9119
Comment 8 Curtis Gedak 2011-07-29 15:06:44 UTC
This change in behaviour with the --force option has been raised and is being discussed in the Tuxera forum at the following link:
ntfsresize --force option is ignored
http://tuxera.com/forum/viewtopic.php?f=2&t=27708&sid=c6dc6646522af385c444e8fbbb563457
Comment 9 Curtis Gedak 2011-07-29 16:40:12 UTC
Thanks to Steven Shiau's efforts we now have GParted Live 0.9.0-7 which contains a downgraded version of ntfsprogs.  With this version NTFS file systems can be resized as before.

When we resolve the issue with the change in behaviour with the new ntfs-3g_ntfsprogs then we will look at including this newer version in GParted Live again.
Comment 10 Marcos Mello 2011-08-07 13:36:59 UTC
ntfs-3g_ntfsprogs 2011.4.12AR.6 should fix the issue!

http://b.andre.pagesperso-orange.fr/changelog.html

Version 2011.4.12AR.6 (Aug 3, 2011)

    fixed compiling ntfsfix on Sparc
    fixed options for partial building (Erik Larsson)
    removed an unneeded function in fuse_lowlevel
    updated the description of the -f option in the manual for ntfsresize
->  reverted to old behavior for an errored reply in ntfsresize
    avoided endless recursion when MFT extents are described in themselves
    fixed several bad returns after errors (Fabian Keil)
    removed several unneeded assignments (Fabian Keil)
    developped the option delay_mtime to delay updates of mtime+ctime
    developped expanding an NTFS volume downwards in ntfsresize (experimental)
    fixed feeding the MFT size for stat(3) (Erik Larsson)

Now Debian needs to pick up the new version.
Comment 11 Marcos Mello 2011-08-22 11:35:22 UTC
ntfs-3g_ntfsprogs 2011.4.12AR.6 is in Debian Sid.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637459

GParted Live can use it now. :)
Comment 12 Curtis Gedak 2011-09-13 17:25:07 UTC
To avoid this ntfs resize problem in the future, the current maintainer
of ntfsprogs provided the following advice:

     "Well, though I am reverting back to the old behavior, you should
     add -ff instead of relying on an unspecified behavior when
     ntfsresize gets an error when trying to read the reply. I suppose
     you do not connect the stdin of ntfsresize, hence the error. With
     -ff no question is asked (I stress : even with the old
     ntfsresize)."

Hence I have added a second "--force" option to the ntfsresize command
for resizing NTFS file systems.

This enhancement has been committed to the git repository for inclusion
in the next release of GParted.

The relevant commit can be viewed at the following link:
http://git.gnome.org/browse/gparted/commit/?id=bbd09a63210e89b754ce4bf9b66c7e2847568936
Comment 13 Curtis Gedak 2011-09-19 20:17:03 UTC
This enhancement has been included in the GParted 0.9.1 release on September 19, 2011.

Closing this bug report.
Comment 14 Curtis Gedak 2011-12-03 20:01:11 UTC
*** Bug 665128 has been marked as a duplicate of this bug. ***