Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q&A] Mounts2SD - Storage & Memory Management

OP dk_zero-cool

11th November 2011, 07:02 PM   |  #1  
dk_zero-cool's Avatar
OP Recognized Contributor
Flag Horsens
Thanks Meter: 4,428
 
3,277 posts
Join Date:Joined: Nov 2010
More
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.
Last edited by dk_zero-cool; 4th September 2013 at 08:06 PM.
The Following 276 Users Say Thank You to dk_zero-cool For This Useful Post: [ View ]
12th November 2011, 12:34 PM   |  #2  
Senior Member
Flag Venezia
Thanks Meter: 701
 
3,226 posts
Join Date:Joined: Jun 2009
More
About dalvik-cache? It remains in phone memory?
Last edited by denzel09; 12th November 2011 at 12:39 PM.
12th November 2011, 02:43 PM   |  #3  
Senior Member
Flag Cairo
Thanks Meter: 27
 
281 posts
Join Date:Joined: Nov 2011
More
Hi I cant understand How to use it ! any guide ?!
The Following User Says Thank You to Taki2011 For This Useful Post: [ View ]
12th November 2011, 09:52 PM   |  #4  
dk_zero-cool's Avatar
OP Recognized Contributor
Flag Horsens
Thanks Meter: 4,428
 
3,277 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by denzel09

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

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: [ View ]
15th November 2011, 09:19 PM   |  #5  
dk_zero-cool's Avatar
OP Recognized Contributor
Flag Horsens
Thanks Meter: 4,428
 
3,277 posts
Join Date:Joined: Nov 2010
More
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: [ View ]
23rd November 2011, 10:16 PM   |  #6  
Senior Member
Flag Venezia
Thanks Meter: 701
 
3,226 posts
Join Date:Joined: Jun 2009
More
Great script

Sent from my GT-S5570 using Tapatalk
27th November 2011, 05:31 AM   |  #7  
Senior Member
Thanks Meter: 188
 
228 posts
Join Date:Joined: Jan 2011
Donate to Me
More
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.
28th November 2011, 09:48 AM   |  #8  
dk_zero-cool's Avatar
OP Recognized Contributor
Flag Horsens
Thanks Meter: 4,428
 
3,277 posts
Join Date:Joined: Nov 2010
More
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
The Following User Says Thank You to dk_zero-cool For This Useful Post: [ View ]
28th November 2011, 10:56 AM   |  #9  
Member
Thanks Meter: 1
 
59 posts
Join Date:Joined: Apr 2011
thanks for the share.
28th November 2011, 02:22 PM   |  #10  
dk_zero-cool's Avatar
OP Recognized Contributor
Flag Horsens
Thanks Meter: 4,428
 
3,277 posts
Join Date:Joined: Nov 2010
More
#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: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes