You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

lion eating my hard drive space

Installed Lion on my MacBook Pro and iMac and the same thing is happening on both. If I Get Info on the hard drive I can literally watch the "used" bytes rise. My hard drive space is disappearing right before my eyes.


Brought MacBook into Apple Store and they told me to reinstall Lion - did that and it didn't fix.


Is anyone else seeing this?


Apple store says it's related to the Autosave stuff but I assume my two machines aren't the only ones this is happening to.


Need some help!

MacBook Pro, Mac OS X (10.5)

Posted on Jul 23, 2011 5:50 PM

Reply
122 replies

Jul 26, 2011 1:47 PM in response to Georg Portenkirchner

I have the same symptoms due to the Mail database creating copies of all attachments (see my post earlier in this thread).

I suggest you check the size of your Mail database in now hidden folder - open menu Go/Go to folder, then type /Users/username/Library and see if your Mail database is not growing. When you open the database structure you should find many folders named Attachments. They are not necessary to keep, as I found Mail is generating them probably only to speed the viewing of attachments or searching through them.


Andrej

Jul 26, 2011 2:02 PM in response to rsjm

Hello,

I am sure you can safely delete them. Check this info:


http://www.redpaw.co.uk/server/2011/04/attachments-folders-in-apple-mail.html


The terminal command to delete all the attachments folders at once is:


find -d ~/Library/Mail/ -type d -name Attachments -print -exec rm -rf {} \;


This is only a short term solution, as all those folders are reapearing again while using the Mail app.

Now I am trying to make an AppleScript script to execute the command every 10 minutes or so:-)


Andrej

Jul 27, 2011 4:22 AM in response to rsjm

rsjm, I am happy this helped you.


Anyway, today my Mail app finaly stopped duplicating old attachments without any further intervention!

Now I think, that the process of generating duplicates was only supposed to happen once after migrating the database to the new version of Mail. Due to the fact, that the original size of my mail database (27GB) is almost 3 times the remaining free space on disk (10GB) I can understand, that I had to delete those folders while they kept growing...

After deleting all the attachments folders now Mails copies only those new attachments from mails, that I have read recently.


I should also point out, that before upgrading to Lion (in Leopard as well as Snow Leopard) I was regulary deleting the Attachments folder from mail database to gain disk space (there was only one folder before). Therefore my mail database was probably not typical - I suppose, that if a user did keep those attachments in mail database before, he woud not see the loss of disk space after Lion installation.


Andrej

Jul 27, 2011 7:01 AM in response to rsjm

Last night I ran Disc Utility and it found some hard link problems and could repair these, but it could not find any other problem. Also did sudo periodic daily weekly monthly. On time my free disc space is less than 1 GB and getting the error message to delete files.


Checking now the size of the Mail folder in my Library folder, but the size is "only" 5 GB, seems to be ok for the huge amount of e-mails I have stored.

Jul 28, 2011 11:15 AM in response to Georg Portenkirchner

I personally haven't been able to confirm if the three suggestions below actually does anything to stop the free space from filling up because I personally don't have this issue with TM turned off, but I guess it is worth a shot:


System Preferences > TimeMachine > Options > Change Lock documents to 1 day


OR


System Preferences > General > Number of recent items > Change Applications, Documents, & Servers to None


OR


Open Terminal and type: sudo tmutil disablelocal

Jul 28, 2011 11:41 AM in response to AMMOCAN

AMMOCAN wrote:


I personally haven't been able to confirm if the three suggestions below actually does anything to stop the free space from filling up because I personally don't have this issue with TM turned off, but I guess it is worth a shot:

Please don't post solutions you aren't sure of.


System Preferences > TimeMachine > Options > Change Lock documents to 1 day

Controls when documents revised with a Versions-enabled app are locked. Has no effect on disk usage.



System Preferences > General > Number of recent items > Change Applications, Documents, & Servers to None

Prevents items from appearing in "Recent Items" menu items. No effect on disk usage.



Open Terminal and type: sudo tmutil disablelocal

If you have a laptop, and Time Machine is ON, that may gain some space. See #30 in Time Machine - Frequently Asked Questions.

lion eating my hard drive space

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.