I am trying to defrag the hard drive partition that Windows is running on so I can shrink the partition and create a second one. I have cleared off almost 400GB (which will allow space for an ideal 350GB to be moved to a separate partition), and am currently in the mode of fragmenting the drive to allow for the shrink. I am using Auslogics Disk Defrag which is being very helpful, but it is saying that there is an unmovable file at the end of the partition called swapfile.sys.
I have turned off the pagefile.sys for that partition, and have it dedicated on another partition, but I am unsure what to do next.
I was thinking of having some pre-os launched defrag that could sort out the files before windows loads them up and makes them unmovable, but I can't find any software like that. Any help would be great.
EDIT
I have just been thinking, I am doing all this because I am dual booting Windows and Linux and creating a common storage place between them where I can store my data (documents, pictures, source code, mysql database files, web root data, etc), so, how can I defrag the Windows disc from the Linux side? Because then none of the files there will be open, so none are unmovable.
EDIT
Scratch the last edit, it seems there are problems when defragging a windows partition from linux, but now i'm thinking, go into the windows recovery console and do a defrag there. Can anyone tell me how to do that?
swapfile.sysor move it to another partition. The easiest solution is probably not to defrag your partition before resizing it. – Dennis Jan 22 at 21:20