Defragmentation

Defragmentation is a process that happens with digital files. Files are usually stored in one part. When a disk drive fills up, finding an empty space that is l

Defragmentation
Defragmentation happening

Defragmentation is a process that happens with digital files. Files are usually stored in one part. When a disk drive fills up, finding an empty space that is large enough becomes more difficult. When this happens, the file is split into different parts, and each part is stored on a different place in the disk. That process is known as fragmentation. Fragmentation happens because different parts of a file are not stored next to each other. When the file is read, the different parts must be assembled. Fragmented files take longer to assemble. Files that are stored in one part can be read faster. Defragmentation reverses fragmentation and puts the file into one piece.

The process

Defragmentation is the process of rearranging the different parts, so that they are stored next to each other. This is usually done by copying them to a different place on the disk. Defragmentation is relevant to file systems on electromechanical disk drives. To read each part, the head of the hard disk needs to reposition itself to the area where the part is stored.

The problem of defragmentation is that it is takes a long time and in some cases, the file system cannot be changed while it is in progress. For that reason, defragmentation should not be done, when it can be avoided.

There are different kinds of files, some of them are modified more often. It is often a good practice to put them on different partitions, as most Unix-like operating systems do. Also, the design of hard drives has changed over time, which makes the effects of defragmentation less visible.

Media that uses flash memory, such as solid-state disks, do not benefit from defragmentation, as there are no moving parts than need to be re-positioned.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.