Finder shows wrong amount of free disk space

Discussion in 'OS X Yosemite (10.10)' started by Janichsan, Apr 20, 2015.

  1. Janichsan, Apr 20, 2015
    Last edited: Apr 20, 2015

    Janichsan macrumors 65816

    Janichsan

    Joined:
    Oct 23, 2006
    #1
    Since a couple of days, the Finder shows a ridiculously wrong amount of free disk space on my boot disk:

    [​IMG]

    I already found that I can "fix" this by disabling the local backup with "sudo tmutil disablelocal". However, when I re-enable them the problem returns the next time I reboot my Macbook.

    Does anyone know a persistent fix without having to keep the local backups disabled?

    (Before you ask: I also have tried to repair my disk and the permissions, to no avail.)
     
  2. LV426 macrumors 6502a

    Joined:
    Jan 22, 2013
    #2
    Are you doing regular Time Machine backups, by any chance?

    If you are, there's a good chance that you have many GB of deleted files hidden away on your drive, on the off chance that you might want to do a Time Machine restore. OS X does this in case you don't always have access to your backup device. OS X will keep such files until you are starting to run out of space, or until you do a complete computer restore from backup.

    Clicking the Apple logo on the top left and getting information about storage can tell you how much space you have devoted to backups.
     
  3. Janichsan thread starter macrumors 65816

    Janichsan

    Joined:
    Oct 23, 2006
    #3
    Yeah, I know this has something to do with the local TimeMachine backups - hence the provisional fix I mentioned. Disabling the local backups is supposed to get rid of these backups, though. What's more, these local backups don't actually exist, as the nonsensical amount of space they allegedly take up should make clear: 280 terabyte of backups on an 840 gigabyte partition makes little sense, doesn't it?
     
  4. AlanShutko macrumors 6502a

    Joined:
    Jun 2, 2008
    #4
    Try running disk utility and verifying your partition. That seems like it could be some corruption of the free blocks count in the filesystem.
     
  5. Janichsan thread starter macrumors 65816

    Janichsan

    Joined:
    Oct 23, 2006
    #5
    As mentioned: I already did that. Didn't help.
     
  6. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #6
    What does Disk Utility show for space available/used? Different than Finder?
     
  7. Janichsan thread starter macrumors 65816

    Janichsan

    Joined:
    Oct 23, 2006
    #7
    Both the Disk Utility and "df -h" in the Terminal show the correct amount of free space.
     
  8. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #8
    Try clicking About this Mac under the Apple logo at the top left then look at the Storage tab. What does that show?
     
  9. Janichsan thread starter macrumors 65816

    Janichsan

    Joined:
    Oct 23, 2006
    #9
    An unrealistic amount of disk space allegedly used by backups.

    As I said: I know this is related to the local backups. I'm looking for a persistent fix.
     
  10. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #10
    If that storage graphic is wildly off and Finder and DU are correct, it is likely an issue with the Spotlight index. That is where that storage graphic gets its info.

    Try running the command below in Terminal to reindex Spotlight (it can take a while to complete) then see if the storage graphic looks correct.

    Code:
    sudo mdutil -E /
    Before you do that though, run this command in Terminal to show how much space the hidden local backups is using.

    Code:
    sudo du -hs /.MobileBackups
     
  11. joedec, Apr 22, 2015
    Last edited: Apr 22, 2015

    joedec macrumors 6502

    joedec

    Joined:
    Jul 25, 2014
    Location:
    Cupertino
    #11
    The default in 10.10 is to use <= 80% of the device for local TM backup. The Finder differs from "df -h" and the Disk Utility because Finder shows available space including the backup space. It's assumed available by Finder because they delete the local backup files if the filesystem needs space for something else.

    The only way to stop this from happening is disable local backups.

    Code:
    sudo tmutil disablelocal
    If you check System Preferences/Time Machine they indicate if local backups are taken or not. It will state "Local snapshots as space permits"
     
  12. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #12
    If you look through the thread, OP already tried that and it did fix it, but one should be able to use local backups without this occurring, and that is the issue here. OP is seeing "280 terabyte of backups on an 840 gigabyte partition" and obviously that is not possible. I think what is happening is the space it not used, but just incorrectly showing as being used.
     
  13. joedec, Apr 23, 2015
    Last edited: Apr 23, 2015

    joedec macrumors 6502

    joedec

    Joined:
    Jul 25, 2014
    Location:
    Cupertino
    #13
    My bad, missed it in the original post too.

    When showing About this Mac, add the space labeled Backup with Free and you'll get the same number the Finder shows.

    I would bet there is a huge file, or file structure, that gets changed or just touched getting backed up. The key is to find it and exclude it. Something like a VM disk maybe.
     
  14. Janichsan, Apr 23, 2015
    Last edited: Apr 23, 2015

    Janichsan thread starter macrumors 65816

    Janichsan

    Joined:
    Oct 23, 2006
    #14
    According to that 7.7 GB. The Spotlight tip seems to have helped, at least for the time being: since I did that, the Finder shows the correct amount of free space, even with local backups enabled and after two reboots. So far, so good.
     
  15. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #15
    Oh good. This was an issue with previous OS X versions and seems to be back with Yosemite. That Spotlight index gets corrupted and it make that space used show all out of whack.
     

Share This Page