FORUMS
Remove All Ads from XDA

[EXPANDSD] Join your external SD with internal SD!

213 posts
Thanks Meter: 288
 
By ownhere, Senior Member on 7th September 2011, 01:46 AM
Post Reply Email Thread
WARN: For developer only.

attachment is the EXPANDSD script.

Why use it?
So many applications use /sdcard for mass data storage(gameloft, navigation...),
but I9100's internal_sd size is limit to 11G, so we need external_sd's space.
But these applications dosen't know how to use external_sd, old method is hack the apk for external_sd, but this will change apk's signature, and need smali/baksmali to work. My method work in system level, don't need change any apk file.

How to use:
1.make expandsd.ownhere dirctory in external_sd root directory.
2.move internal_sd's directory(for example:/gameloft) to expandsd.ownhere
3.run init_expandsd.sh

Theory´╝Ü
use 'mount --bind' feature, bind external_sd's dir to internal_sd.
Because the sd card using fat32 partition format, the 'ln -s' command does not work, so the "mount --bind" is the only way to dynamically change the directory content.
Attached Files
File Type: txt init_expandsd.sh.txt - [Click for QR Code] (3.6 KB, 1486 views)
The Following 13 Users Say Thank You to ownhere For This Useful Post: [ View ] Gift ownhere Ad-Free
 
 
7th September 2011, 05:12 AM |#2  
Senior Member
Flag Ho Chi Minh city
Thanks Meter: 49
 
More
Hi mate,

Thks for your shares. I have a question. How run init_expandsd.sh?
8th September 2011, 09:57 AM |#3  
Senior Member
Boston
Thanks Meter: 26
 
More
I tried gscript and init.d, but doesn't seem to be working
8th September 2011, 12:01 PM |#4  
LuffyPSP's Avatar
Senior Member
Thanks Meter: 169
 
More
woohoo a great dev has come. glad you got here mate! love your work on Desire section.
9th September 2011, 04:40 AM |#5  
dexterdave's Avatar
Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by harrynghiem

Hi mate,

Thks for your shares. I have a question. How run init_expandsd.sh?

you can try to use terminal emu, just type su then navigate to folder where the script located, then type sh init_expandsd.sh then enter. this might do the trick to execute .sh
The Following User Says Thank You to dexterdave For This Useful Post: [ View ] Gift dexterdave Ad-Free
9th September 2011, 05:24 PM |#6  
Senior Member
Boston
Thanks Meter: 26
 
More
Quote:
Originally Posted by dexterdave

you can try to use terminal emu, just type su then navigate to folder where the script located, then type sh init_expandsd.sh then enter. this might do the trick to execute .sh

Does it work for you?
9th September 2011, 08:31 PM |#7  
Junior Member
Thanks Meter: 2
 
More
Thumbs up
It's a great idea thanks a lot for your work. I was wondering why ln was not working.

But too bad it does not work for me, i get the following error :
[1] Segmentation fault

Do you have any idea why ?

Thanks again
The Following User Says Thank You to TheFirstBen For This Useful Post: [ View ] Gift TheFirstBen Ad-Free
19th September 2011, 01:03 PM |#8  
bartito's Avatar
Recognized Developer
Thanks Meter: 1,574
 
Donate to Me
More
problems when connecting phone to pc
hi,
tried the "mount --bind" in order to try your script.
works fine. the directory contents is shared between the 2 path's,
but i have a problem when i connect the phone to a pc.
when i try to disconnect, the sdcard and external_sd are not
available anymore until i reboot the phone

note: the commands that i have executed are:
Code:
mkdir /mnt/sdcard/external_sd/foo
echo "test" > /mnt/sdcard/external_sd/foo/test
mkdir /mnt/sdcard/foo
mount --bind /mnt/sdcard/external_sd/foo /mnt/sdcard/foo
21st September 2011, 02:40 PM |#9  
Senior Member
Flag Cluj
Thanks Meter: 52
 
More
Can this script be placed in init.d folder for autorun at boot?

Edit: sorry, already answered above: no, it cannot.

Sent from my GT-P1000 using Tapatalk
21st September 2011, 09:44 PM |#10  
Idan73's Avatar
Senior Member
Thanks Meter: 679
 
More
Seems abandoned by @ownhere

Sent from my GT-I9100
25th September 2011, 02:27 PM |#11  
freemini's Avatar
Senior Member
Flag Bay Area
Thanks Meter: 163
 
More
Quote:
Originally Posted by Idan73

Seems abandoned by @ownhere

Sent from my GT-I9100

too bad, it could be very useful..
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes