-
10-12-2007, 11:42 AM #1
Moving your Applications to the Media Partition
This is totally not required and might not even be necessary at all but I got sick of seeing such a low number free as I was installing applications through installer (especially after the update to 1.1.1) so I decided to see if I could free up some space and move the /Applications directory out of the root partition and move it to /var/root instead.
Please don't do this if you aren't comfortable in Terminal and executing commands in ssh on your iphone.
***NOTE*** make sure that the noexec options is *NOT* set in /etc/fstab It should look something like this:
To move Applications to /var/root login to your iphone using ssh and type the following.Code:# cat /etc/fstab /dev/disk0s1 / hfs rw 0 1 /dev/disk0s2 /private/var hfs rw 0 2
Reboot and you should be good to go.Code:# cp -R /Applications /var/root/ROOT_Applications # rm -rf /Applications && ln -s /var/root/ROOT_Applications /Applications
-
The Following User Says Thank You to scr4p For This Useful Post:
jedinight (10-13-2007)
-
10-13-2007, 02:48 PM #2Moderator / DRP Dev Team
- Join Date
- Jul 2007
- Location
- c.s. texas
- Posts
- 969
- Thanks
- 49
- Thanked 113 Times in 89 Posts
nice good job
-
10-13-2007, 03:03 PM #3Livin the iPhone Life
- Join Date
- Sep 2007
- Location
- Welcome to Jamrock
- Posts
- 1,337
- Thanks
- 37
- Thanked 62 Times in 61 Posts
yea good job
Think Different

-
10-14-2007, 04:18 AM #4iPhone? More like MyPhone
- Join Date
- Aug 2007
- Location
- Bay Area, CA
- Posts
- 217
- Thanks
- 20
- Thanked 32 Times in 26 Posts
Sweet..
Do you think when we upgrade again we should reverse this procedure?
-
10-14-2007, 04:12 PM #5iPhone? More like MyPhone
- Join Date
- Jul 2007
- Location
- Mississippi, Gulf Coast
- Posts
- 218
- Thanks
- 10
- Thanked 30 Times in 25 Posts
Can I just remove the noexec option from /etc/fstab?
Cant seem to get this to work WinSCP keeps timing out any suggestions.
Never mind I got it to work.Last edited by renegaderon; 10-14-2007 at 06:49 PM.
-
10-14-2007, 08:09 PM #6
When you upgrade I imagine it might overwrite this change so I'm not sure it will be totally necessary to reverse but it might be necessary to reapply after an update. I won't be totally sure until an upgrade
Yes you can just remove that option and reboot your phone.
-SteveLast edited by scr4p; 10-14-2007 at 08:09 PM. Reason: Automerged Doublepost
-
10-17-2007, 09:15 PM #7
I edited fstab to get rid of no exec then ran that in terminal...nothing changed, same amount of space is still there
-
10-17-2007, 11:31 PM #8
****..
everything is gone after I reboot ..
when I turn on the touch, it's all black!!!
help!!!!
-
10-18-2007, 07:59 AM #9
you should have somewhere in the neighborhood of 48-50MB free. This won't actually free up anymore then that but it will let you install practically everything in Installer without running out of space. I did this originally because I got down to about 6MB free and Installer started telling me that I needed more space and wouldn't install anything else. Now I have four screens full of apps and I haven't used a single byte on the / partition anymore. No matter what I install I always have about 50MB free.
Did you make sure that the noexec option was "NOT" present in /etc/fstab?Last edited by scr4p; 10-18-2007 at 07:59 AM. Reason: Automerged Doublepost
-
10-18-2007, 09:47 PM #10
Hello,
I don't know much about Mac CLI, and I have been trying to move the Apps to Media according the the instructions below:
http://code.google.com/p/iphone-elite/wiki/MoveApps
I have followed exactly what they said, but whenever i rebooted the iPhone, and tried to exec the application by pressing icons, there were nothing happened. Be honest, I had to unlocked my iPhone twice just because of this issue.
Can you please review the code and let me know that was wrong? Also, if possible, please tell me how to change the password for root in SSH.
Please note I used Putty to SSH into my iPhone.
Thank you very much for your answers.
-
10-19-2007, 06:57 PM #11
How do I change it so that the noexec is not set? cause when I type cat /etc/fstab I get
/dev/disk0s1 / hfs rw 0 1
/dev/disk0s2 /private/var hfs rw 0 2,noexec 0 2
*Nevermind* I figured it out I didn't think, just had to download fstab and open in notepad and delete "noexec" duh
Last edited by alpineflip; 10-19-2007 at 07:09 PM.
-
10-21-2007, 01:13 AM #12
Hmm.. all this SSH stuff is confusing... I hope someone should make an App out of this and just make it easy on everyone else that doesn't know what there doing.
-
10-22-2007, 08:38 AM #13
if anyone is still having problems with this, i just posted a guide with screenshots. thanks to scr4p for posting this method, the one on the dev team wiki page wouldn't work for me but this method did.
http://modmyi.com/forums/showthread.php?t=11682Peter: "Brian! There's a message in my alphabits! It says 'OOOOOOOOO'!!!!!"
Brian: "Peter...those are Cheerios."
Guides:
Moving Applications into the Media Partition to get more space for third party apps
-
11-18-2007, 09:37 PM #14
I have more all my applications to the media partitions using the symlink method as mention. Everything seems to went fine untill one day the phone suddenly wont boot. As it wont boot, I could not do the symlink reverse and have to do a restore. After restored, the phone works fine, but when SSH into the phone /Applications. NOTHING WAS THERE ?? Couldnt install anymore applications through SSH and the guide on reversing the symlink WILL NOT WORK IF YOU DID IT AFTER THE RESTORE OR UPGRADE!!
Just want to let all the guys know that moving the applications is RISKY!! if ur phone suddenly crash and u cant do a reverse.
-
11-19-2007, 08:20 AM #15
Are you sure you aren't looking in the Applications directory under /var/root? Also, if the /Applications directory was actually empty your phone wouldn't work at all.
BTW... Just upgraded to 1.1.2 and verified this procedure works. You might need to remove /var/root/ROOT_Applications before performing this to make sure that you are starting fresh.
-SteveLast edited by scr4p; 11-19-2007 at 10:23 AM.
-
01-27-2008, 08:50 AM #16
I JUST UPDATED TO 1.1.3
Now I'd like to now what to do, to get my old status back. Does anybody know what to do?
Status Quo:
- the iPhone Applications are in the /Application Folder
- my beautiful Folder and Alias of it is still located in the following directory:
/private/var/root/ ROOT_APPLICATION
PS: Sorry. I tought I haven't clicked the send button. Anyway, I asked nearly the same question in the [GUIDE] Moving /Applications to /private/var/root to free up disk space ThreadLast edited by pattulus; 01-27-2008 at 09:19 AM.
-
01-29-2008, 09:21 AM #17
This is what I used to move the applications in 1.1.3:
cd /
cp -pr Applications /private/var
mv Applicatsion Applications.old
ln -s private/var/Applications /Applications
make sure it worked, then
cd /
rm -rf Applications.old
-
01-29-2008, 09:21 AM #18
erased
Last edited by tech87; 01-29-2008 at 09:23 AM. Reason: double post, erased
-
01-29-2008, 09:57 AM #19Livin the iPhone Life
- Join Date
- Aug 2007
- Location
- Toronto, Canada
- Posts
- 3,308
- Thanks
- 12
- Thanked 562 Times in 483 Posts
The problem with that code is that you cannot create a symlink, while a folder of the same name already exists. You must copy the Applications folder to root, remove the original Applications folder and THEN symlink.
Use these commands:
# cp -R /Applications /var/root/Applications
# rm -rf /Applications && ln -s /var/root/Applications /Applications
This will remove the folder and create the symlink at the same time.Get "iPod & iTunes for Dummies", it'll change your life.
-
03-07-2008, 01:34 AM #20
for 1.1.3 use Bosstool (0.35) it works great an bring me over 100MB free space to my iphone !



LinkBack URL
About LinkBacks
Reply With Quote

