Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm unable to shrink Windows partition using gparted live CD.

The partition filesystem is NTFS. Windows 7 is on it and boots fine.

Gparted information dialog gives the following:

  • Status - unmounted
  • ERROR - the disk has at least 19 bad sectors
  • Run chkdsk /f /r on Windows and reboot it TWICE! Then you can resize NTFS safely by additionally using the --bad-sectors option of ntfsresize
  • The cause might be a missing software package. The following list of software packages is required for ntfs file system support: ntfsprogs / ntfs-3g.

I've scanned for disk errors and rebooted twice as suggested above.

How do I get rid of this red exclamation mark? (The red exclamation mark looks like this).

Thanks in advance.

share|improve this question
You can try booting to windows, run ckkdsk, and try resizing with the windows tools. – bodhi.zazen Mar 4 '14 at 15:57
Or chkdsk /f /r - or whatever the error message says. There is a guide here that might be helpful. – Wilf Mar 4 '14 at 16:11
I can only add a +1 to @bodhi.zazen advice. Resize the NTFS partition using Windows tools; doing differently may work but it might not... have a good, tested backup ready. (Especially with bad blocks warnings). – Rmano Mar 4 '14 at 16:11
Before posting my question, I did run disk error checker by GUI method as suggested by Wilf. That did not help, then I booted with Windows 7 DVD. At the command prompt typed d: <ENTER> and I could see my directories by "dir". I then did "chkdsk /f" and later "chkdsk /r"; Both commands said something like "No errors were found". Windows tools for resizing partitions is unfamiliar territory to me, but I'll look into that. Thank you all for responding to my question. – polarbear347 Mar 4 '14 at 17:29
@bodhi.zazen Your proposed solution does work. However, Windows resizing tool is limiting on how much I can shrink the partition. I could only shrink 5GB out of 17GB free space available. – polarbear347 Mar 5 '14 at 14:57
up vote 0 down vote accepted

You can try booting to windows, run ckkdsk, and try resizing with the windows tools.

Keep in mind:

First, the Linux tools are reverse engineered and there at times with they can not manage / repair ntfs partitions. On such occasions you will need to fall back to the Windows tools.

Second, yes there are times with the windows resize tool limits how much you can reduce the size of your ntfs volumes. I am not familiar enouigh to know why, but I suspect there are files scattered on the disk that for some reason are not movable by the windows tools. In such an event, you can repair the NTFS partition, defragement as muchs possible, and then boot Ubuntu and re-try gparted.

Third, data loss can happen with these tools or hard drive failu8re. I suggest you have a windows recovery disk and a back up of your data.

share|improve this answer

The advice it gives is incorrect. ntfsresize ( which gparted uses ) refuses to resize a volume that has flagged any clusters as bad. Running chkdsk /b from Windows will test the blocks marked as bad and hopefully clear them, allowing you to proceed. If not, then you may need to replace the disk. In any case, you should open the disk utility and check the SMART health of the disk.

share|improve this answer
"chkdsk /b" finished with the following remark: "Windows has made corrections to the file system" The problem isn't solve though. Ubuntu's disk-utility said the disk has 7 bad sectors. – polarbear347 Mar 4 '14 at 17:33

I've managed to get gparted to shrink the NTFS partition despite bad-sectors on disk using the trick found here.

Please make sure to do a backup of everything on your disk before attempting this!

I placed the disk as a slave drive on another PC that has Ubuntu and booted into Ubuntu.

cd /sbin
sudo mv ntfsresize ntfsresize.orig
sudo touch ntfsresize
sudo vim ntfsresize

and put the following in "ntfsresize":

exec ntfsresize.orig --bad-sectors "$@"


sudo chmod 777 ntfsresize

I was then able to resize with gparted in Ubuntu without any problems.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.