Can we defrag our disk in mac?

Discussion in 'iMac' started by stuart2102, May 22, 2012.

  1. stuart2102 macrumors regular

    stuart2102

    Joined:
    May 29, 2011
    #1
    Can we defrag our disk in mac just like in PC? if there is how or how are we going to taking care for our hard drive? im a new shifter user from PC to Mac so my concern is if there is the caring of hard drive in Mac as i do in PC
     
  2. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #2
    You don't need to defrag on Mac OS X, except possibly when partitioning a drive.

    About disk optimization with Mac OS X
    Five Mac maintenance myths
     
  3. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #3
    The HFS+ filesystem automatically defragments the hard drive to a certain degree. That coupled with modern drives not benefiting much from defragmenting, makes it rather unnecessary on Macs.
     
  4. stuart2102 thread starter macrumors regular

    stuart2102

    Joined:
    May 29, 2011
    #4
    Ahh okay thanks for this info oh yeah i might be wondering on partitioning i have 150gb on my booth camp and it seems i dont used it anymore is there anyways to delete from booth camp and recover that 150gb to put back on my mac as additional drive?
     
  5. goRoostr macrumors member

    Joined:
    May 17, 2012
    Location:
    Philadelphia Suburbs
    #5
    Same way you installed boot camp, go to the boot camp assistant in utilities and follow the steps to remove the partition.
     
  6. stuart2102 thread starter macrumors regular

    stuart2102

    Joined:
    May 29, 2011
    #6

    ahh okay thanks for this info
     
  7. monkeybagel macrumors 65816

    Joined:
    Jul 24, 2011
    Location:
    United States
    #7
    I agree with the other statements about the need to do it - Windows machines are bad to load a lot of code during startup and make startup slow. Defragging helps startup times and application load times on occasion. OS X doesn't seem to suffer from the same performance hits in these areas.

    You can do it with a third party applications

    http://www.coriolis-systems.com/iDefrag.php

    I have used this application as mentioned above to consolidate data and partition the drive, and it worked fine.
     
  8. gramirez2012 macrumors 6502a

    Joined:
    Jun 21, 2010
    Location:
    Chicago, USA
    #8
    Just curious - why is this?
     
  9. sk8r1230 macrumors 6502

    sk8r1230

    Joined:
    Aug 3, 2010
    Location:
    Indiana
    #9
    i still defrag my hdd's in my macs osx only takes care of certain files and has file size limits on what it auto defrags. ur statement about not being needed on new tech hard drives is very incorrect unless you are referring to ssd's. a hard drive is a hard drive. it spins and reads and write files. if files are fragmented then it finds them slower which in turn creates a slower working environment. i use drive genius 3 to keep an eye on fragmentation and run as needed
     
  10. forty2j macrumors 68030

    forty2j

    Joined:
    Jul 11, 2008
    Location:
    NJ
    #10
    Did you read the links GGJstudios posted? In those, it's pretty clear that for normal use, defrag is not at all required; between HFS+'s method of storage and caching, there's no additional benefit. However, they do state that if you routinely use large media files, then there is a benefit.
     
  11. Fishrrman macrumors G3

    Joined:
    Feb 20, 2009
    #11
    Others will reply that you "don't have to defrag with the Mac OS", but that's "bending the truth", as Mr. Twain would say.

    EVERY OS, no matter which one, eventually gets fragmented and slows down. The current Mac OS is no exception.

    OS X has the ability to automatically defragment -some- files, but there are limitations to what it does. For example, only smaller files are so defragmented, and the OS does NOTHING to re-concactenate fragmented "open space" on the drive platters.

    For Macs, you might look into "iDefrag":
    http://www.coriolis-systems.com/iDefrag.php
    (disclaimer: I have no association with this company)

    "Drive Genius" can also defrag (but does not offer all the options of iDefrag).

    I'm not certain if the free iDefrag demo will do this (without paying the registration fee), but it -might- permit you to "view" your drive, and check the condition of the platters insofar as fragmentation is concerned. If it permits this, you may be shocked at just how "broken up" the data is on the drive.
     
  12. forty2j macrumors 68030

    forty2j

    Joined:
    Jul 11, 2008
    Location:
    NJ
    #12
    It doesn't make a lick of difference how far apart individual files are on the drive. All that matters is if a particular file gets spread all over the drive. In OS X, that only happens on extremely full drives, or if you are editing large media files. Again, read the readily-available information.
     
  13. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #13
    The immense size of the drive and the speed at which it can access files spread across the drive render the benefits of defragmenting rather moot. And of course SSDs should never be defragmented.
     
  14. Gator Bob macrumors regular

    Joined:
    Aug 3, 2011
    #14
    That is exactly what SDD manufacturers recommend. Degfragging a SDD shortens its usable life.
     
  15. sk8r1230 macrumors 6502

    sk8r1230

    Joined:
    Aug 3, 2010
    Location:
    Indiana
    #15
    I didn't need to read the link as I have already done the research and made up my mind. Ur posts just proves what I already said just in different words. In the end check ur drive. If it needs it do it. Seems simple
     
  16. stuart2102 thread starter macrumors regular

    stuart2102

    Joined:
    May 29, 2011
    #16
    im actually doing HD video editing on my imac so for now im still gathering information and search on which is which defrag or not to be defrag hehehe
     
  17. theSeb macrumors 604

    theSeb

    Joined:
    Aug 10, 2010
    Location:
    Poole, England
    #17
    Drive Genius 3 is the best application for this. It's a bit pricy, but it's what the Apple Store techs use as well.
     
  18. throAU, May 25, 2012
    Last edited: May 25, 2012

    throAU macrumors 601

    throAU

    Joined:
    Feb 13, 2012
    Location:
    Perth, Western Australia
    #18
    This is a crock.

    HFS, or any FS can only do so much (HFS is allegedly better than NTFS), and putting frequently accessed files at the start of the disk can increase access speed to said files on a spinning disk by a factor of 2x vs them residing at the end of the disk. I've shrunk and re-expanded my drive to force this to occur and it has sped my mac up significantly.

    Defragmentation is not "necessary" but to say there is no performance benefit from proper file placement, and non-fragmented files is simply wrong and impossible without violating the laws of physics - no matter how old the disk - if it spins and has a head it still will benefit from proper file placement. If a file is split into noncontiguous areas of the disk, it takes longer to access. if it is at the end of the disk, it takes longer to access.

    And OS can attempt to minimise splitting files up, but it WILL eventually happen - especially so if you have little free space.

    If you save a file, save another file, then increase the size of the first file, it will fragment. To not fragment, the OS would need to re-read the entire file and copy it to another contiguous area of the disk of adequate size (which may not exist) and this would take longer than simply creating a fragment, killing IO. Or, if the entire file contents is in ram, write the entire contents again vs update a small area that was changed / added. Either way, interactive IO is shot to pieces. So that's not what happens - and files get fragmented.

    time machine local snapshots on a portable mac (with Lion) probably make this even worse - as even if the file doesn't grow, the new writes are NOT written to the original sectors - they're appended elsewhere on the disk and then rolled back into the original file (?) when the old snapshot is expired. thus, the file is fragmented.


    SSD? Different story...


    If you're looking to do video editing on spinning disks, here's a tip:

    create a scratch partition at the start of your disk for this as a temporary work area. Format it when you're done working on the file(s) and have copied them to permanent storage. You'll maintain a non-fragmented area of your drive, and the start of the drive is the fastest part.


    Apple/users can attempt to spin this all they like. Fragmentation happens - and yes it hurts spinning disk performance.

    No matter how big the amount of data you are reading/writing is - a SATA 7200 rpm drive can only do about 150 random seeks per second (5400 rpm = worse). As an extreme example: If it has to do say, 50 random seeks to read your file it doesn't matter if it is 150k or 15mb, it will be read into memory in about the same time. Sequential transfer speed is pretty fast. It is seek time that kills it.

    Microsoft claimed that NTFS didn't need defragmentation either. Until they included defrag tools for it :D
     
  19. forty2j macrumors 68030

    forty2j

    Joined:
    Jul 11, 2008
    Location:
    NJ
    #19
    One of the things HFS+ does is make sure files aren't directly adjacent. If there's room on the disk, it will keep the files spread out, so that there will be room for them to grow if needed.

    It is, in some situations, possible for files in HFS+ to become fragmented.. but I think what we're saying here is that the typical user needn't worry about it and that adding a defrag into regular maintenance is far from necessary. In fact, I believe a standard defrag would then begin to defeat HFS+'s own fragmentation protection.

    Also, from Apple's support article:
    (Emphasis mine)
     

Share This Page