• On GameFAQs: The top 10 most terrifying PC games
advertisement
December 10, 2007 12:00 AM PST

"Low disk space" error with third-party iPhone apps, fix

by Ben Wilson
  • Font size
  • Print
  • 7 comments

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):

  1. Make sure you have at least 500 MB of free space on your iPhone/iPod Touch (via the indicator on iTunes).
  2. 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).
  3. Launch Term-vt100 from your SpringBoard (home screen).
  4. Type the following commands exactly on your iPhone's keyboard, paying particular attention to spacing and capitalization, and press return after each:
    1. cd /
    2. cp -pr Applications /var/root
    3. mv Applications Applications.old
    4. ln -s private/var/root/Applications /Applications
  5. Your Applications should now be stored in the Media (/var/root) directory. You can check this by typing the commands:
    1. cd /
    2. ls -la
  6. Among the listed entries, you should see something like the following:
  7. rwxr-xr-x 1 root admin [...] Applications -> private/var/root/Applications
  8. This shows that your /Applications directory is symlinked to /private/var/root/Applications
  9. 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:
    1. cd /
    2. rm -rf Applications.old
  10. If something goes wrong, and your iPhone/iPod Touch repeatedly reboots or there are no icons on the SpringBoard, do one of the following:
  11. 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
  12. Restore your iPhone/iPod Touch using iTunes and try again (third-party applications will be lost).

Feedback? info@iphoneatlas.com.

Recent posts from iPhone Atlas
Motorola, RIM leading, with Apple on the rise
Tales2Go: Get on-demand audiobooks for children
iCatchall: 27 apps for free--Monday only
Caps lock--David's iPhone tip of the week
HouseKeeper app reminds you to do forgotten chores
App Genie: 27 apps for 99 cents
Apple extends iTunes Web previews to apps
Possible proof surfaces that iPad supports a camera
Add a Comment (Log in or register) (7 Comments)
  • prev
  • next
by jakecigar December 10, 2007 2:01 PM PST
I followed these directions long ago!

Removing the Applications.old directory is overkill. I wish I'd never removed the original apps. Some of the third party ones, that are easy enough to re-install, yes. But the Apple provided apps in their pristine state are worth keeping on the original partition, as it is rarely used.

Luckily I have backups.
Reply to this comment
by jimtyner December 10, 2007 2:20 PM PST
Instructions worked fine but it seems that my applications now appear in both places - in /Applications as well as /var/root/Applications. Is this simply a function of the symlink? Can I delete the applications that appear in /Applications and leave just the ones in /var/root/Applications? Will further applications that I may install via Installer save themselves in the /var/root location?

Thanks for the great post! I was having this exact problem.

Jim.
Reply to this comment
by joeythefish December 10, 2007 6:55 PM PST
I followed the directions, and it seems to have worked. I dumped a bunch of applications on my iphone to see if it would repeat the same error as before, it didn't. So I removed the apps I didn't want and was going to further follow the instructions and downloaded perl, I got the error. With the other apps, i opened Term-vt100 and typed the command, df -h and it says that I have 300M total, 258M used, and 40M available. After dowloading and installing perl, it said I only had like 9M. Whats up with that? And following the instructions, I viewed the files, but instead of "rwxr-xr-x 1 root admin [?] Applications -> private/var/root/Applications" mine was lrwxr-xr-x 1 root admin [?] Applications -> private/var/root/Applications" Did I do something wrong?
Reply to this comment
by goingape December 10, 2007 7:01 PM PST
WAIT! BEWARE BEWARE BEWARE! Don't get me wrong, these instructions are nearly perfect and very well explained. But beware that once you've installed a ton of third party apps and used your Jailbroken Touch/Iphone for some time, in my experience, the chances of succeeding in moving and symlinking your Applications directory seem to be pretty slim. I tried once from a 1.1.2 Touch with tons of apps installed and ended up with no Springboard and had to restore. I tried a second time (using these instructions) but before I attempted it, having learned from the first go-round, I uninstalled a majority of my applications in advance. Still, I ended up with no Unlock or Springboard or much of anything and had to restore (am still restoring). I am trying a third time now but this time from a fresh 1.1.2 Jailbreak without any apps installed.

PS: Note to the author. I'm not a Unix/Linux guy and know only enough to be dangerous. But when you go to ls -la, the list is going to scroll off the screen for some people and they wont be able to see the line you are having them verify. you might want to alter the instructions to include whatever switch allows the text flow to pause before leaving the screen. ( ie 'pipe more' in DOS :P I don't know the Unix equivalent.)
Reply to this comment
by goingape December 10, 2007 9:12 PM PST
As a follow up comment to "WAIT! BEWARE...", despite my two earlier failures, I successfully completed the simlink of the Applications directory -- using these instructions -- from a fresh Touch 1.1.2 Jailbreak. However, to get some of the commands to work, in addition to the VT100 Terminal .app, I needed the BSD Subsystem from the installer.app as well.
Reply to this comment
by sojimmyuoft February 17, 2008 8:59 AM PST
Hi Guys,
After I follow all the steps, I think I must accidentally remove some of the important link in the Applicaitons Directory. Now, SMS icon, ipod, MAP, Mail, etc. icon are missing on my iphone main screen. However, I do see these applications in the directory. Please help me on this.

Thanks.
Reply to this comment
by sojimmyuoft February 17, 2008 9:03 AM PST
Regarding to the previous comments. Here is what is left in my Applications directory ...

# ls
.DS_Store Applications Media youtube.zip
.svn Library root.zip
# cd Applications
# ls
.svn MobileCal.app NES.app
Applications.old MobileMail.app NativeCn.app
Balls.app MobileMusicPlayer.app PDFViewer.app
Calculator.app MobileNotes.app Preferences.app
Converter.app MobilePhone.app Services.app
DemoApp.app MobileSMS.app Stocks.app
FieldTest.app MobileSafari.app Weather.app
Installer.app MobileSlideShow.app YouTube.app
Maps.app MobileStore.app gpSPhone.app
MobileAddressBook.app MobileTimer.app iWorld.app
Reply to this comment
(7 Comments)
  • prev
  • next

Search iPhone Atlas

advertisement
Click Here

About iPhone Atlas

iPhone Atlas helps you navigate the ins and outs of Apple iPhone ownership with how-tos, troubleshooting information, news, reviews, and more. Got a tip? Want to contact us? E-mail iphoneatlas@cnet.com.

Add this feed to your online news reader

iPhone Atlas topics