Among the list of most Mac switchers’ first questions is “how do I defrag* my Mac’s hard drive?” In response, the question then becomes, do you need to defrag your Mac’s hard drive?
There are two schools of thought in this arena and you can choose either.
Apple’s Official Representation On Defragging Your Mac’s Hard Drive
Apple’s official representation on the matter is as follows:
“You probably won’t need to optimize at all if you use Mac OS X. Here’s why:
- Hard disk capacity is generally much greater now than a few years ago. With more free space available, the file system doesn’t need to fill up every “nook and cranny.” Mac OS Extended formatting (HFS Plus) avoids reusing space from deleted files as much as possible, to avoid prematurely filling small areas of recently-freed space.
- Mac OS X 10.2 and later includes delayed allocation for Mac OS X Extended-formatted volumes. This allows a number of small allocations to be combined into a single large allocation in one area of the disk.
- Fragmentation was often caused by continually appending data to existing files, especially with resource forks. With faster hard drives and better caching, as well as the new application packaging format, many applications simply rewrite the entire file each time. Mac OS X 10.3 Panther can also automatically defragment such slow-growing files. This process is sometimes known as “Hot-File-Adaptive-Clustering.”
- Aggressive read-ahead and write-behind caching means that minor fragmentation has less effect on perceived system performance.
For these reasons, there is little benefit to defragmenting.
Note: Mac OS X systems use hundreds of thousands of small files, many of which are rarely accessed. Optimizing them can be a major effort for very little practical gain. There is also a chance that one of the files placed in the “hot band” for rapid reads during system startup might be moved during defragmentation, which would decrease performance.”
Optimising & Defragging Your Mac’s Hard Drive
If you nevertheless, find great comfort in going through the motion of defragging your Mac’s hard drive you can perform it in one of two ways:
- acquire a third party application that carries out Mac defragging, eg Norton Utilities, Coriolis Systems iDefrag or Micromat’s Techtool Pro
- Another option is to back up your important files, erase the hard disk, then reinstall Mac OS X and your backed up files.
One more option is to try to shutdown your Mac and reboot it.
* Files can become “fragmented” over time as they are changed and saved and as the volume is filled, with different parts of a single file stored in different locations on a volume. The process of collecting file fragments and putting them “back together” is known as optimization. However, if a failure occurs during optimization, such as power loss, files could become damaged and need to be restored from a backup copy.