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

[MOD] MicroSD 2 Internal Memory Swap w/ICS support

OP crossix

1st January 2012, 05:51 PM   |  #1  
OP Senior Member
Houston
Thanks Meter: 230
 
405 posts
Join Date:Joined: Dec 2007
Donate to Me
More
***Warning Dragons Ahead!!***
Do this at your own risk, it will not void your warrantee but it may make your device unresponsive and cause other issues that I haven't discovered yet! Also, DO NOT at any point attempt to use the unmount sdcard found in your storage settings and DO NOT take your micro sdcard out while your tablet is on, doing these things will cause your apps to fc and potentially loose data. This has been tested only for the Iconia A100 and other devices will probably have different mount points.

It's working great for me but your results may vary, I am not responsible for any damage or problems you might encounter by using this mod (very unlikely that you'll have problems though).

What this mod does:
Since this particular tablet only has 5.4gb of internal storage, I thought it would be great to use my external sd (which is much larger) to install app data and everything else on. So this mod will dirty swap your External micro sd card with your internal memory and vice versa. By dirty swap I mean that the original mount points are untouched and I've just re-bound the mount points to different locations in the tablet. Not the ideal way of doing it, but it works and since we can't touch our init its just about our only option.

It will also speed up your sdcard's read and possibly write speeds by increasing the sdcard's cache.

Requirments: (things you'll need before doing this mod)
You'll need to be rooted, have root explorer installed and of course a micro sd card in your tab:

Instructions:

- Download and unzip the attached file and put it in the root of your internal sdcard (/mnt/sdcard)

- Open root explorer and navigate to /mnt/sdcard (if its not already there) tap and hold on the file install_recovery.sh and pick the copy option

- Now navigate to the /etc folder tap the Mount r/w button

- Find the install_recovery.sh file tap and hold it, then select the option rename. Change the name to install_recovery.bak and then tap paste to copy over the new file.

Now look just under the file, you'll see the date and permissions, it should say something like rwxrwxrwx if it does not you'll need to tap and hold the file tap permissions and check all three boxes for read and execute.

Once you've done the above steps reboot and wait about a minute after your tab comes up, goto settings and look at your storage space to see if the internal space size has changed.

To reverse just delete the install_recovery.sh file, rename the backed up one and reboot. If you decide to keep this mod, you'll want to copy the contents of /mnt/external_sd to /mnt/sdcard so you dont loose any of your app data. Also, you'll no longer need GL 2 SD or any other mod to fetch data from your micro sdcard.

Note: if you have problems deleting or writing to /mnt/external_sd after doing this mod, in root explorer goto /mnt press Mount R/W tap and hold on external_sd and choose permissions. Make sure that all boxes for read and write are checked.

You can use this in conjunction with ICS, its been tested and works great (actually improved my bench scores in antutu benchmark). You can merge the system r/w mod with this one to keep your system read /writable (in ICS) just add the system r/w commands to the end of this install-recovery.sh file.
Attached Files
File Type: zip MSD2INT.zip - [Click for QR Code] (351 Bytes, 7658 views)
Last edited by crossix; 3rd March 2012 at 02:42 PM.
The Following 35 Users Say Thank You to crossix For This Useful Post: [ View ]
1st January 2012, 07:38 PM   |  #2  
Ceelos09's Avatar
Senior Member
Thanks Meter: 285
 
1,006 posts
Join Date:Joined: Apr 2011
More
Thank you! This Mod is greatly appreciated. I'll give it a go once my hangover settles down

Sent from my SPH-D700 using xda premium
2nd January 2012, 02:11 AM   |  #3  
Member
Thanks Meter: 4
 
79 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Works like a champ. Awesome.
3rd January 2012, 12:53 AM   |  #4  
Member
Thanks Meter: 3
 
42 posts
Join Date:Joined: Feb 2011
crossix,

...thanks a bunch for this mod, it works great, I've tested a number of apps and scenarios and so far so good.

I reviewed the original install_recovery.sh and noticed that it's there for some sort of firmware / recovery updates. ...so since we replaced the script I'm wondering if it will prevent future firmware upgrades, or more importantly could it prevent an emergency restore / recovery.

Perhaps merging your script with the original would be beneficial?

...any thoughts on this?

Thanks again for your effort on this, FredT
3rd January 2012, 01:27 AM   |  #5  
OP Senior Member
Houston
Thanks Meter: 230
 
405 posts
Join Date:Joined: Dec 2007
Donate to Me
More
I don't forsee any issues, unless you get an ota update, then you'll need to redo this mod.

The system runs /system/etc/install-recovery.sh on boot and would normally check the recovery partition for files changed outside of an ota update (ie viruses or cwm). If a file gets changed this script would run at boot and restore it's origional recovery.

Normally in order to get cwm or any other custom recovery to "stick" you would need to delete this file (or delete it's contents) so that your modded recovery wouldn't be overwritten on the next boot.

An OTA update will overwrite the install-recovery.sh file and you may have to follow the above instructions again (or it may even break my mod). I'm still running the origional stock rom (3.2) and haven't tested this mod on the newer versions.


Sent from my MB860 using XDA App
Last edited by crossix; 3rd January 2012 at 01:34 AM.
The Following 2 Users Say Thank You to crossix For This Useful Post: [ View ]
3rd January 2012, 02:22 AM   |  #6  
Member
Thanks Meter: 3
 
42 posts
Join Date:Joined: Feb 2011
cool thanks.... btw I am on the latest 3.2.1 ota update and this is working great for me so far....

Sent from my A100 using Tapatalk
4th January 2012, 10:59 PM   |  #7  
Senior Member
Flag Brooklyn
Thanks Meter: 50
 
846 posts
Join Date:Joined: Jul 2011
Donate to Me
More
thanks buddy
5th January 2012, 03:34 AM   |  #8  
Member
Thanks Meter: 3
 
42 posts
Join Date:Joined: Feb 2011
what format for the SDCARD
so I got a new large SDCard to use for this setup... I bought it off a buddy and it is formated as EXT4 already. I'm going to reformat it, what is the best format to use with HC ? EXT4 or something else?

Thanks FredT
5th January 2012, 03:52 AM   |  #9  
OP Senior Member
Houston
Thanks Meter: 230
 
405 posts
Join Date:Joined: Dec 2007
Donate to Me
More
Unfortunatly only fat32 will work, I've tried formatting & mounting the sdcard as ext2, 3 and 4, but couldnt get the tab to mount it automatically.
The Following User Says Thank You to crossix For This Useful Post: [ View ]
5th January 2012, 06:04 PM   |  #10  
slayerpsp's Avatar
Member
Flag SO CAL
Thanks Meter: 13
 
88 posts
Join Date:Joined: Jun 2010
More
Thank you a million times can finally put all my gameloft games on the sd card without having to delete others.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes