1. scr4p's Avatar
    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:
    Code:
    # cat /etc/fstab
    /dev/disk0s1 / hfs rw 0 1
    /dev/disk0s2 /private/var hfs rw 0 2
    To move Applications to /var/root login to your iphone using ssh and type the following.

    Code:
    # cp -R /Applications /var/root/ROOT_Applications
    # rm -rf /Applications && ln -s /var/root/ROOT_Applications /Applications
    Reboot and you should be good to go.
    2007-10-12 07:42 PM
  2. jedinight's Avatar
    nice good job
    2007-10-13 10:48 PM
  3. aziatiklover's Avatar
    yea good job
     Think Different
    2007-10-13 11:03 PM
  4. y0haan's Avatar
    Sweet..

    Do you think when we upgrade again we should reverse this procedure?
    2007-10-14 12:18 PM
  5. renegaderon's Avatar
    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; 2007-10-15 at 02:49 AM.
    2007-10-15 12:12 AM
  6. scr4p's Avatar
    Sweet..

    Do you think when we upgrade again we should reverse this procedure?
    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

    Can I just remove the noexec option from /etc/fstab?

    Yes you can just remove that option and reboot your phone.

    -Steve
    Last edited by scr4p; 2007-10-15 at 04:09 AM. Reason: Automerged Doublepost
    2007-10-15 04:09 AM
  7. knickboy87's Avatar
    I edited fstab to get rid of no exec then ran that in terminal...nothing changed, same amount of space is still there
    2007-10-18 05:15 AM
  8. joemulder's Avatar
    ****..
    everything is gone after I reboot ..
    when I turn on the touch, it's all black!!!
    help!!!!
    2007-10-18 07:31 AM
  9. scr4p's Avatar
    I edited fstab to get rid of no exec then ran that in terminal...nothing changed, same amount of space is still there
    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.

    ****..
    everything is gone after I reboot ..
    when I turn on the touch, it's all black!!!
    help!!!!
    Did you make sure that the noexec option was "NOT" present in /etc/fstab?
    Last edited by scr4p; 2007-10-18 at 03:59 PM. Reason: Automerged Doublepost
    2007-10-18 03:59 PM
  10. Kaitlyn_T's Avatar
    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.
    2007-10-19 05:47 AM
  11. alpineflip's Avatar
    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; 2007-10-20 at 03:09 AM.
    2007-10-20 02:57 AM
  12. 808mp5's Avatar
    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.
    2007-10-21 09:13 AM
  13. rianbattle's Avatar
    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=11682
    Peter: "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
    2007-10-22 04:38 PM
  14. shoei's Avatar
    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.
    2007-11-19 05:37 AM
  15. scr4p's Avatar
    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.
    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.

    -Steve
    Last edited by scr4p; 2007-11-19 at 06:23 PM.
    2007-11-19 04:20 PM
  16. pattulus's Avatar
    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 Thread
    Last edited by pattulus; 2008-01-27 at 05:19 PM.
    2008-01-27 04:50 PM
  17. tech87's Avatar
    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
    2008-01-29 05:21 PM
  18. tech87's Avatar
    erased
    Last edited by tech87; 2008-01-29 at 05:23 PM. Reason: double post, erased
    2008-01-29 05:21 PM
  19. Eurisko's Avatar
    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.
    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.
    2008-01-29 05:57 PM
  20. engine_lfc's Avatar
    for 1.1.3 use Bosstool (0.35) it works great an bring me over 100MB free space to my iphone !
    2008-03-07 09:34 AM
21 12
LINK TO POST COPIED TO CLIPBOARD