GNOME Bugzilla – Bug 655215
NTFS partition resize fails
Last modified: 2011-12-04 03:19:39 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
Created attachment 192566 [details] Attempt 1
Created attachment 192567 [details] Attempt 2
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.
Moving this to component livecd.
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.
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....
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
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
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.
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.
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. :)
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
This enhancement has been included in the GParted 0.9.1 release on September 19, 2011. Closing this bug report.
*** Bug 665128 has been marked as a duplicate of this bug. ***