The vast majority of computer users are using the Windows system, we all know that when the computer is slow to use, one of the ways is disk defragmentation, but in the Linux system, there is no disk defragmentation of this feature, why do not need disk defragmentation Linux?
This is because Linux and Windows file systems work differently.
Defragmentation is the movement of files to reduce the precision of fragmentation, as much as possible to keep files on the hard disk is continuously stored.
The file system of the Windows system will always have fragments generated when you save the file. And Linux takes a more intelligent way to place files, which scatter files across the disk, with files that have a lot of free space, and even if they are fragmented, the file system moves files in daily use to reduce fragmentation, No specialized defragmenter is required.
What if you want to defragment the Linux system? You need to copy all the files, then empty the partitions, and then copy the files back.
How to detect the extent of Linux fragmentation: View the number of noncontiguous I nodes in the output (non-contiguous inodes)