Apple developers must hate Math, miscalculated my disk space.

Discussion in 'Mac Basics and Help' started by Blackberryroid, Aug 14, 2012.

  1. Blackberryroid macrumors 6502a

    Blackberryroid

    Joined:
    Aug 8, 2012
    Location:
    /private/var/vm/
    #1
    I guess Apple developers hated Math when they were studying, because a simple mathematical computation went wrong.

    I went to the root of my drive and checked the get-info of every folder in there. I did the math, it says 108 GB. Mac OS X reports that I ate 116 GB of disk space.

    Don't you just hate it when your disk space gets reported wrong?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Did you include the hidden folder the Finder does not show?
     
  3. tjcad macrumors newbie

    Joined:
    Jul 29, 2010
    #3
    Maybe its like the hard drive capacity thing.

    Like if you have ~128 GB (advertised on the box) but you're only getting ~119 GB (GiB) useable space (as in what you see in the computer).

    If you calculate it:

    ~116 GB is equal to ~108 GB (GiB).
     
  4. Blackberryroid thread starter macrumors 6502a

    Blackberryroid

    Joined:
    Aug 8, 2012
    Location:
    /private/var/vm/
    #4
    I'm pretty sure that all the Get-info boxes has the same value of GB. The get-info box of the whole HDD says 116. When I crack it open, get info every folder and file in there and add them all, it would say 108 GB.

    ----------

    I'm sure if there is a hidden folder, it wouldn't weigh 8 GB.
     
  5. MacDawg macrumors P6

    MacDawg

    Joined:
    Mar 20, 2004
    Location:
    "Between the Hedges"
    #5
    I'm gonna hazard a guess and say your disk space isn't miscalculated and you have either overlooked something or there is a reasonable explanation (other than Apple developers hating maths)
     
  6. kodeman53, Aug 14, 2012
    Last edited: Aug 14, 2012

    kodeman53 macrumors 65816

    Joined:
    May 4, 2012
    #6
    Don't you just hate it when people's ego won't let them conclude they don't understand how OSX reports disk space and they opt for the least likely explanation that Apple programmers can't write code that adds correctly, then they start a thread about it.

    EDIT: Don't you just really hate it when someone is given an explanation, they dismiss it because if contradicts their initial, incorrect, explanation?
     
  7. Pivs macrumors member

    Joined:
    Jul 2, 2012
    Location:
    Virginia
    #7
    My hidden Library folder weighs in at 41 GB, so it could definitely account for that discrepancy. The developers are not going to make a math blunder of that magnitude.
     
  8. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #8
    Why not use OmniDiskSweeper

    Personally, I think apple devs probably got it right, when I have to manually tally something up and it differs from the automated number its usually me that caused the discrepancy

    As others stated there are hidden files that are not normally accessible within finder and so if you fail to account for them, such as /private, /etc, /Network etc etc your count will be off.
     
  9. Abazigal macrumors 604

    Abazigal

    Joined:
    Jul 18, 2011
    Location:
    Singapore
    #9
    All these stuff should be added up by the computer automatically. If there is a discrepancy, I believe it is more likely due to you overlooking something, rather than a developer misprogramming something.
     
  10. iMacFarlane macrumors 65816

    iMacFarlane

    Joined:
    Apr 5, 2012
    Location:
    Adrift in a sea of possibilities
    #10
    Two things:

    - Sometimes weird things do happen. I recently deleted all the files off an external drive in order to re-purpose it for Time Machine backups. Finder reported I had over 1 million files to delete. I confirmed, and the progress bar started up and a numerical countdown started to do it's business. When all was said and done, the bar filled, but the countdown had long ago passed through zero, and I had deleted my original 1 million files, and an additional negative 41 thousand files. I understand magnitudes of error in estimates, but that's about 4%, which I think means something got mucked somewhere.

    - You should use the inspector when looking at multiple folders. Let OS X do the math for you. Just right click a folder, when the pop up comes up, hold option key, you'll see 'get info' change to 'inspector'. Go nuts.
     
  11. simsaladimbamba

    Joined:
    Nov 28, 2010
    Location:
    located
    #11
    As some folders are hidden on the root of a system volume, it can amount to 8 GB (sleepimage + swap files for example).

    Here is a little explanation of what directories reside in the root of a system volume.

    In other words, Apple developers programming Mac OS X did their math, especially since it is done automatically.

    To find out, where you storage capacity is being used, you can use the following free applications:
    Maybe try a combination of several, if you still can't find the "missing" capacity.

    What is this "Other" in the storage tab? What is eating up my space? by theSeb
     
  12. Blackberryroid thread starter macrumors 6502a

    Blackberryroid

    Joined:
    Aug 8, 2012
    Location:
    /private/var/vm/
    #12
    I am aware of that, I already deleted the SleepImage file.
     
  13. simsaladimbamba

    Joined:
    Nov 28, 2010
    Location:
    located
    #13
    Deleted AND disabled?
     
  14. Blackberryroid thread starter macrumors 6502a

    Blackberryroid

    Joined:
    Aug 8, 2012
    Location:
    /private/var/vm/
    #14
    Disabled? That's new. How?
     
  15. simsaladimbamba

    Joined:
    Nov 28, 2010
    Location:
    located
    #15
    Deleting only deletes the current sleepimage, it will get recreated again some time.
    As for disabling, first link post #11. Or a www search.
     
  16. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #16
    Through the terminal
    sudo pmset -a hibernatemode 0


    Also to disable local Time Machine backups
    sudo tmutil disablelocal
     
  17. Blackberryroid thread starter macrumors 6502a

    Blackberryroid

    Joined:
    Aug 8, 2012
    Location:
    /private/var/vm/
    #17
    What happens when I run out of battery? And what about the Time Machine, I don't have any time machine selected storage. In fact, I have never touched time machine before.
     
  18. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #18
    Then you don't need to worry about disabling local Time Machine backups ;)

    I'm not sure I understand your question. Changing the hibernate mode is needed if you no longer want to use the sleepimage.
     
  19. Blackberryroid thread starter macrumors 6502a

    Blackberryroid

    Joined:
    Aug 8, 2012
    Location:
    /private/var/vm/
    #19
    Doesn't the computer hibernate when you run out of battery? Did I get that wrong?
     
  20. Tander macrumors 6502a

    Tander

    Joined:
    Oct 21, 2011
    Location:
    Johannesburg, South Africa
    #20
    If you have never touched TM - are you saying you have no backups running?

    TM creates local copies on the drive. I cleared a couple of GB just running the above tmutil command.
     
  21. PBG4 Dude macrumors 68000

    PBG4 Dude

    Joined:
    Jul 6, 2007
    #21
    Correct, but from a full charge, it'll supposedly take 30 days for the battery to run dry if only sleeping.
     
  22. Blackberryroid thread starter macrumors 6502a

    Blackberryroid

    Joined:
    Aug 8, 2012
    Location:
    /private/var/vm/
    #22
    Yes, I don't have backups.
     
  23. PBG4 Dude macrumors 68000

    PBG4 Dude

    Joined:
    Jul 6, 2007
    #23
    That's a bit silly, don't you think? External HDDs are super cheap, and Time Machine makes it automated and painless.
     
  24. maflynn, Aug 14, 2012
    Last edited: Aug 14, 2012

    maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #24
    It won't go into deep sleep if you
    1. Delete the SleepImage file (provided it doesn't spontaneously recreate it),
    2. Disable deep sleep by way of the terminal.

    tbh, I'm not totally sure what will happen as I don't disable deep sleep.

    As for backups, I'd seriously looking at doing them - too many threads where users lose some of their data, i.e., iPhoto library, iTunes library etc and are without a backup
     
  25. Tander macrumors 6502a

    Tander

    Joined:
    Oct 21, 2011
    Location:
    Johannesburg, South Africa
    #25
    As above - it's a big risk not doing backups. I've seen it all too often where users loose data due to poor backup plans. Not a great idea.

    Personally, I wouldn't bother disabling sleep. It's such a useful feature.

    Are you running out of disk space?
     

Share This Page