Where is my disk space?

ma
matt
Posts: 1180
Joined: Mon Jul 30, 2007 9:35 am

Sun Jun 27, 2010 6:13 am Post

Dear Techie Types,

My MacBook laptop has a ~120GB hard drive.

When I choose 'Get Info' on 'Macintosh HD', it tells me that the capacity of the drive is 111GB, with 95GB used and 16GB available.

When I choose 'Get Info' on each item inside the 'Macintosh HD', I get the following:
Users - 25 GB
Applications - 9.49GB
Library - 7.99GB
System - 4.56GB
Developer 2.44GB

They are the only items inside Macintosh HD, and their total size adds up to about 48GB.

Separately, I ran an application called DaisyDisk which gives you a graphical view of where all the data is on your disk (I find it useful to clean up disk space when I am running low). Daisy Disk reported that the total data on 'Macintosh HD' was around 46GB.

Which leads me to ask - where is my missing 50GB of disk space?
Are there 50GB of hidden files that I don't know about?
Using 'Disk Utility' I tried 'Verify Disk' and it reported no faults, but is my disk stuffed anyway?

Regards,
Matt

ma
matt
Posts: 1180
Joined: Mon Jul 30, 2007 9:35 am

Sun Jun 27, 2010 6:53 am Post

An update:

Following the advice on this website: http://forums.bombich.com/viewtopic.php?t=3852

I have found that my /Volumes folder has two items inside.
One is an alias called 'Macintosh HD' and points to '/'.
The other is called 'Macintosh HD-1' and points to '/Volumes/Macintosh HD-1'.

This 'Macintosh HD-1' folder contains what appears to be an old copy of the entire Hard Drive, and is about 46GB in size - more or less the amount I am missing.

Is it safe to delete this? And if so, what is the best way to do it?
I cannot drag it to trash directly, as it says I do not have sufficient privileges for some of the items.

Matt

User avatar
Jaysen
Posts: 6309
Joined: Mon Dec 17, 2007 4:00 am
Platform: Mac + Windows
Location: East-Be-Jesus-Nowhere SC, USA

Sun Jun 27, 2010 4:05 pm Post

Some type of backup software running?

From the terminal what do you get if you do:
1. mount
2. df -k
Jaysen

I have a wife and 2 kids that I can only attribute to a wiggle, a giggle, and the realization that she was out of my league so I might as well be happy with her as a friend. 26 years marriage later, I can't imagine life without her. -Me 10/7/09

ImageImage

Pr
Prion
Posts: 97
Joined: Fri Aug 25, 2006 3:14 pm

Mon Jun 28, 2010 7:22 am Post

ptram
most likely there are other accounts on your computer which have some stuff in the trash. Log in as the other users and empty their trash and see how much you recover.
The same applies to external drives, each volume has their own trash which under normal circumstances only the user with the correct UserID can access and see but the free space is missing for all users, of course.
Hope this helps
Prion

ma
matt
Posts: 1180
Joined: Mon Jul 30, 2007 9:35 am

Mon Jun 28, 2010 8:14 am Post

Only one user account left. There were other accounts, but they were deleted a while back (actually because I thought I needed to save disk space because it was already getting low). There aren't any visible backups of the old user accounts either - so if something is left over, not sure how to get at it.

Jaysen - I am heading home now to test out your instructions and will post the results.

If there is no easy solution, there is no real problem with me doing a re-install of Leopard, as I have all my files/emails/applications backed up on another computer anyway and can easily copy them across.

Matt

ma
matt
Posts: 1180
Joined: Mon Jul 30, 2007 9:35 am

Mon Jun 28, 2010 9:16 am Post

Jaysen wrote:Some type of backup software running?

From the terminal what do you get if you do:
1. mount
2. df -k


Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/disk0s2 116884912 99138560 17490352 86% /
devfs 104 104 0 100% /dev
fdesc 1 1 0 100% /dev
map -hosts 0 0 0 100% /net
map auto_home 0 0 0 100% /home

User avatar
Jaysen
Posts: 6309
Joined: Mon Dec 17, 2007 4:00 am
Platform: Mac + Windows
Location: East-Be-Jesus-Nowhere SC, USA

Mon Jun 28, 2010 12:50 pm Post

The odd part is that the files are in "/Volumes". This is normally reserved for mounted disks.

You can try the following to see "what breaks". In terminal:

Code: Select all

cd /Volumes
sudo tar czf "Macintosh HD-1.tgz" "Macintosh HD-1"

My guess is that you will get a "disk full error". If you do not get an error you have successfully backed up the data and now want to remove the extra data:

Code: Select all

sudo rm -rf "Macintosh HD-1"


Let me know how it goes.
Jaysen

I have a wife and 2 kids that I can only attribute to a wiggle, a giggle, and the realization that she was out of my league so I might as well be happy with her as a friend. 26 years marriage later, I can't imagine life without her. -Me 10/7/09

ImageImage

ma
matt
Posts: 1180
Joined: Mon Jul 30, 2007 9:35 am

Mon Jun 28, 2010 1:04 pm Post

Hi Jaysen,
I actually ran that exact remove command the other day after I posted the first message, and it came up with a message saying that I did not have permission to delete the files.

Looking in Volumes now, I see that 'Macintosh HD-1' has disappeared after a restart from trying to execute that command.

Unfortunately, the hard drive space is still unavailable and I have no idea where it might be now.

User avatar
AmberV
Posts: 24669
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Mon Jun 28, 2010 1:36 pm Post

This is a long-shot, but execute this command from your home-folder:

Code: Select all

sudo du -x / | sort -rn > sizes.txt


Then just let that run in the background (should take about 5--10 minutes). If you get any error messages while this runs, might be a good idea to save those too. It will generate a report called "sizes.txt" listing nearly every single directory on your computer and sort them by size, showing the size in blocks. Keep in mind the resulting text file will be fairly large (mine was 18mb and nearly 200,000 lines in length): so choose an appropriate application to open it in.

Unlike the other tool you were using for this, `du` will go into areas not generally shown in the Finder. If there is a lurking phantom trash folder or something, this should root it out.

P.S. I don't think whatever was in Volumes was actually taking up the space. That was disconcertingly weird, but nothing should be there except mounted volumes, and mounted volumes don't consume space on the host drive. What is troubling is that the mount appeared to be itself. That shouldn't happen.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

User avatar
Jaysen
Posts: 6309
Joined: Mon Dec 17, 2007 4:00 am
Platform: Mac + Windows
Location: East-Be-Jesus-Nowhere SC, USA

Mon Jun 28, 2010 2:28 pm Post

Ioa,

My thought was that a backup tool had created a loop device and placed it in Volumes. Hence the request for mount. My other thought at this point is some app is not properly unlinking allocated block from files. Think back to the early MYSQL days when the table space shrinking tool never actually returned blocks to the FS. I think that bug lasted all of 2 minutes.

Matt,

If you change Ioa's line to

Code: Select all

sudo du -x / 2>&sizes.err.txt | sort -rn > sizes.txt

errors will be captured in the sizes.err.txt file. That will make it easier to scan them later.
Jaysen

I have a wife and 2 kids that I can only attribute to a wiggle, a giggle, and the realization that she was out of my league so I might as well be happy with her as a friend. 26 years marriage later, I can't imagine life without her. -Me 10/7/09

ImageImage