Previous 1 2 3 Next 34 Replies Latest reply: Jul 1, 2013 8:34 PM by wiz329 Go to original post
  • Pondini Level 8 Level 8 (38,720 points)

    As a friend of mine used to say, "That's un-good." 

     

    @ fditt:  It might be worth the $13 to try WhatSize (direct from the maker, not the AppStore), per the green box in Where did my Disk Space go?

  • fditt Level 1 Level 1 (0 points)

    Thanks Guys.

     

    About Omni. I did not say that I ran Omni as root. I was logged in as admin on Mountain Lion. To avoid Omni user limitation, I went to terminal as admin, ran su - root command and did another check using df -H and du -sh commands. Unless you tell me that run terminal as admin and them su - root is different from login as root and run terminal, so this might be the problem.

    Just ran Omni as root (sudo open /Applications/OmniDiskSweeper.app and password) and the result was the same.

     

     

    If this user thing described above is not the problem, let's forget Omni for a minute.

     

    df -H shows 124GB used

    df -h shows 116Gi (which both are pretty close to what Omni shows on drive list window)

     

    Summing all du -sh I ran on files and folders as root on parent directory /, I get almost 80GB used. (which also is pretty close to what Omni shows on its toolbar for Macintosh HD)

     

    Any chance of Volumes folder contains 40GB? This was the only folder/directory I couldn't run du -sh probably because it has alias for Macintosh HD or it has Mobilebackups.

     

    I would perfectly understand a difference of around 7-10% in these measures (base 2 or base 10, compression and so on), but 40GB from 150GB disk seems too much for me. Definitely I'm missing something, and I would like to know what so I can get at least part of this 40GB back to my SO disk.

     

    @Linc

    Also I reindexed spotlight and the result was that nothing changed. I realized that iTunes has 35GB but 17GB are mobile applications, 6GB podcasts. Most of my music and videos are on external drives.

     

    Commands and screenshots bellow.

     

    Space Missing III.png

     

    HomeServer:/ root# df -H

    Filesystem                                                        Size   Used  Avail Capacity   iused     ifree %iused  Mounted on

    /dev/disk0s2                                                      149G   124G    24G    84%  30455180   5897424   84%   /

    devfs                                                                       194k   194k     0B   100%       654         0  100%   /dev

    map -hosts                                                          0B     0B     0B   100%         0         0  100%   /net

    map auto_home                                             0B     0B     0B   100%         0         0  100%   /home

    /dev/disk0s4                                                      100G    44G    56G    44%  10705793  13748575   44%   /Volumes/Jobs

    localhost:/-8630FbS7avKSdoxHmmsRl   149G   149G     0B   100%         0         0  100%   /Volumes/MobileBackups

    /dev/disk2s2                                                      1000   853G   147G    86% 208140766  35965900   85%   /Volumes/Media

    /dev/disk1s2                                                      1000   104G   895G    11%  25486892 218619774   10%   /Volumes/Docs

     

    HomeServer:/ root# df -h

     

    Filesystem                                                        Size   Used  Avail Capacity   iused     ifree %iused  Mounted on

    /dev/disk0s2                                                     139Gi  116Gi   22Gi    84%  30460660   5891944   84%   /

    devfs                                                                      189Ki  189Ki    0Bi   100%       654         0  100%   /dev

    map -hosts                                                         0Bi    0Bi    0Bi   100%         0         0  100%   /net

    map auto_home                                            0Bi    0Bi    0Bi   100%         0         0  100%   /home

    /dev/disk0s4                                                      93Gi   41Gi   52Gi    44%  10705793  13748575   44%   /Volumes/Jobs

    localhost:/-8630FbS7avKSdoxHmmsRl  139Gi  139Gi    0Bi   100%         0         0  100%   /Volumes/MobileBackups

    /dev/disk2s2                                                     931Gi  794Gi  137Gi    86% 208140766  35965900   85%   /Volumes/Media

    /dev/disk1s2                                                     931Gi   97Gi  834Gi    11%  25486892 218619774   10%   /Volumes/Docs

    HomeServer:/ root# ls -laxo

    total 16917

    drwxr-xr-x@  33 root     1190 Jun 19 14:36 .

    drwxr-xr-x@  33 root     1190 Jun 19 14:36 ..

    -rw-rw-r--    1 root    21508 Jun 17 15:03 .DS_Store

    d--x--x--x    8 root      272 Jun 17 14:45 .DocumentRevisions-V100

    drwxr-xr-x+   3 root      102 May 29 00:48 .MobileBackups

    drwx------    5 root      170 Aug 20  2012 .Spotlight-V100

    d-wx-wx-wt@   2 root       68 Aug 19  2012 .Trashes

    srwxrwxrwx    1 root        0 Jun 19 14:36 .dbfseventsd

    ----------    1 root        0 Jun 20  2012 .file

    drwx------  225 root     7650 Jun 19 14:55 .fseventsd

    -rw-------@   1 root   196608 Jun  2 22:19 .hotfiles.btree

    drwxr-xr-x@   2 root       68 Jun 20  2012 .vol

    drwxrwxr-x+  63 root     2142 Jun 10 14:16 Applications

    drwxr-xr-x+  62 root     2108 Jun 13 11:28 Library

    -rw-r--r--    1 root   225280 Jun 18 18:37 Mobilebackups

    drwxr-xr-x@   2 root       68 Jun 20  2012 Network

    drwxr-xr-x+   4 root      136 Aug 19  2012 System

    drwxr-xr-x    6 root      204 Jun 18 15:33 Users

    drwxrwxrwt@   7 root      238 Jun 19 14:49 Volumes

    drwxr-xr-x@  39 root     1326 Jun  9 00:01 bin

    drwxrwxr-t@   2 root       68 Jun 20  2012 cores

    dr-xr-xr-x    3 root     4409 Jun 17 14:44 dev

    lrwxr-xr-x@   1 root       11 Aug 19  2012 etc -> private/etc

    dr-xr-xr-x    2 root        1 Jun 17 14:45 home

    -rw-r--r--@   1 root  8194272 May 24 07:44 mach_kernel

    dr-xr-xr-x    2 root        1 Jun 17 14:45 net

    drwxr-xr-x@   6 root      204 Aug 19  2012 private

    drwxr-xr-x@  62 root     2108 Jun  9 00:01 sbin

    lrwxr-xr-x@   1 root       11 Aug 19  2012 tmp -> private/tmp

    drwxr-xr-x@  10 root      340 Aug 19  2012 usr

    lrwxr-xr-x@   1 root       11 Aug 19  2012 var -> private/var

     

    HomeServer:/ root# du -sh .DS_Store

    24K     .DS_Store

    HomeServer:/ root# du -sh .DocumentRevisions-V100

    180K     .DocumentRevisions-V100

    HomeServer:/ root# du -sh .Mobilebackups

    13G .Mobilebackups

    HomeServer:/ root# du -sh .Spotlight-V100

    756M     .Spotlight-V100

    HomeServer:/ root# du -sh .Trashes

      0B     .Trashes

    HomeServer:/ root# du -sh .dbfseventsd

      0B     .dbfseventsd

    HomeServer:/ root# du -sh .file

      0B     .file

    HomeServer:/ root# du -sh .fseventsd

    2.1M     .fseventsd

    HomeServer:/ root# du -sh .hotfiles.btree

    192K     .hotfiles.btree

    HomeServer:/ root# du -sh .vol

      0B     .vol

    HomeServer:/ root# du -sh Applications

    2.2G Applications

    HomeServer:/ root# du -sh Library

    1.9G Library

    HomeServer:/ root# du -sh Mobilebackups

    220K     Mobilebackups

    HomeServer:/ root# du -sh Network

      0B     Network

    HomeServer:/ root# du -sh System

    4.2G System

    HomeServer:/ root# du -sh Users

    49G Users

    HomeServer:/ root# du -sh bin

    3.1M     bin

    HomeServer:/ root# du -sh cores

      0B     cores

    HomeServer:/ root# du -sh dev

    4.5K     dev

    HomeServer:/ root# du -sh etc

    4.0K     etc

    HomeServer:/ root# du -sh home

    1.0K     home

    HomeServer:/ root# du -sh mach_kernel

    7.8M     mach_kernel

    HomeServer:/ root# du -sh net

    1.0K     net

    HomeServer:/ root# du -sh private

    5.9G private

    HomeServer:/ root# du -sh sbin

    1.6M     sbin

    HomeServer:/ root# du -sh tmp

    4.0K     tmp

    HomeServer:/ root# du -sh usr

    500M     usr

    HomeServer:/ root# du -sh var

    4.0K     var

    HomeServer:/ root#

  • Pondini Level 8 Level 8 (38,720 points)

    fditt wrote:

     

    Thanks Guys.

     

    About Omni. I did not say that I ran Omni as root. I was logged in as admin on Mountain Lion.

    Ah, that's not enough.  The Admin user still can't see and doesn't have permission to everything.  Usually the other stuff isn't real large, but it can be.

     

     

    Just ran Omni as root (sudo open /Applications/OmniDiskSweeper.app and password) and the result was the same.

    Curious.  I experimented with it a bit, but don't use it.  And Linc said he tried that and it didn't show the correct sizes.  I have no idea why.

     

    Any chance of Volumes folder contains 40GB?

    Yup.  That's where we sometimes find large folders instead of aliases to drives, apparently because OSX lost track of a drive at the wrong time, created a folder, and wrote to it instead. Also if you do a TM restore wrong and tell TM to "recreate enclosing folders" when it really can't, it will put it in Volumes instead.

     

    This was the only folder/directory I couldn't run du -sh probably because it has alias for Macintosh HD or it has Mobilebackups.

    Omdi does show .MobileBackups separately, but without a size.  It's the same 14 GB of Backups in the Storage display (note that the Finder sometimes shows .MobileBackups as the same size as the OSX volume!).

    Those Local Snapshots are not counted as used by the Finder or Get Info, but are counted by Disk Utility.

     

    I would perfectly understand a difference of around 7-10% in these measures (base 2 or base 10, compression and so on), but 40GB from 150GB disk seems too much for me. Definitely I'm missing something, and I would like to know what so I can get at least part of this 40GB back to my SO disk.

    If you can't figure it out any other way, spring for the $13 to get WhatSize from the maker.  Take a look at the sample and explanation in the green box in Where did my Disk Space go?  In "As Admin" mode (really "as root") it does show the size of everything.  It has a number of other features as well, that you may or may not find useful.

  • wiz329 Level 1 Level 1 (0 points)

    Running sudo open -a AppName.app won't give root priveleges to the application. The best way to do this is to use the application LaunchAsRoot. (https://www.macupdate.com/app/mac/38617/launchasroot)

     

    I've never used OmniDiskSweeper -- I use DiskWave, but they look pretty much the same. Opening the process with sudo here:

     

    Screen Shot 2013-07-01 at 1.09.55 PM.png

     

    However, when you use LaunchAsRoot to launch Diskwave:

     

    Screen Shot 2013-07-01 at 1.16.41 PM.png

     

    As you can see in Activity Monitor, root has taken control of the process, allowing it more access to measure filesize. Today the difference isn't so large, but last night, there was about 20GB in .MobileBackups that wouldn't show up before. They seem to have cleaned themselves up today.

     

    The other thing you could do is log in as the root user (not just using sudo, but actually logging in), telling the system to show hidden files, then taking a look in finder at everything. I'm guessing that since finder would then be owned by root, it would show everything on the system.

  • wiz329 Level 1 Level 1 (0 points)

    Update: You can also run the app as root from the terminal, using a slightly modified code:

    In this case you would use:

     

    sudo -b /Applications/DiskWave.app/Contents/MacOS/DiskWave

    exit

     

    You just have to navigate within the app package itself. I've just created a script, saved it, and retitled it as DiskWaveRoot.command, changed the icon, and placed it in the applications folder.

Previous 1 2 3 Next