+ Reply
Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Moving your Applications to the Media Partition

is a discussion within the

File Mods

forums, a part of the

iPhone Modding

section;
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
...
  1. #1
    Green Apple
    Join Date
    Sep 2007
    Posts
    71
    Thanks
    4
    Thanked 10 Times in 8 Posts

    Default 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:
    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.

  2. The Following User Says Thank You to scr4p For This Useful Post:

    jedinight (10-13-2007)

  3. #2
    Moderator / DRP Dev Team jedinight's Avatar
    Join Date
    Jul 2007
    Location
    c.s. texas
    Posts
    969
    Thanks
    49
    Thanked 113 Times in 89 Posts

    nice good job

  4. #3
    Livin the iPhone Life aziatiklover's Avatar
    Join Date
    Sep 2007
    Location
    Welcome to Jamrock
    Posts
    1,337
    Thanks
    37
    Thanked 62 Times in 61 Posts

    yea good job
     Think Different

  5. #4
    iPhone? More like MyPhone
    Join Date
    Aug 2007
    Location
    Bay Area, CA
    Posts
    217
    Thanks
    20
    Thanked 33 Times in 26 Posts

    Sweet..

    Do you think when we upgrade again we should reverse this procedure?

  6. #5
    iPhone? More like MyPhone renegaderon's Avatar
    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.

  7. #6
    Green Apple
    Join Date
    Sep 2007
    Posts
    71
    Thanks
    4
    Thanked 10 Times in 8 Posts

    Quote Originally Posted by y0haan View Post
    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

    Quote Originally Posted by renegaderon View Post
    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; 10-14-2007 at 08:09 PM. Reason: Automerged Doublepost

  8. #7
    Green Apple
    Join Date
    Aug 2007
    Posts
    50
    Thanks
    18
    Thanked 2 Times in 2 Posts

    I edited fstab to get rid of no exec then ran that in terminal...nothing changed, same amount of space is still there

  9. #8
    What's Jailbreak?
    Join Date
    Oct 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ****..
    everything is gone after I reboot ..
    when I turn on the touch, it's all black!!!
    help!!!!

  10. #9
    Green Apple
    Join Date
    Sep 2007
    Posts
    71
    Thanks
    4
    Thanked 10 Times in 8 Posts

    Quote Originally Posted by knickboy87 View Post
    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.

    Quote Originally Posted by joemulder View Post
    ****..
    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; 10-18-2007 at 07:59 AM. Reason: Automerged Doublepost

  11. #10
    What's Jailbreak?
    Join Date
    Oct 2007
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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.

  12. #11
    Green Apple
    Join Date
    Sep 2007
    Posts
    81
    Thanks
    1
    Thanked 3 Times in 3 Posts

    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.

  13. #12
    iPhone? More like MyPhone 808mp5's Avatar
    Join Date
    Sep 2007
    Posts
    241
    Thanks
    15
    Thanked 19 Times in 18 Posts

    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.

  14. #13
    iPhone? More like MyPhone
    Join Date
    Aug 2007
    Posts
    203
    Thanks
    11
    Thanked 34 Times in 18 Posts

    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

  15. #14
    What's Jailbreak?
    Join Date
    Sep 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  16. #15
    Green Apple
    Join Date
    Sep 2007
    Posts
    71
    Thanks
    4
    Thanked 10 Times in 8 Posts

    Quote Originally Posted by shoei View Post
    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; 11-19-2007 at 10:23 AM.

  17. #16
    Green Apple
    Join Date
    Dec 2007
    Posts
    51
    Thanks
    13
    Thanked 29 Times in 7 Posts

    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; 01-27-2008 at 09:19 AM.

  18. #17
    What's Jailbreak?
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

  19. #18
    What's Jailbreak?
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    erased
    Last edited by tech87; 01-29-2008 at 09:23 AM. Reason: double post, erased

  20. #19
    Livin the iPhone Life Eurisko's Avatar
    Join Date
    Aug 2007
    Location
    Toronto, Canada
    Posts
    3,308
    Thanks
    12
    Thanked 562 Times in 483 Posts

    Quote Originally Posted by Kaitlyn_T View Post
    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.

  21. #20
    What's Jailbreak?
    Join Date
    Dec 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    for 1.1.3 use Bosstool (0.35) it works great an bring me over 100MB free space to my iphone !

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts