Weird invisible directory is messing up my disk

I day or two ago I tried to use SourceTree to clone the LyX repository. The result was a very long period of downloading which I estimate was 2-3 GB, but only about 160 MB appeared in an invisible file in the target directory. (The command displayed in a SoureTree window had no meaning to me--it was nothing like git clone...) I have no idea where the other downloaded stuff went--I could not find it on my disk even though the total disk usage indicated that several GB more were being used than right before the attempted cloning started. I deleted the target folder and downloaded the repository using command line tools. I'm on OS X 10.7.4, Lion.

So...

Today's regular backup, the first since the SourceTree experience, failed. The reason given by the backup program is due to a file

/.MobileBackups/Computer/2012-06-04-000732/Volume/Users/me/.Trash/git/.git/objects/pack/pack-94fb8ba1ddb93ddc40214903c6163081188f04f0.pack

By sudo su I was able to verify that this file (and one other in the same directory) indeed exists. The problem reported by the backup program is "No space left on device," meaning the target disk for the backup.

I believe that as long as these files and indeed this bizarre directory MobileBackups exists, all my future attempts to back up will fail.

Is this in fact a SourceTree artifact?

How can i get rid of it?

Thanks,

Jerry

1 answer

The .MobileBackups folder isn't anything to do with SourceTree, it's a Time Machine folder. You can find more details about this folder here: https://discussions.apple.com/thread/3701356?start=0&tstart=0 what's probably happened is that whatever you were cloning was big enough to push you over the edge in terms of disk space. From the path, it looks like you deleted what you partially cloned, but it was still sitting in your Trash and Time Machine is taking a snapshot of it. Emptying your Trash might help as a quick fix. Alternatively you can tell Time Machine not to do these mobile backups, like this: http://wiki.summercode.com/how_to_disable_mobile_backups_on_lion

FYI the command issued by SourceTree would in fact have been a 'git clone' (or 'hg clone' for Mercurial), but there were probably a bunch of global options in the command line in between the 'git' and the 'clone' which might have made you think it wasn't.

Thanks, Steve. That's very helpful. I moved to Lion only recently and am still finding new things.

My destination backup volume is not nearly full so if the problem persists I'll take it up with the developer of the backup program.

I just re-checked the git command that SourceTree issued and of course it is a clone command as you said. I see --recursive in it so I suppose that is why I got more than I wanted. (I still don't know where it went, but I believe it is gone.)

BTW SourceTree does look awesome.

Thanks,

Jerry

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

394 views 0 1
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you