Linux does not have disk defragmentation function

  
                  

The vast majority of computer users are using Windows. We all know that when the computer is slow to use, one of the methods is disk defragmentation, but in Linux, there is no disk defragmentation. Functional, why does linux do not need disk defragmentation?

This is because of the different working methods of linux and windows file systems.

Defragmentation is to reduce the precision of the fragments by moving files, and try to keep the files stored continuously on the hard disk.

The file system of Windows system will always have fragments when saving files, and Linux takes a more intelligent way to place files, which spreads the files across the entire disk, and the files have a lot of free space. Even if fragmentation occurs, the file system moves files in daily use to reduce fragmentation and does not require a dedicated defragmenter.

What if I want to defragment the Linux system? Then you need to copy all the files, then empty the partition and copy the files back.

Method for detecting the degree of fragmentation of Linux: View the number of non-contiguous inodes in the output

Copyright © Windows knowledge All Rights Reserved