Linux defragmentation tips

  
                

We all know that Windows systems have disk fragmentation, but not on Linux, how can Linux clean up disk fragmentation? The following small series will introduce you to the way Linux defragmenting disk.

windows system's file system when you save the file, there will always be debris, but linux adopt a more intelligent way to place the file, it will file scattered throughout the disk, there is a large file directly Free space, even if it is fragmented, the file system will move files in daily use to reduce fragmentation, no special defragmentation program is needed.

Most computer users are using windows system, we are all Knowing that when the computer is slow to use, one of the methods is disk defragmentation, but in the Linux system, there is no disk defragmentation function, 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.

The above is the method for Linux to clean up disk fragments. If you Just want to clean up the Linux disk space, explain the system home to clean up the Linux disk space?

Copyright © Windows knowledge All Rights Reserved