My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 23, 2007 by PmgRiPhone
Labels: iPhone, Application, Storage
MoreAppSpace  
Increasing Application Storage Space (1.1.2 & 1.1.1)

Introduction

As all of you might be aware by now, after installing quite a few applications, installer.app starts complaining how you're running out of space.. the fix is simple, all you do is move applications to a bigger disk (/dev/disk0s2) and point a symlink to it..

The Fix

connect to your iPhone via SSH and execute the following command:

# cat /etc/fstab
/dev/disk0s1 / hfs rw 0 1
/dev/disk0s2 /private/var hfs rw 0 2

note the rw in: /dev/disk0s2 /private/var hfs rw 0 2

If your /dev/disk0s2 line looks like the following

# cat /etc/fstab
/dev/disk0s1 / hfs rw 0 1
/dev/disk0s2 /private/var hfs r 0 2

or like the following

# cat /etc/fstab
/dev/disk0s1 / hfs rw 0 1
/dev/disk0s2 /private/var hfs rw,noexec 0 2

then you will have to download /etc/fstab via SCP and change it to look like the following:

/dev/disk0s1 / hfs rw 0 1
/dev/disk0s2 /private/var hfs rw 0 2

once that's settled..

# mkdir /private/var/Applications
# cp -Rp /Applications/* /private/var/Applications 
# mv /Applications /Applications.backup && ln -s /private/var/Applications/ /Applications
# reboot

once your iphone has rebooted, the problem should no longer persist.


Comment by zibree, Nov 22, 2007

I did that the first day I got the iphone :)

Comment by omartayel, Nov 24, 2007

will that save the applications to \Applications like normal or it will change the directory?

Comment by humveefp, Nov 25, 2007

Yeahhh Cool Method it's working 100%.....Genius....Thx....

Comment by zwetan, Dec 01, 2007

if somehow you're already out of space

and obtain an "out of space' message

and/or after a reboot you just got no app displaying

you can try that

# mv /Applications.backup /private/var/Applications.backup

and then do the

# ln -s /private/var/Applications/ /Applications

you can also use

# df

to see the size of your different disks

but beside that oh yeah it's working great :)

Comment by zightx, Dec 17, 2007

What happens to the partion table when you reset the iPhone?

Comment by binshabib, Dec 31, 2007

i think it goes back to normal, depending if you are doing it in DFU or not

Comment by namjam105, Feb 07, 2008

Add Source installer : http://iphonebaidu.com/app/ Test iPhone - iPhone Simulator : http://iphonebaidu.com/test/ All Software for Apple MAC : http://iphonebaidu.com/mac-iphone/ All Software for Apple iPhone : http://iphonebaidu.com/mac-iphone/iphone.html

Install iTransformy (.swf) view for iPhone : http://iphonebaidu.com/beta/ Forum iPhone : http://iphonebaidu.com/forum/

Copyright © 2008 iPhone Baidu! Inc. All rights reserved


Sign in to add a comment
Hosted by Google Code