• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Store app data on ExternalSD

FuRom

Lurker
Hey guys, I see this has been a topic of discussion for a few people, so I decided to write a guide on this.

This is not an end all solution to your storage needs. Ultimately, this is just a lazy way to pseudo symlink between to vfat partitions.

If you run `adb shell` to access your phone and then do the following, you'll be linking the application data folder to your external SD card (This is assuming you're rooted and have installed busybox's version of rm):

Code:
su
rm -rf /mnt/sdcard/Android
mkdir /mnt/sdcard/Android
mount -o bind /mnt/sdcard/_ExternalSD/Android /mnt/sdcard/Android

You can start downloading data with something like spotify and keep running the `df` command to see if data is being placed on your large SD card that you spent big bucks on.

If you reboot your phone, you will need to redo the process. Right now I'm still in the middle of deciding how I want to automate this. I can't find a script that is called after mounting partitions is complete (at least not one that doesn't get over written on a reboot). So, I might make a service app that runs quietly in the background that does the magic... but that is to be done later when I have time, if I do it at all.

Hope this helps a bit for those wishing they have more on board storage.


External Links
-----------------
Busybox: https://play.google.com/store/apps/details?id=stericson.busybox&feature=nav_result
 
Look in the /etc directory. There are several .sh scripts in there that are run after init has mounted the partitions. One of these was how the jcase rooting method did its thing. There was a command inserted into one of them to run /data/local/tmp/jc.sh on every boot.

I think the /etc/init.qcom.post_boot.sh sounds like a likely candidate for one that runs when booting is complete.
 
Back
Top Bottom