Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,300 Members 52,608 Now Online
XDA Developers Android and Mobile Development Forum

[Q&A] Mounts2SD - Storage & Memory Management

Tip us?
 
dk_zero-cool
Old
(Last edited by dk_zero-cool; 4th September 2013 at 07:06 PM.)
#1  
dk_zero-cool's Avatar
Recognized Contributor - OP
Thanks Meter 4377
Posts: 3,255
Join Date: Nov 2010
Location: Horsens
Default [Q&A] Mounts2SD - Storage & Memory Management

Mounts2SD - Storage & Memory Management

The Opening Post (OP) has been moved to a new DevDB Section

This Thread has been assigned as an Q&A.
You should see a new pane above where you can navigate this project.
Device: Samsung GT-I9300
----------------------------------

The Following 275 Users Say Thank You to dk_zero-cool For This Useful Post: [ Click to Expand ]
 
denzel09
Old
(Last edited by denzel09; 12th November 2011 at 11:39 AM.)
#2  
denzel09's Avatar
Senior Member
Thanks Meter 664
Posts: 3,199
Join Date: Jun 2009
Location: Venezia
About dalvik-cache? It remains in phone memory?
 
Taki2011
Old
#3  
Senior Member
Thanks Meter 27
Posts: 281
Join Date: Nov 2011
Location: Cairo
Hi I cant understand How to use it ! any guide ?!
The Following User Says Thank You to Taki2011 For This Useful Post: [ Click to Expand ]
 
dk_zero-cool
Old
#4  
dk_zero-cool's Avatar
Recognized Contributor - OP
Thanks Meter 4377
Posts: 3,255
Join Date: Nov 2010
Location: Horsens
Quote:
Originally Posted by denzel09 View Post
About dalvik-cache? It remains in phone memory?
dalvik-cache remains, so does all of the app related data. Only the APK's is moved.

Quote:
Originally Posted by Taki2011 View Post
Hi I cant understand How to use it ! any guide ?!
First of all you need a custom rom. If you have a stock rom it will not work since you need a rom that will allow custom scripts during boot.

You will also need to know how to use ADB (An android tool for communicating with your phone. It is used to enter the android shell and also to transfer files to and from the phone, among other things).

And last, you will need at least 2 or 3 partitions on your sdcard (Otherwise it's a waste of time, although the script is build to adapt for these scenarios). One as a regular fat32 sdcard partition, one for the sd-ext and one for the cache. (Use ext2 for the last two. ext3 will eat your card to fast)

Here is the steps (You need to have ADB working on your computer).
  1. Copy/Paste the script content into a file editor and safe the file with the name "99mounts2sd"
  2. Plug your phone to your computer using a usb cable (Select charge only on your phone))
  3. Open a terminal on your computer (In windows use "run" and type "cmd")
  4. Type in shell: "adb shell mount -o remount,rw /system"
  5. Type in shell: "adb push <path to script> /system/etc/init.d/"
  6. Type in shell: "adb shell chmod a+x /system/etc/init.d/99mounts2sd"
  7. Reboot your phone

The first time you boot your phone using the script it will take some time, because the script needs to copy all of your APK's from internal storage to the sd-ext partition.
The Following 14 Users Say Thank You to dk_zero-cool For This Useful Post: [ Click to Expand ]
 
dk_zero-cool
Old
#5  
dk_zero-cool's Avatar
Recognized Contributor - OP
Thanks Meter 4377
Posts: 3,255
Join Date: Nov 2010
Location: Horsens
The script has been rewritten. Better checks and more options has been added.
The Following 7 Users Say Thank You to dk_zero-cool For This Useful Post: [ Click to Expand ]
 
denzel09
Old
#6  
denzel09's Avatar
Senior Member
Thanks Meter 664
Posts: 3,199
Join Date: Jun 2009
Location: Venezia
Great script

Sent from my GT-S5570 using Tapatalk
 
dyehya
Old
#7  
Senior Member
Thanks Meter 188
Posts: 228
Join Date: Jan 2011

 
DONATE TO ME
It didn't work for me, I made the files made sure they were in the right place and rebooted but booted normally. No delay on first boot and still seems to not be using the other two partitions on my sd card. i used cwm4 to partiton my SD card and it is partitioned correctly (3 partitons). I see the script says "log" I don't know where the log is stored or how to view it. Thanks.
Was I helpful in solving your problem please DONATE
Anything at all would be appreciated greatly.

Don't have money to donate? Make my DropBox bigger for free!
 
dk_zero-cool
Old
#8  
dk_zero-cool's Avatar
Recognized Contributor - OP
Thanks Meter 4377
Posts: 3,255
Join Date: Nov 2010
Location: Horsens
To see the log, type in the terminal: "logcat | grep mounts2sd". Download a terminal or use ADB.

Also run the command "df -h" to see what is mounted where.

Sent from my HTC Desire using xda premium
Device: Samsung GT-I9300
----------------------------------

The Following User Says Thank You to dk_zero-cool For This Useful Post: [ Click to Expand ]
 
sineld
Old
#9  
Member
Thanks Meter 1
Posts: 57
Join Date: Apr 2011
thanks for the share.
 
dk_zero-cool
Old
#10  
dk_zero-cool's Avatar
Recognized Contributor - OP
Thanks Meter 4377
Posts: 3,255
Join Date: Nov 2010
Location: Horsens
#7 @dyehya

It seams that logcat has a very limited lifetime. In order to get the log info, you would have to get it during boot.

Instead I have updated the script to do this itself. Update your script and config file content with the new above code.

In the config file set VAR_DEBUG="yes" and reboot your phone. Now enter a terminal and type "cat /var/mounts2sd.log | grep mounts2sd" which will show you all the messages from the script, and possible errors, if any.

The Following 2 Users Say Thank You to dk_zero-cool For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes