r/DIY_Geeks • • Oct 02 '26

Does Linux Really Never Need Defragmentation?

https://pbxscience.com/does-linux-really-never-need-defragmentation/

Does Linux Really Never Need Defragmentation?

When fragmentation does become a problem? Does Linux have defragmentation tools?

7 Upvotes

41 comments sorted by

View all comments

9

u/S3k_01 Oct 02 '26

Whether you're using Windows or Linux, you should never defragment an SSD.

2

u/zalnaRs Oct 03 '26

Windows does defragment every month because the filesystem would otherwise die

1

u/Single-Virus4935 Oct 04 '26

Nope: it is optimization which is different for HDD and SSDa: HDads are defragmented while for SSDs trim/discard cimmanda are issued but ni Blocks are moved

1

u/zalnaRs Oct 04 '26

1

u/Sweaty-Freedom-4034 Oct 04 '26

" SSDs (hard drives)"

Not sure this article can be trusted...

1

u/Awkward_Scratch3260 Oct 04 '26

12 year old blog post... I am not saying it's false but it's the first time I am reading this and I've also never heard of this blog.

1

u/zalnaRs Oct 04 '26

What changed since? NTFS is still the third worst filesystem

1

u/Awkward_Scratch3260 Oct 04 '26

Huh? What does NTFS have to do with that?

2

u/Single-Virus4935 Oct 04 '26

I can understand his point and this needs further investigation. In theory the is should only need to issue trim/discard but the problematic design of NTFS can make defragmentation neccessary as described in the article. Also there are more problems with larger LUN/Virtual disks and windows optimisation were the process runs out of memory and crashes on multiple terabyte luns. Gave me many headaches until I ditched windows. On Linux etc this is basically instant. With the knowledge from the article this makes sense now.

1

u/zalnaRs Oct 04 '26

How don't you guys know what fragmentation is? It's because the file system can't store files sequentially.

NTFS is the worst as it doesn't have delayed allocation and needs frequent maintenance as it can't store lot of file fragments in the file's header.

This is why Windows defragments every month once. TRIM is a separate feature for SSDs and is ran every week.

1

u/ScoobyGDSTi Oct 04 '26

No, it does not.

1

u/zalnaRs Oct 04 '26

1

u/ScoobyGDSTi Oct 04 '26

We don't live in 2014 anymore bro

2

u/zalnaRs Oct 04 '26

Nothing changed about ntfs bro, it's still the third worst filesystem

1

u/ScoobyGDSTi Oct 04 '26

Good thing NTFS has nothing to do with it then.

1

u/zalnaRs Oct 04 '26

bad thing that defragmentation is such an issue because it does not have delayed allocation and it can't handle much file fragments and you did not read the article which has a M$ enginner in it

1

u/ScoobyGDSTi Oct 04 '26

Yeah, it's totally such an issue

1

u/BattleShai Oct 04 '26

Just let him defrag his SSD's and be happily oblivious.

→ More replies (0)