The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone Modding > File Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 10-12-2007, 12:42 PM
Green Apple
 
Join Date: Sep 2007
Posts: 70
Thanks: 4
Thanked 10 Times in 8 Posts
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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to scr4p For This Useful Post:
jedinight (10-13-2007)
  #2  
Old 10-13-2007, 03:48 PM
jedinight's Avatar
Moderator / DRP Dev Team
 
Join Date: Jul 2007
Location: c.s. texas
Posts: 962
Thanks: 49
Thanked 112 Times in 89 Posts

nice good job
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 10-13-2007, 04:03 PM
aziatiklover's Avatar
Livin the iPhone Life
 
Join Date: Sep 2007
Device + Firmware: 2g iPhone, 3g iPhone and 3gS iPhone
Operating System: Vista ult, Win 7 ult and Mac Os X
Location: Welcome to Jamrock
Posts: 1,328
Thanks: 35
Thanked 63 Times in 62 Posts

yea good job
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 10-14-2007, 05:18 AM
iPhone? More like MyPhone
 
Join Date: Aug 2007
Device + Firmware: iPhone | 2.0 | Jailbroken
Operating System: x64 2003 ~ XP
Location: Bay Area, CA
Posts: 213
Thanks: 19
Thanked 30 Times in 25 Posts

Sweet..

Do you think when we upgrade again we should reverse this procedure?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 10-14-2007, 05:12 PM
renegaderon's Avatar
iPhone? More like MyPhone
 
Join Date: Jul 2007
Device + Firmware: 8 Gig 3G iPhone
Operating System: OS X WinXP Pro
Location: Mississippi
Posts: 180
Thanks: 8
Thanked 22 Times in 19 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 07:49 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6  
Old 10-14-2007, 09:09 PM
Green Apple
 
Join Date: Sep 2007
Posts: 70
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 09:09 PM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7  
Old 10-17-2007, 10:15 PM
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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8  
Old 10-18-2007, 12:31 AM
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!!!!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #9  
Old 10-18-2007, 08:59 AM
Green Apple
 
Join Date: Sep 2007
Posts: 70
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 08:59 AM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10  
Old 10-18-2007, 10:47 PM
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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #11  
Old 10-19-2007, 07:57 PM
What's Jailbreak?
 
Join Date: Sep 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 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 08:09 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #12  
Old 10-21-2007, 02:13 AM
808mp5's Avatar
iPhone? More like MyPhone
 
Join Date: Sep 2007
Device + Firmware: iPhone 16GB 3GS RedSnow'd On
Operating System: MacOSX 10.6.x-Win7Pro
Posts: 217
Thanks: 15
Thanked 17 Times in 16 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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #13  
Old 10-22-2007, 09:38 AM
iPhone? More like MyPhone
 
Join Date: Aug 2007
Posts: 217
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/windows-specific-modding-discussion/11682-guide-moving-applications-private-var-root-free-up-disk-space.html
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #14  
Old 11-18-2007, 10:37 PM
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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #15  
Old 11-19-2007, 09:20 AM
Green Apple
 
Join Date: Sep 2007
Posts: 70
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 11:23 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone Modding > File Mods

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 03:44 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top