What is the Meaning of Disk Defragmentation
- Why Disk Fragments Appear
- Ways to Manage
- Make Recommended Settings to Reduce Fragments
- Related Common Sense
Please read Defrag Hard Drive in Windows to Improve Computer Performance to know the exact steps to defrag a hard drive and the benefits brought by disk defragmentation.
Disk fragments or file fragments are produced in the process of saving files scattered to different parts of the whole disk rather than in a continuous clusters. After a period of time, due to the repeated writing and deleting, free sectors in disks will be spread to discontinuous parts of the disk. Thus the files can not be saved to continuous sectors. When reading and writing, the head will move back and forth, which will slow down the disk access speed.
Why Disk Fragments Appear
When the required physical memory is not enough (please go to this page if you encounter not enough disk space error when you plan to upgrade/update Windows 10), most of the operating systems will bring out temporary file on the hard disk, and the space occupied by this file will be virtualized to memory. And the virtual memory management program will do frequent reading and writing operation to the hard disk, and then there will be a lot of fragments in the hard disk.
When browsing on the Internet, some temporary files or settings in temporary file directory will be generated by Internet Explorer or other browsers. Then massive fragments will be found in the system. File fragmentation does no damage to the system, but it will reduce the disk performance. What's more, it will even shorten the disk's service life.
Ways to Manage1. Using disk defragment program in Windows 7.
Start “Search programs and files” to input Disk Defragmenter > Click “Disk Defragmenter” > Click the volume that you want to defragment > Click “Defragment Disk”.
2. Relying on some disk defragment tools.
Note: In the version above Windows Vista, files less than 64 MB will not be arranged, so the speed of disk defragmentation can be fast.
Make Recommended Settings to Reduce Fragments
Settings on Optimization
Users have two choices which are called fast optimization and complete optimization. Home users can choose fast optimization (once every half a year). Optimizing is to move the frequently used files to the high performance area in a drive to fasten the reading speed.
Setting of Files Gap
We recommend that users should not keep file gap. If we reserve the setting, a large number of fragments will be produced.
Move Catalogue Close to MFT
This move will greatly fasten the file reading speed.
Related Common SenseDisk defragmentation should be run in the following situations.
1. After increasing a lot of documents in the computer;
2. There is only about 15% available free space in the disk;
3. Installed a new program or the new version of Windows.
Linux's File System
Linux file systems can be roughly divided into two blocks: the inode region and the block region. There are many records in the inode. And each record is used to store the information, including permission, modificated date, name, etc. The actual content of a file may be scattered in different locations in the block. The position information is recorded in a record of the inode. Block area is a serial of fixed block. And it is responsible for the actual content of the document. Inode functions like index, and the block is data area.
Comparison Between Linux and Windows
When reading a file in Linux:
1. Searching the corresponding file in the inode area.
2. Get the conclusion that the files' location in different blocks.
3. Design the best route to get (read) these blocks in hard disk.
When reading a file in Windows:
1. Find the corresponding files in the distribution list, and read the first cluster.
2. Move to the next cluster and read according to the clusters' position.
3. Repeat operations in step 2 until the file is over.
If the file on the disk is fragmented, Windows needs doing more operations to find these files while the Linux can read in order at a time. For Windows, saving file continuously is good to improve the efficiency of reading.