Why unused files files get fragmented? (Windows 7)

1

Every now and then i defrag my HDD partitions to maintain my PC, and each time i notice fragmented files that i haven't read/wrote-to in a while. For example npm-cache, i haven't used Node for ages!

I have Windows Search disabled, and i can't think of any action or application that would randomly read random files on my HDD, all that uses my HDD on Idle are uncharted system processes, constant and small read/writes.

What causes unused files to get fragmented?

VCake

Posted 2013-09-13T12:15:52.253

Reputation: 11

How much disk space do you have left? – James P – 2013-09-13T12:57:25.350

Answers

1

Windows7 by default schedules an automatic defragmentation on a regular basis (daily iirc). Defragmentation will move files adjacent to fragmented files it wants to rewrite, and will often leave you with more fragments than you started with, but hopefully in less used files. This becomes more true as the disk fills up. Multiple passes can eventually reduce the number of fragged files. You can never predict what files will be touched or moved around during a defragmentation.

Frank Thomas

Posted 2013-09-13T12:15:52.253

Reputation: 29 039

I +1 this because it looks plausible, however I have the scheduled defragmentation disabled and I have a large and old video that gets fragmented all the time. I had fully defrag my drive and a couple weeks later there are lots of fragmented files that I don't use, including that old video. – DGaleano – 2017-06-06T20:13:48.683

0

One possible candidate is that Windows Update can can affect files that the user isn't touching.

The Windows update process can touch or check for the existence of files in order tell if an available update should be downloaded. The application of the update can touch files that you may not expect due to some dependency within the update.

Chenmunka

Posted 2013-09-13T12:15:52.253

Reputation: 3 019

With that theory, Windows Update could touch MP3 files and decide if i need a Windows Media Player update? – VCake – 2013-09-13T12:33:18.763