How to defragement a hard drive

Just upgraded my iMac 27" purchased in August 2012 to Yosemite.  I move a lot of video files and my machine is running slow (nothing to do with the Yosemite upgrade).  I used iDfrag in the past but it has not been updated for Yosemite.  My questions is:  What is the easiest way to defrag my hard drive?
Thank you
VPH

You don't defrag a drive running Apple OS X.
Defragmentation in OS X:
http://support.apple.com/kb/HT1375  which states:
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 onwards 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.
Whilst 'defragging' OS X is rarely necessary, Rod Hagen has produced this excellent analysis of the situation which is worth reading:
Most users, as long as they leave plenty of free space available , and don't work regularly in situations where very large files are written and rewritten, are unlikely to notice the effects of fragmentation on either their files or on the drives free space much.
As the drive fills the situations becomes progressively more significant, however.
Some people will tell you that "OSX defrags your files anyway". This is only partly true. It defrags files that are less than 20 MB in size. It doesn't defrag larger files and it doesn't defrag the free space on the drive. In fact the method it uses to defrag the smaller files actually increases the extent of free space fragmentation. Eventually, in fact, once the largest free space fragments are down to less than 20 MB (not uncommon on a drive that has , say only 10% free space left) it begins to give up trying to defrag altogether. Despite this, the system copes very well without defragging as long as you have plenty of room.
Again, this doesn't matter much when the drive is half empty or better, but it does when it gets fullish, and it does especially when it gets fullish if you are regularly dealing with large files , like video or serious audio stuff.
If you look through this discussion board you will see quite a few complaints from people who find that their drive gets "slow". Often you will see that say that "still have 10 or 20 gigs free" or the like. On modern large drives by this stage they are usually in fact down to the point where the internal defragmentation routines can no longer operate , where their drives are working like navvies to keep up with finding space for any larger files, together with room for "scratch files", virtual memory, directories etc etc etc. Such users are operating in a zone where they put a lot more stress on their drives as a result, often start complaining of increased "heat", etc etc. Most obviously, though, the computer slows down to a speed not much better than that of molasses. Eventually the directories and other related files may collapse altogether and they find themselves with a next to unrecoverable disk problems.
By this time, of course, defragging itself has already become just about impossible. The amount of work required to shift the data into contiguous blocks is immense, puts additional stress on the drive, takes forever, etc etc. The extent of fragmentation of free space at this stage can be simply staggering, and any large files you subsequently write are likely to be divided into many , many tens of thousands of fragments scattered across the drive. Not only this, but things like the "extents files", which record where all the bits are located, will begin to grow astronomically as a result, putting even more pressure on your already stressed drive, and increasing the risk of major failures.
Ultimately this adds up to a situation where you can identify maybe three "phases" of mac life when it comes to the need for defragmentation.
In the "first phase" (with your drive less than half full), it doesn't matter much at all - probably not enough to even make it worth doing.
In the "second phase" (between , say 50% free space and 20% free space remaining) it becomes progressively more useful, but , depending on the use you put your computer to you won't see much difference at the higher levels of free space unless you are serious video buff who needs to keep their drives operating as efficiently and fast as possible - chances are they will be using fast external drives over FW800 or eSata to compliment their internal HD anyway.
At the lower end though (when boot drives get down around the 20% mark on , say, a 250 or 500 Gig drive) I certainly begin to see an impact on performance and stability when working with large image files, mapping software, and the like, especially those which rely on the use of their own "scratch" files, and especially in situations where I am using multiple applications simultaneously, if I haven't defragmented the drive for a while. For me, defragmenting (I use iDefrag too - it is the only third party app I trust for this after seeing people with problems using TechToolPro and Drive Genius for such things) gives a substantial performance boost in this sort of situation and improves operational stability. I usually try to get in first these days and defrag more regularly (about once a month) when the drive is down to 30% free space or lower.
Between 20% and 10% free space is a bit of a "doubtful region". Most people will still be able to defrag successfully in this sort of area, though the time taken and the risks associated increase as the free space declines. My own advice to people in this sort of area is that they start choosing their new , bigger HD, because they obviously are going to need one very soon, and try to "clear the decks" so that they maintain that 20% free buffer until they do. Defragging regularly (perhaps even once a fortnight) will actually benefit them substantially during this "phase", but maybe doing so will lull them into a false sense of security and keep them from seriously recognising that they need to be moving to a bigger HD!
Once they are down to that last ten per cent of free space, though, they are treading on glass. Free space fragmentation at least will already be a serious issue on their computers but if they try to defrag with a utility without first making substantially more space available then they may find it runs into problems or is so slow that they give up half way through and do the damage themselves, especially if they are using one of the less "forgiving" utilities!
In this case I think the best way to proceed is to clone the internal drive to a larger external with SuperDuper, replace the internal drive with a larger one and then clone back to it. No-one down to the last ten percent of their drive really has enough room to move. Defragging it will certainly speed it up, and may even save them from major problems briefly, but we all know that before too long they are going to be in the same situation again. Better to deal with the matter properly and replace the drive with something more akin to their real needs once this point is reached. Heck, big HDs are as cheap as chips these days! It is mad to struggle on with sluggish performance, instability, and the possible risk of losing the lot, in such a situation.

