Gparted can't resize NTFS

Bug #222931 reported by shanen (Shannon Jacobs)
2
Affects Status Importance Assigned to Milestone
gparted (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gparted

Not sure how to best describe this, but confirmed it with several recent versions of gparted, including the one inside the live Hardy CD, two bootable gparted CDs, and a Mandriva live CD. The gparted program runs normally, but the NTFS partition cannot be resized. There is a yellow triangle with an exclamation point, and the information says that BadClust could not be decompressed, that the contents are unreadable, and that some operations are not available, obviously including the resizing operation. The partition can be mounted, and I can wander around inside the data files, but of course that locks the partition in gparted, and it still can't be resized. Unmounting it also works, but then it goes back to the yellow triangle state...

Not sure how much background of what kind is needed, but here goes: The machine in question is a Sharp PC-WA70-L. I've been running Ubuntu in the other partition for about a year. The machine ships with the main NTFS partition (about 80 GB), a smaller partition that I converted for Ubuntu (about 11 GB), and a recovery partition (about 6 GB), so I didn't need to use gparted before this. However, now I want to split off a fresh partition and try Hardy from scratch there. Ubuntu has never run that well on the machine, actually, and based on the live CD tests, it already seems pretty certain that at least one of the problems remains unsolved.

As usual, I'll be glad to do a certain amount of diagnostic work, but I don't want to make a career out of it...

description: updated
Revision history for this message
shanen (Shannon Jacobs) (shanen) wrote :

I still don't know how to describe it properly... This time I'm trying to describe the workaround or quasi-fix. After tweaking it for a while, my hypothesis was that gparted was looking for some information about the bad clusters which had never been created on the NTFS partition (or somewhere else?). My theory was that the Windows hard disk utilities might be able to create the required information, but after that it gets really fuzzy in a bunch of mysterious Japanese explanations that I couldn't fully follow. Basically I used the disk checker from inside of Windows. At first it wouldn't do anything useful, but when I tweaked one of the few settings it gave me a warning and seed to do something more. That still wasn't enough to satisfy gparted, but some more reboots triggered the non-Windows checkdisk function, and after that it appears that gparted was at least able to find the bad cluster information.

At this point I was mostly working with the latest bootable gparted CD, but that one was still unable to resize the NTFS partition for some reason. However, I used the version of gparted on the Hardy Heron CD, and that was finally able to do it.

P.S. There was still some residual nastiness... I'll give the outline in case someone else in a similar boat winds up here... The swap partition had used up my last primary. To make the extended partition I had to unmount the swap partition that the Hardy Heron bootable CD was using, destroy the swap partition, shuffle things around, create an extended partition, and then recreate the swap partition and install Hardy Heron. However, at that point the original Gutsy Gibbon partition had an fstab file that referred to a non-existent swap partition, so I had to manually edit that file to add the swap information from the new Hardy Heron fstab. So far everything seems to be working properly.

P.P.S. About the ultimate cause, I suspect that it was some kind of non-standard optimization by the Sharp people. This machine has a number of peculiarities that cause problems with Ubuntu. The most annoying is that the network adapter still doesn't initialize properly, even in Hardy Heron. Each time I boot, I have to right click on the network and unselect "Enable Networking", and then do it again and select it as enabled, and after about 10 seconds it will connect to the network. There's also a problem with the display driver that freezes it once in a while in Gutsy, but I haven't used Heron enough to know if that bug has been fixed.

Revision history for this message
shanen (Shannon Jacobs) (shanen) wrote :

So a couple of weeks ago since this was discovered and reported. Meanwhile I've already found a clumsy workaround and reported that, too--and still no sign that the Ubuntu people have even noticed the problem.

I actually came by to report that a very serious bug (a white screen of death total system crash) remains unfixed in Hardy. I already knew of a number of moderately serious to annoying bugs that remain unfixed, and I've also reported a couple of those. I was even asked to reopen a Firefox bug since it still exists under FF3. When I came over here, I discovered a bug in the bug reporting system.

You know what? It's beginning to seem like a waste of my time to try to help Ubuntu improve their software. I've already been wrestling with this stuff for more than 30 minutes since rebooting from the crash, and that's enough of my time for now. I still hate Windows and I'd still like to see Bug #1 closed in Ubuntu's favor--but I'm increasingly skeptical.

Revision history for this message
darb (daavan42) wrote :

apt-get install ntfsprogs

Revision history for this message
shanen (Shannon Jacobs) (shanen) wrote :

Any particular reason to think that might be useful? Are you [darb] saying that it includes a utility to prepare the bad sector information for the satisfaction of gparted?

Anyway, I am still unsure whether or not to recommend that the bug be closed. It seems pretty clear that gparted is relying upon information that may not be available. However, since that problem only exists in the context of NTFS, but that context may reliably include the Windows-based tools to work around the problem... On the other hand, I think that gparted ought to be prepared to deal with the situation I encountered.

Revision history for this message
rww (rww-deactivatedaccount) wrote :

Gparted displays a warning icon and cannot resize ntfs partitions if the "ntfsprogs" package is not installed. This is documented by gparted ( http://gparted.sourceforge.net/features.php ). As a result, Ubuntu's gparted package suggests the ntfsprogs package.

Changed in gparted:
status: New → Invalid
Revision history for this message
Tom (tom6) wrote :

I have the "ntfsprogs" and still have run into troubles with ntfs partitions where Xp was involved (i've never tried with Vista)

Revision history for this message
Tom (tom6) wrote :

The gparted on other distros doesn't seem to have these problems, even the same version numbers or earlier all seem to be fine but Ubuntu's one seems broken somehow

Revision history for this message
Jan Claeys (janc) wrote :

Can the original reporter and maybe some of the other responents please check if the problem they see/saw is related to the bug in Windows described here:

http://bugzilla.gnome.org/show_bug.cgi?id=346046#c1

BTW: if somebody knows how to link to Microsoft's bugtracker as the "upstream project"... ;-)

Changed in gparted (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
shanen (Shannon Jacobs) (shanen) wrote :

I'm the original reporter, but I'm unsure how to check it. I can say that it does sound plausible as the explanation for what I saw. If so, then what I did with the Windows internal (chkdsk?) disk checking utility (whatever it is in the tools from the disk properties?) was actually resetting or repairing the bad clusters file.

A little hard for me to remember after all this time, but I think I helped someone else with a similar problem some months ago, and I think the workaround of the #1 reply did succeed in that case, too. Unfortunately, I don't even remember who asked me about it or where.

Revision history for this message
Jan Claeys (janc) wrote :

Thank for replying!

The problem with Windows's chkdsk is that it corrupts the bad clusters file (& then ignores that corruption), but when you boot Ubuntu, it fixes that file when it sees the corrupted values, after which Windows chkdsk gets run because the filesystem was changed by the ntfstools and as a result the bad clusters file is corrupted again, so next time you boot Ubuntu it fixes it, etc., etc. ;-)

The GUI tool in Windows doesn't use chkdsk (which is run during the boot), and AFAIK it works correctly; that would explain why it fixes the "error loop".

Phillip Susi (psusi)
Changed in gparted (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.