iPhone 2.2 Jailbreakers, free up space from previous Jailbreaks!

Attention: This content is 15 years old. Please keep its age in mind while reading as its contents may now be outdated or inaccurate.

I noticed that after my upgrade and reinstalling my apps I was missing a huge chunk of my free space.
I got to investigating and noticed that every folder in /private/var/stash was duplicated!  It appeared as though it still had my old folder from the first upgrade on there… as well as the newly made folders.
Some quick googling turned up this nugget of information:

I believe BigBoss is referring mostly to the extra directories under /private/var/stash. Each time Cydia runs “for the first time”, it moves and symlinks some directories there to ensure that the root partition doesn’t run out of space. If that was over your head, stop reading, and follow his instructions above.

Still with me? Okay, so first off it’s these directories that are showing as “Other” in iTunes. That’s fine, and it’s totally normal for there to be a decent amount of space showing that way.

The problem comes when Cydia runs again on the “Upgraded” device, and goes and creates all these directories over again, resulting in double the space consumed (though I personally didn’t see quite as much as 500mb).

If you are comfortable poking around *nix, the cleanup you asked about is generally straightforward. Just stroll over to /private/var/stash, do an ls -al and delete the older of any duplicate directories (Applications.23981, Applications.sidufh, etc.). If they have the same date, you’ll need to find for the symlink and see which one’s current.

As always, backup first, and if you brick your device, go back and follow BigBoss’ instructions above. 😛

So I deleted the old duplicate folders that didn’t need to be there any more and got back over 800mb of free space!!

I’ve some screen shots so you get what I’m talking about…

Duplicate folders, wtf?

Only 183mb free… That is weird because I had around 900mb free before I upgraded to 2.2

What’s this?!  Notice that each folder has an older dated twin… these are the ones that can be safely removed… the ones with the OLDER dates on them, NOT the newer ones!!!

To get them removed all the way I actually did need to ssh in to the phone, cd to /private/var/stash/
And do a rm -rf foldername.random/ on the folder to remove it entirely.

But once I did, it was all cleaned up

And my missing free space has been returned to me!

Just thought I’d give some of you other guys (and gals?) a heads up.  You might be missing some free space on your iPhone…