15

My family PC has Windows Vista and lately it has became unusable, having strange errors and taking hours to do anything at all, so I'm installing Ubuntu 11.10 alongside it. I went into GParted to resize the Vista partition but found that it had an exclamation point in a red circle next to it: GParted

I tried to resize it but the Resize/Move button was grayed out. I thought that this might have to do with the exclamation point so I looked at the information and found a load of errors: GParted

What does the exclamation point mean? How can I resize my partition?

UPDATE 1

I booted into Safe Mode with Command Prompt in Vista as suggested by eug and ranchkdsk c: /F /R (/F Fixed errors on the disk, /R Locates bad sectors and recovers readable information) and got:

Chkdsk cannot run because the volume is in use by another process.  Would you like to schedule this volume to be checked the next time the system restarts? (Y/)

When I reboot it doesn't run chkdsk, I'm selecting Safe Mode with Command Prompt again because I can't boot normally. How can I stop it being used?

UPDATE 2

I tried doing what Luis suggested. Here is the terminal output:

ubuntu@ubuntu:~$ sudo ntfsfix /dev/sda3
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
NTFS volume version is 3.1.
NTFS partition /dev/sda3 was processed successfully.
ubuntu@ubuntu:~$ sudo apt-get install ntfsprogs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'ntfs-3g' instead of 'ntfsprogs'
ntfs-3g is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I still cannot resize the partition. Ntfsfix doesn't look like it did anything and ntfsprogs is already installed. I can access the hard drive and do backups with the Ubuntu Live CD which I'm using now. Any other suggestions?

UPDATE 3

I attempted to use the ntfsresize command but I got an error:

ERROR: Volume is scheduled for check.
Run chkdsk /f and please try again, or see option -f.

This is because I ran chkdsk in Vista Safe Mode with Command Prompt and it couldn't do it because it was in use but offered to do it at the next reboot. I reboot and I get to the menu to the menu to choose whether to Start Windows Normally, Safe Mode, etc instead of checking the disk. Is there any way I can unschedule?

EDIT

I just found out that I could use the -f option to force it. It failed and told me to run chkdsk /f in Windows and then reboot twice. But the chkdsk program is in the partition I am trying to check so it says it is in use.

  • 1
    I think you should make a backup and run the chkdsk tool from within Vista – eug Oct 26 '11 at 12:22
  • second @eug sounds like the filesystem is fubar – squareborg Oct 26 '11 at 12:58
  • @StephenMartin Sorry I don't understand what you are trying to say... Also, I saw that you edited your comment and changed foobar to fubar :P – Greg Treleaven Oct 26 '11 at 13:52
  • 1
    Stephen means the ntfs fs is bad and agrees with eug (and so do I) – laurent Oct 26 '11 at 15:23
  • You can also use the ntfsresize utility. – Anonymous Oct 26 '11 at 17:23
  • If your struggling using the windows chkdsk,You can run it from the Vista install CD, – squareborg Oct 26 '11 at 18:18
  • @StephenMartin I don't have a Vista install CD. This computer came with Vista pre-installed. – Greg Treleaven Oct 26 '11 at 19:40
  • Are you able to run chkdsk without using Safe Mode?

    You can also try making a System Repair Disk using another Vista computer (or preferably Windows 7 since it's newer & may have a better chkdsk) and booting from that to run chkdsk.

    – eug Oct 30 '11 at 00:36
  • This question (and the proposed solutions) also applies to the Ubuntu / Lubuntu 16.10 installation process. Just that there will not be the red exclamation mark, just a grayed-out resize option. – tanius Nov 04 '16 at 01:16

2 Answers2

10

I turned on the PC and didn't realize it didn't have the Ubuntu CD in so it tried to boot into Windows. When I came back to it I realized it had started running chkdsk, because before I couldn't boot into safe mode I scheduled it to run chkdsk. After it completed the Vista partition no longer had an exclamation mark next to it and I am able to shrink it. It's currently shrinking now and its been on the real resize stage for a while but apparently it's normal if it takes a long time. (Extra info: I did cancel it because I didn't think anything was happening but it messed up the partition. Somehow chkdsk was scheduled again so I was able to resize it again. I'll be sure not to cancel it this time.)

So if anyone else has this problem, run chkdsk /r at Safe Mode with Command Prompt, or the recovery console if you have it (I don't).

  • I just wanted to add that if there really had been no way to get back into Windows, downloading and burning (or making a bootable USB) from an ISO of a Windows disc is probably your best bet. You can legally download most of the ISOs, even from torrents -- as long as you don't install it, obviously. All of the discs from Vista on include both Startup Repair and a command prompt that allows you to run chkdsk and other tools offline. – SilverbackNet Jan 11 '14 at 01:55
  • Yes, however, when you run from an installation disk, you have to specify the hard-disk as well, example chkdsk C: /f. Using chkdsk /f will give you a "write protected" error. – mchid Jun 12 '14 at 03:12
5

Firs try this from within Ubuntu (In the terminal):

sudo ntfsfix /dev/sda3

It will try to fix as much as it can. If it does fix the problems the do the following before the disk dies on you:

sudo apt-get install ntfsprogs

which should give you support for NTFS filesystem in Gparted.

Then just open gparted and resize/check the filesystem. This is all assuming that the check with ntfsfix went fine and the check with gparted did also.

If both go bad and you still can not boot with the ntfs partition I suggest looking for another PC than you can connect the hard drive, fix the problem there or do a backup.

Luis Alvarado
  • 211,503