Similar Messages

  • New user from PC.. how do I defragment my hard drive?

    Not really sure how to defrag my hard drive as someone normally would with a PC..

    I would go the empirical way. If at some point you think that performance is degrading, you could install some application with a defragmentation tool (such as Drive Genius or SpeedTools Utilities) and try them out (not all have demo possibilities). I don't know any free alternative, but a poor man's solution is to copy as much data as possible to another disk, delete it and copy them back in so that files get laid out in the best way possible (or do a full restore of the drive for maximal performance).
    Appl'es view on fragmentation is usually optimistic, though sometimes they estimate that it might be a workaround to applications such as the one you suggest. Keeping a lot of free disk space seems the way to avoid fragmentation for as much as possible, but I imagine that only experience will tell.
    Cheers.

  • Defragment your hard drive

    i read you can Defragment your hard drive in windows, but can you do it in a mac? if so, how?

    Unix(core of os X) handles files far better than windows does, so you do not get near the fragmentation that you get under windows.
    OS X automagically defrags files under a certain size.
    Short answer-you do not have to defrag.
    If you absolutely feel you have to, search out some utilities for os x to do so.

  • Defrag my hard drive on my iMac now I tunes can't find my songs in the iTunes library

    I defraged my hard drive now iTunes can't find the songs in the library. Not connected to the cloud yet. Any suggestions on getting iTunes to find the master copy of the songs so I can play them on my iMacs. I have the same songs on my I pad but I don't know of any way of transferring my music from my iPod to the iTunes library on my iMac. Any thoughts.

    Same problem here. In my case I suspect due to having been cleaning out duplicate music files when hard disk was filling at an alarming rate (as I watched.) No longer doing that but my cleanup must have moved essential elements and files.
    Anyone know how to get my purchased stuff, showing as purchased but with exclamation mark, back into itunes again?

  • Defrag the hard drive?

    Is there a way to defrag the hard drive, like on a PC, on my iBook G4 if it is running rather slowly?

    If you get into home tech, and buy an external bootable enclosed
    hard disk drive, you could clone your complete computer drive
    over to an external (FireWire for PPC, USB 2.0 for Intel) using a
    clone utility; then use the booted OS X installer's Disk Utility's
    options to zero data on the hard drive and reformat it to HFS+.
    This will wipe everything and also as a result, will defragment it.
    And then you can re-clone your (pretested) full system clone
    back into the computer from the external using the clone utility.
    That's how I occasionally defrag; but I don't do all this for that
    end. Making a complete computer backup before and after
    successful system upgrades, is always a primary reason to clone.

  • I dropped my macbook pro and the screen is broken can i still use it with an external monitor? Or can I or how do I transfer hard drive files to my mac mini?

    I dropped my 17" macbook pro and the screen is broken. Can I still use it with an external monitor? When I plugged it into a monitor I had used it with before, I'm not able to see anything on the macbook screen to control it. It came on but I just got the blue screen with nothing else after typing in my password. (Didn't see the password form just assumed it was there somewhere and it did go from space to blue screen but no desktop icons, files, dock strip at top or anything else, just blank blue screen) so I can't access the system preferences.
    Or can I / or how do I, transfer hard drive files to my mac mini? If not salvageable as is can I pull out the hard drive and make it an external harddrive? In otherwords is anything salvageable? It seems it's coming on I just can't access anything. BTW I was told it would cost aprox $1000 to replace the screen! I paid almost $4000 for this thing and it was running great - makes me sick to lose it!

    I'd like to promise you that everything will be fine if you just get the monitor going - but it's hard to know what the hardware damage might be. It might be the monitor, or the damage might be greater.
    Your best solution would be visit your local Apple Store and let them know what your situation is. They have access to diagnostics you don't, and they might be able to the best way to save your data and keep you computing. It's still not covered, but they can tell you what your current options are.
    Um, you might consider investing in a backup drive.
    And there other repair options, too. Powerbook Medic http://www.powerbookmedic.com/xcart1/pages.php?pageid=67 offers reliable repairs, and quotes prices well under Apple's.

  • On my macbook pro the hard drive icon is not on my desktop and I don't know how to find the hard drive or get the icon back on my desktop

    on my macbook pro the hard drive icon is not on my desktop and I don't know how to find the hard drive or get the icon back on my desktop

    Click on the Desktop. From the Finder menu select Preferences. Check the boxes for what you want on your Desktop. If they are already checked, then try unchecking and rechecking.

  • How big of a hard drive will a DV7-1150us support?

    I have an HP Pavilion DV7-1150us that the hard drive failed in and needs to be replaced. How large of a hard drive will this PC support?

    The largest listed as an order option is 320GB- but I would think at least a 500Gb could be used. The biggest issue you face, if using Vista Recovery Discs, is that most hdd's are now AF (Advanced Format) and they rarely (never) work with this type hdd. I would suggest searching around for non-AF hdd if you will be using Vista.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • How big a internal hard drive can I install in a G5 Powermac

    Model Name:          Power Mac G5
      Model Identifier:          PowerMac11,2
      Processor Name:          PowerPC G5 (1.0)
      Processor Speed:          2 GHz
      Number Of CPUs:          2
      L2 Cache (per CPU):          1 MB
      Memory:          4.5 GB
      Bus Speed:          1 GHz
      Boot ROM Version:          5.2.7f1
    How big a internal hard drive can I install in a G5 Powermac

    2.1 TB for certain & some 3 TB drives work if Partitioned to less than 2.1 TB but then it must be GUID instead of APM, most important is if it is SATA I 1.5Gb/sec compatible.

  • How big of a hard drive for 15" G4 667

    I have a 15" G4 667 and it has a 30gb... how big of a hard drive can i install in it... i would like to install a 160gb

    Hi, letmeno. If your 667MHz Powerbook has a DVI video-out port, it will format a nominal 160GB drive to its actual capacity (about 149GB) and use it happily, without any other limitations.
    If you have the 667MHz model with a VGA video-out port, only 127-128GB of a 160GB drive can be recognized in it, and the last 20GB of the drive's actual capacity will be unavailable. Partitioning the drive has no effect on this hardware limitation.
    A 120GB drive (the next size down) has a formatted capacity in any machine of about 111GB, so a 160GB drive actually provides a significant increase even in a Powerbook that can't use the whole drive. If you have the VGA model, and the difference between 111GB and 128GB is worth the difference in price between a 120 and a 160GB drive to you, go ahead and install a 160. Otherwise, even a 120 would certainly be a huge improvement over a 30.
    If you do buy a 160, any later Powerbook or other recent Mac model will be able to reformat it to its full capacity. Whenever you move on to a newer Mac, you can just mount the 160 in an external enclosure for continued use, put the 30 back into the Tibook, and sell it or give it away.

  • How large of a hard drive can i put in my Macbook Pro (early 2011)

    how large of a hard drive can i put in my Macbook Pro (early 2011) and where can i get one?

    You can find answers to both at OWC as well as installation tutorials. I think you will find 1 to 1.5 TBs are the largest.

  • How big of a hard drive can I stuff in my 13" white mac book?

    Hi,
    I have a (june 2007) 13" 2.16 GhZ, 2 GB RAM Intel Core 2 Duo white macbook with a 120 GB hard drive. The hard drive is about 3/4 of the way full and I am starting to shop around for an upgrade. According to apple, my macbook is upgradable to 250 GB but I have found a WD 320 GB drive that is supposedly compatible here
    http://eshop.macsales.com/MyOWC/Upgrades.cfm?model=265&type=DataStorage&TI=2824&shoupgrds=ShowUpgrades
    My question is, how big of a hard drive can I fit in my little macbook? I just want to be sure before I buy.
    Thanks!

    I installed the 320 GB Western Digital drive in my BlackBook and it runs great. I checked it against my 80 GB drive with XBench and it has better response time.
    While your in the buying mood you might want to consider a OWC Hard Drive Enclosures. I picked up one to install my old drive in so I could use it to help recover my system and to use for storage,

  • How to change a hard drive in a first generation intel Imac?

    My hardrive cratered today on my first gen intel. where can I find the info for  How to change a hard drive in a first generation intel Imac?

    Go to http://www.ifixit.com/Browse/iMac_Intel , choose your system, and choose hard drive replacement to see how to do that. 

  • How to wipe the hard drive on a screen-dead Powerbook G3?

    The display on my 1998 G3 Wallstreet Powerbook recently went black and the computer made a noise that I understand is called The Chimes of Death, although the hard drive still makes whirring noises. My local and trustworthy Apple repair service assures me the Powerbook wouldn't be worth repairing even if they could get the parts for such an old machine.
    Is there a way to wipe the hard drive and make my data irretrievable before disposing of the computer?
    If there's no way to wipe the hard drive, I'd like to find out: (1) How to remove the hard drive. (2) The best way to destroy the hard drive or at least make it forever unreadable (can my shredder eat it?). (3) The correct way to dispose of a Powerbook that has heard the Chimes of Death. (From what the repair service says, I assume nobody would want it as a donation.)

    Turtlewiz,
    I would not be so quick to pronounce it dead:
    http://docs.info.apple.com/article.html?artnum=14438
    I would try the suggestions in the above article. Will it boot to a CD?
    As far as wiping the drive, it is easy as long as you can see a display so you can follow the steps necessary. You just open Drive Setup in the Utilities Folder on the CD > select 'zero all data' in the Initialization Options; do it a few times if concerned.
    Removing the HD is relatively easy: Just lift off the keyboard and the heat sink, then remove the HD.
    http://www.ifixit.com/Guide/3.0.0.html
    Hit the HD a few times with a hammer and nobody will bother with it...it has a glass platter.
    Nothing to offer on the recycling except Good Will may still take it as "non-working" since there are Mac users looking for such bargains.

  • How to reinstall a hard drive on a mac pro that was accidentally dragged out of Finder

    How to reinstall a hard drive on a mac pro that was accidentally dragged out of Finder?  I have files on this drive that I don't want to loose or corrupt.

    If you mean you dragged the hard drive shortcut out of the sidebar of a Finder window, you're quite all right - that's just a shortcut and you haven't lost any files. You can get it back by going to Finder preferences (the Finder menu, then Preferences), click Sidebar, and tick the "hard drives" box fully to show all hard drives.
    Post back if you did something different though.
    Matt

Maybe you are looking for