If you're using an iPhone running software/firmware 1.1.2 or iPod Touch and have installed several third-party applications, you may begin receiving an error message that states "Warning: You are running out of disk space. Please delete some photos or videos," even though there is still significant storage space on the device.
Here's what's actually happening: the iPhone (or iPod Touch) places a low, artificial size limit on its /Applications directory, which is reached after installing a number of third-party apps. In order to get around this problem, you need to store your Applications in the Media directory, where much more space is allocated. To do so, follow this process: Warning: If you don't type these commands exactly, you may put your iPhone in a state where it repeatedly reboots, potentially forcing a restore or interaction via SSH (discussed at the end of these instructions):
- Make sure you have at least 500 MB of free space on your iPhone/iPod Touch (via the indicator on iTunes).
- Through Installer.app, download and install "Term-vt100," and "BSD Subsystem" located in the "System" category (if you don't have enough space to install Term-vt100, delete some applications temporarily).
- Launch Term-vt100 from your SpringBoard (home screen).
- Type the following commands exactly on your iPhone's keyboard, paying particular attention to spacing and capitalization, and press return after each:
- cd /
- cp -pr Applications /var/root
- mv Applications Applications.old
- ln -s private/var/root/Applications /Applications
- Your Applications should now be stored in the Media (/var/root) directory. You can check this by typing the commands:
- cd /
- ls -la
- Among the listed entries, you should see something like the following:
- rwxr-xr-x 1 root admin [...] Applications -> private/var/root/Applications
- This shows that your /Applications directory is symlinked to /private/var/root/Applications
- Now restart your iPhone or iPod Touch. If everything works normally, launch Term-vt100 again and enter the following commands to delete your old Applications folder:
- cd /
- rm -rf Applications.old
- If something goes wrong, and your iPhone/iPod Touch repeatedly reboots or there are no icons on the SpringBoard, do one of the following:
- SSH into your device (if you have OpenSSH installed -- see "Manually installing applications" on our Applications page for more information on how to SSH into your device) and re-enter this command: ln -s private/var/root/Applications /Applications
- Restore your iPhone/iPod Touch using iTunes and try again (third-party applications will be lost).