You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how to do a disk defragment on a mac book

How do i do a disk defragment on my mac book pro

MacBook Pro

Posted on Jan 23, 2012 1:45 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 23, 2012 1:53 PM

It's just not necessary or done on a Mac. Some people do it (and you can find apps that help you out), but most old grizzled Mac users never do it. Don't bother, it won't do much.


Mac OS X's formatting system is quite advanced and doesn't use every nook and cranny of your hard drive. The only time when it "might" matter is when or if your hard drive is near full, and OS X is trying to find those nooks and crannies.


  • 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.


Message was edited by: OrangeMarlin

82 replies

Feb 27, 2014 2:34 PM in response to CartographerNick

To cartographerNick: i'm educated enough as a Mac user to tell other Macuser that they don't have to buy / use defragmentation software.


For those few who would need to defragment their HD: Make a Time Machine back-up, or clone your disk (with superduper!), format the drive and install a fresh os X, copy TM back-up back or copy back the clone.

Free, fast en save.

That's it.

No specialised defragmentation software needed.

Apr 22, 2014 11:01 AM in response to lweileman

There seems to be two sides to this defragmenting issue here. Both are correct in their own ways but only slightly. Here is the truth.


Mac does do routine file defragmentation as you go about your normal activies. But it only defrags files of 20mb-50mb (apple tells you if you look but this is around the sizes) or less routinely. This means that if you do a bunch of read/write operations of larger files (large pictures, audio editing, video editing, downloading movies, downloading archives, etc) that you WILL have to eventually defragment your harddrive.


There are people that says it does nothing to help and can only do harm if you do defragment. However this isn't the case. Macbooks are computers just as much as PC's are computers. Both do benifit from routine maintenece as well.


If you move large files (moving large files to a backup HDD and deleting as well) your system will end up fragmented.


I do my defraging with ONYX and iDefrag.


First I backup what I need/want. Then I repair permissions using ONYX. Then I do a full defrag with iDefrag.


I can tell you for sure that this has helped my system. I do alot of audio editing (audio engineer/producer) with huge .wav files all of the time. My bootup speed increased to boot in 40 seconds (compaired to before at 1:20) and everything runs much smoother again (just like new).


But also be sure that you DO NOT defrag an SSD (will burn it out faster) and ALWAYS make a backup!


Hope this helps!

May 21, 2014 5:11 AM in response to James O-'Brien__

You state: Mac OSX has tools to copy to a clean external drive, boot off that drive, wipe your hard drive, and copy back.


My question is 2 fold..

1. when you say clean external drive you are suggesting a completely empty external drive?

2. I have an Imac with OSX, but it has slowed way down in recent months, it has 4GB of memory, 1.48GB of usalbe space but still very very slow, and crashing once a quarter as of late...I want to safely save all my data on my Mac, could I put it on my Macbook Air as the "external drive?" If so is there a detailed video or article on how to do this? **would backing up to Carbonite be a wise thing?**

how to do a disk defragment on a mac book

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.