-1

I am trying to install Linux in a computer that has Windows 7. The first step was shrinking the disk size but Windows did not allow any reduction. Thus I followed a number of steps to disable "unmovable" files

  • I disabled the Page File
  • I disabled hibernation
  • I disabled System Protection

After that nothing seemed to have changed so I checked the disk fragmentation and it was 11% fragmented. I have since then run at least 4 defrags and I have also defragged the free space using Defraggler.

As of now the disk looks like this

disk fragmentation

Right now, Windows refuses to shrink the partition by any amount (I imagine that the files at the end of the disk are the troublesome ones).

Coming from an Linux background I am unsure what else needs to be done in order to shrink the partition.

  • Try gparted instead of windows to shrink. And I believe the problem is related to what windows considers unmoveable files at the end of the partition. – drescherjm Apr 05 '17 at 22:15

4 Answers4

0

Are you using Windows disk management tool to do the shrink? Here's a link for that method.

https://www.howtogeek.com/howto/windows-vista/resize-a-partition-for-free-in-windows-vista/

natesrc
  • 61
  • 1
  • 3
0

Also make sure the recycle bin on that drive is empty.

natesrc
  • 61
  • 1
  • 3
0

I finally figured it out.

The easiest way is just to use a Live USB with GParted on it since that will allow you to move Windows protected files around (the windows OS is not loaded on the live distro).

If just defragmenting is concerned one can use Hiren's Boot CD and the included Defraggler for the same purpose.

  • Must be a new version of parted/GParted. For instance the latest "redo" live-cd includes an older version that cannot resize NTFS file systems (yet?). – E. van Putten Nov 23 '18 at 09:04
0

I had the same problem on Windows 10. Turns out it was antivirus software that was running on the machine that prevented defragmentation happen properly. I actually had to temporarily uninstall antivirus. After that, the Disk Management tool was able to correctly shrink the volume.

Michal Trnka
  • 111
  • 3