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.
I did that the first day I got the iphone :)
will that save the applications to \Applications like normal or it will change the directory?
Yeahhh Cool Method it's working 100%.....Genius....Thx....
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 :)
What happens to the partion table when you reset the iPhone?
i think it goes back to normal, depending if you are doing it in DFU or not
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
i did this to couple applications eg moving and then pointing a symlink from /Applications/Installous.app to /private/var/Applications/Installous.app applications are working fine, the problem is that im getting an empty icon (white) in the springboard
any ideas y?