Fragmentation can be handled by using different methods, such as prevention, compaction, and defragmentation. Prevention is the method of avoiding or minimizing fragmentation by using a file system design or a file allocation strategy that reduces the chances of creating fragments or holes in the disk space. For example, some file systems, such as ext4 and ZFS, use variable-size blocks or extents to store files, which can reduce internal fragmentation. Some file allocation strategies, such as worst-fit and next-fit, can reduce external fragmentation by leaving larger gaps in the disk space. Compaction is the method of reclaiming the unused or unallocated disk space by moving the files or blocks to eliminate the gaps or holes in the disk space. For example, some file systems, such as FAT and NTFS, use a tool called Disk Cleanup to free up disk space by deleting temporary or unnecessary files. Defragmentation is the method of reorganizing the files or blocks to make them contiguous and reduce the number of fragments in the disk space. For example, some file systems, such as FAT and NTFS, use a tool called Disk Defragmenter to consolidate the file fragments and optimize the disk layout.