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.