[Q] Specific App not moving to SD card - Android Q&A, Help & Troubleshooting

Hello all. I am new to the forums and to Android, so bear with me.
I have been searching around for the past few days for a way to solve the issue that I am having and have not been able to find anything that works for me. So here it is:
I have an LG Optimus L5 II (LG-E450B) running stock Android 4.1.2 (non-rooted) Kernel Version 3.4.0. My carrier is Virgin Mobile (Canada). I recently realized that the stock 2GB of internal memory is not nearly enough for me, so I went out and bought a 16GB Sandisk microSD card. I put music on it, set photos to autosave on it, etc. which all worked great. However, I have been unable to get some apps to move over correctly.
I realize that some apps can't really get moved (at least without rooting, etc). The app I am specifically trying to work with is iBird pro. It's App Info appears as such:
Total: 641 MB
App: 12.68 MB
USB storage app: 628 MB
Data: 4.00 KB
SD Card: 0.00B
The "Move to SD Card" option is available, but when I do it all that it does is drop the App to 3.51MB and up the USB storage app to 637MB. All of which stays on the internal memory. Obviously it is only moving 9MB or so of App to the virtual SD internal memory (which I believe is what shows up in my files manager as /storage/sdcard0, so it doesn't actually move it to the SD card (though a few other apps have sucessfully been moved).
I have tried using App2SD, but it says that the program is not supported by my device (and the iBird Pro shows up as "Phone Only" anyway).
I have tried the ADB hack trick set-install-location 2 and reinstalled the app and still nothing, it just saved on the internal memory.
Finally, when I open the app, it also downloads another ~600MB of database data (bird songs, pictures, etc), which also saves on the internal memory. Or at least tries to but the memory gets full and it stops the download.
Anyone have any ideas for me? I know a lot of people ask this question, but none of the other solutions I came across seemed to help me. I would really appreciate it! I would prefer not to root my phone, by the way. Unless of course someone can make me an incredibly convincing argument.
Cheers!

This is how android's built-in app2sd works.
I don't think you can do anything w/o root.
I suggest rooting, make a second partition to your SD card (2-4 GB) and use link2sd.
Sent from my GT-I5500 [CM7.2]

There are oh so many reasons to root your phone and few not but that choice is yours
Sounds like only some of the data/libraries are able to me to SD on this app of yours so if you don't want to root it than you'll have to leave it on internal.
And FYI, many apps don't play well or are slowed considerably on SD, so be careful what you move and if you don't Yardley use an app its best to just not even download it, but again choice is yours
Sent from my Nexus 4 using Tapatalk 2

if you can't do root so sit back and relax.

Ok, so I decided to root. Which was actually freakishly easy. So how do I move stuff now? I have tried a number of apps, all of which only bring up "App Options" and we have determined that the "Move to SD" option there doesn't work correctly. I just want to figure out how to get the app and all of the data that it will download later to install on the SD, I never thought it would be quite this complicated.

Benjiboy180 said:
Ok, so I decided to root. Which was actually freakishly easy. So how do I move stuff now? I have tried a number of apps, all of which only bring up "App Options" and we have determined that the "Move to SD" option there doesn't work correctly. I just want to figure out how to get the app and all of the data that it will download later to install on the SD, I never thought it would be quite this complicated.
Click to expand...
Click to collapse
Use Link2SD.
Make a second partition (2-4 GB) and move (link) that app to the second partition.
Sent from my GT-I5500 [CM7.2]

Tried Link2Sd? I would rather use that.
Sent from my A89 using xda app-developers app

Ok, so I partitioned my 16GB card into two FAT32 partitions (10 GB and 4 GB) and a Swap Partition of ~850MB (roughly following this guide: http://forum.xda-developers.com/showthread.php?t=2126363). However, when I opened Link2SD and tried to select FAT32/FAT16 as the file system of the SD card's second partition it came up with the Mount Script Error "Mount script cannot be created. mount: I/O error". I had tried formatting with Ext4 and Ext2 file systems as well earlier, but when I selected either it said ext2 or ext4 (whichever I was trying to use) was not supported by my device (which I am assuming means my kernel does not support either).
Edit: Ok, so I changed it. I deleted the Swap partition (couldn't get the swap stuff to work anyway, it's not required right?). There is now 1 10GB partition and 1 5GB partition. Link2SD created the mount link just fine this time. Testing it out. "Install Location" gives a Warning "App2SD is not supported by your device. Because your device has a primary external storage which is emulated from the internal storage. You can link the app in order to move its files to your SD card." Does this mean that I can't automatically link files to the SD card?

Benjiboy180 said:
Ok, so I partitioned my 16GB card into two FAT32 partitions (10 GB and 4 GB) and a Swap Partition of ~850MB (roughly following this guide: http://forum.xda-developers.com/showthread.php?t=2126363). However, when I opened Link2SD and tried to select FAT32/FAT16 as the file system of the SD card's second partition it came up with the Mount Script Error "Mount script cannot be created. mount: I/O error". I had tried formatting with Ext4 and Ext2 file systems as well earlier, but when I selected either it said ext2 or ext4 (whichever I was trying to use) was not supported by my device (which I am assuming means my kernel does not support either).
Edit: Ok, so I changed it. I deleted the Swap partition (couldn't get the swap stuff to work anyway, it's not required right?). There is now 1 10GB partition and 1 5GB partition. Link2SD created the mount link just fine this time. Testing it out. "Install Location" gives a Warning "App2SD is not supported by your device. Because your device has a primary external storage which is emulated from the internal storage. You can link the app in order to move its files to your SD card." Does this mean that I can't automatically link files to the SD card?
Click to expand...
Click to collapse
Swap IS NOT needed.
Second partition should be ext 2/3/4.
Test to see if auto-link works.
Sent from my GT-I5500 [CM7.2]

Vagelis1608 said:
Swap IS NOT needed.
Second partition should be ext 2/3/4.
Test to see if auto-link works.
Sent from my GT-I5500 [CM7.2]
Click to expand...
Click to collapse
Good to know swap isn't needed. However, Link2SD did keep saying that Ext2 or Ext4 wasn't supported. I can try it again though.

Benjiboy180 said:
Good to know swap isn't needed. However, Link2SD did keep saying that Ext2 or Ext4 wasn't supported. I can try it again though.
Click to expand...
Click to collapse
Use Ext3. If it doesn't work use FAT. It can get buggy (not very often).
Also I think that if you can link apps 1 by 1, then you can (probably) use auto-link as well.
Sent from my GT-I5500 [CM7.2]

Vagelis1608 said:
Use Ext3. If it doesn't work use FAT. It can get buggy (not very often).
Also I think that if you can link apps 1 by 1, then you can (probably) use auto-link as well.
Sent from my GT-I5500 [CM7.2]
Click to expand...
Click to collapse
Ok, so Ext3 didn't work. So I stuck with the second partition being FAT32 as well. The mount worked fine.
When I try to create the link I get the following error: "Failure. create_link.com.whatbird.pro[1]: can't create /data/sdext2/data/com. whatbird.pro/lib/libfileutils.so: I/O error"
I was able to move the bulk of the apps Obb files to the SD using FolderMount. However, I am unsure how to move the 650MB Misc. data files to the SD.

Benjiboy180 said:
Ok, so Ext3 didn't work. So I stuck with the second partition being FAT32 as well. The mount worked fine.
When I try to create the link I get the following error: "Failure. create_link.com.whatbird.pro[1]: can't create /data/sdext2/data/com. whatbird.pro/lib/libfileutils.so: I/O error"
I was able to move the bulk of the apps Obb files to the SD using FolderMount. However, I am unsure how to move the 650MB Misc. data files to the SD.
Click to expand...
Click to collapse
Flash CWM recovery, in 'mounts and storage' press 'format SD-Ext'. This fixes the I/O error (I think).
If the misc files are libs then ALL of them can be moved/linked.
Sent from my GT-I5500 [CM7.2]

Vagelis1608 said:
Flash CWM recovery, in 'mounts and storage' press 'format SD-Ext'. This fixes the I/O error (I think).
If the misc files are libs then ALL of them can be moved/linked.
Sent from my GT-I5500 [CM7.2]
Click to expand...
Click to collapse
ROM Manager does not list the LG- E450B as a device supported by CWM Recovery so it won't to an install of CWM Recovery,

Benjiboy180 said:
ROM Manager does not list the LG- E450B as a device supported by CWM Recovery so it won't to an install of CWM Recovery,
Click to expand...
Click to collapse
Look for a custom build here on XDA.
Sent from my GT-I5500 [CM7.2]

Related

low space with a2sd?

Hi,
I'm getting low on space message on my hero running VillainRom 6.1. Tried rebooting, still there. I've only tried to install one or 2 apps with the message there, so not sure if thats actually been affected.
settings-->sdcard & phone storage-->internal storage shows 14.83mb
quick system info shows:
sd card storage free 2.14gb
a2sd storage 249mb free (total 457mb)
system cache 129mb free
memory 37.35mb free
there doesn't seem to be any more processes running than usual - only around 3-4.
I do have quite a lot of apps, over 100, probably closer to 200, I havent counted.
btw thanks to everyone on this site, I'm new to flashing roms but having fun learning, and my phones definitely got a new lease of life.
use the apps2sd checker to make sure its working. If it is id say increase your partition from 512 to more
Just because the app is installed on the sd card (assuming its working properly) doesn't mean the davilk cache for the app has moved. unless you move this as well (which isn't really recommended) each time you install an app system memory will still go down a little.
Lennyuk said:
Just because the app is installed on the sd card (assuming its working properly) doesn't mean the davilk cache for the app has moved. unless you move this as well (which isn't really recommended) each time you install an app system memory will still go down a little.
Click to expand...
Click to collapse
http://4943922026776299669-a-180274...lcSrZUn2-7KkHiRo-ew0R2SEebAQ==&attredirects=0
u need this which is an update. copy this file into the root of the memory card and through the recovery image install it from "zip file from sdcard"
after that restart the phone and check your memory is should be 120mb
Indy_Hero said:
use the apps2sd checker to make sure its working. If it is id say increase your partition from 512 to more
Click to expand...
Click to collapse
thanks for the suggestion
a2sd check script says its working fine, also checked via adb shell.
This is what I then did to the partition size:
I copied SD card contents (both partitions) into ubuntu.
then I put SD back into phone and repartitioned using 1gb for ext2
then I copied back SD card contents from ubuntu.
I assumed this would work, but when I booted I was getting FC all the time. Bart backup sorted it out but I am still left wondering why this method of increasing partition size didnt work??
In any case quick system info shows a2sd has more space, but still got low space message.
qasi said:
...
u need this which is an update. copy this file into the root of the memory card and through the recovery image install it from "zip file from sdcard"
after that restart the phone and check your memory is should be 120mb
Click to expand...
Click to collapse
seems to have solved the problem!! thanks alot mate.
would you by any chance out of interest know why copying ext2 contents from sdcard as outlined above didnt work? - may have some future relevance if changing/upgrading roms.
Thanks again
neuro_99 said:
thanks for the suggestion
a2sd check script says its working fine, also checked via adb shell.
This is what I then did to the partition size:
I copied SD card contents (both partitions) into ubuntu.
then I put SD back into phone and repartitioned using 1gb for ext2
then I copied back SD card contents from ubuntu.
I assumed this would work, but when I booted I was getting FC all the time. Bart backup sorted it out but I am still left wondering why this method of increasing partition size didnt work??
In any case quick system info shows a2sd has more space, but still got low space message.
seems to have solved the problem!! thanks alot mate.
would you by any chance out of interest know why copying ext2 contents from sdcard as outlined above didnt work? - may have some future relevance if changing/upgrading roms.
Thanks again
Click to expand...
Click to collapse
this is because the ramon recovery image had been linked with ext2 with a 512mb partition and u selected 1gb. im not quite sure about that.
chnagin rom is quite simple beucase you have to is
1.backup using nandroid
2.make sure you wipe everything. (also battery and rotating settings)
3. Re partition your sdcard to hold 1 ext2 partition and last partition should be the rest in fat32
4. Flash the rom you want through "zip file from sd card"
5. Reboot.
im a newb so i dont have much knowledge but patching up problems that i had, so that i can help others.
it can be pain especailly rooting!!!
So thats how you would flash a rom, but what if you wanted to keep your a2sd apps? So you dont have to install them all over again in the new rom when you wiped everything.
I think I read somewhere that it should be possible to leave the contents of ext2 as it is, and that should carry forward to the next rom, but I havent been able to test it myself yet.

Link2SD in Gingerbread

Has anyone got this working? I used to have Link2SD in 2.1 but now the ext partition is the only partition recognized by GB and not my main partition. I can access my main partition from USB connect, but not from within the phone. Anyone has the same issue?
You can natively move apps to the SD on GB in Options>Applications>Manage applications. Choose an app that supports it and the option to move to sd will be there. No partition needed.
Thx, i will just fix up my SD card into a single partition again then
Does this also mean that I don't need the app Apps2SD anymore?
With App2SD you can quickly indicate which apps can be moved to SD. So I still have it there. Furthermore, App2SD also quickly clean your cache.
Link2SD gave the option of moving ANY app to the ext2 partition. The native gingerbread app2sd doesn't support moving all apps to the SD card.
Any way of making link2sd work on GB 2.3.3?
can anyone confirm what's the current sdcard partition layout. also which partition is detected in phone.
i think i have an idea which might help up getting this to work.
anantshri said:
can anyone confirm what's the current sdcard partition layout. also which partition is detected in phone.
i think i have an idea which might help up getting this to work.
Click to expand...
Click to collapse
@Anant: My SD is setup as per the guidelines described here:
http://forum.xda-developers.com/showpost.php?p=10711328&postcount=1
I have a 8GB card and I have allocated 7.05 GB of FAT32 memory to the Data partition, and have allocated 0.5GB to the secondary partition. This partition was also setup as FAT32 since i had issues with EXT2.
*Edit: After the 2.3.3 update, the X10 now detects only the 2nd partition (480MB) instead of the data partition (7GB) - but when I plug into a PC, the data partition gets mounted correctly.
Hope that helped.
That is not good, it means that you cannot transfer data or programs between your PC and the 7GB partition... is there a way to fix this?
When you plug into pc, your data-partition mounts correctly, so you can copy your data to your pc as a backup.
I recommend using a adapter to connect the sd-card to your pc, formatting both partitions, and then put it back. I did it that way, be it that I removed my second partition and went back to one partition only, 8 Gb, and all works fine now.
I don't intend to use Link2SD anymore, because in 2.3.3 the system can apply data2sd itself, I learned, with or without Apps2SD.
Good luck, greetz,
kwarkje
From my observation, the 2.3.3 android system moves the appdata to the sdcard only in certain large apps (apps >7mb in size?) which is good if you have are dealing with huge apks like AngryBirds, but not too handy if you have a huge number of small apps all ~3MB in size.
BTW the native app2sd isn't compatible with all apps.
Use "Move2SD Enabler" from Market to allow moving any app to SD.
https://market.android.com/details?id=com.leinardi.setinstalllocation&hl=en
This didnt work with my 32GB SD card... it is now a single 32GB FAT32 partition. What type of format should I use? FAT? EXT2?
kwarkje said:
When you plug into pc, your data-partition mounts correctly, so you can copy your data to your pc as a backup.
I recommend using a adapter to connect the sd-card to your pc, formatting both partitions, and then put it back. I did it that way, be it that I removed my second partition and went back to one partition only, 8 Gb, and all works fine now.
I don't intend to use Link2SD anymore, because in 2.3.3 the system can apply data2sd itself, I learned, with or without Apps2SD.
Good luck, greetz,
kwarkje
Click to expand...
Click to collapse
@doomed151:
Thats what I was looking for! Good find!
This app has its own hitch though: the move2sd enabler needs lots of caution...some apps aren't supported, and moving them to the SD causes them to crash. There is no way of knowing which apps can be moved and which ones can't. I happened to move GT Racing HD to the SD and it stopped working. Had to reinstall!
anantshri said:
can anyone confirm what's the current sdcard partition layout. also which partition is detected in phone.
i think i have an idea which might help up getting this to work.
Click to expand...
Click to collapse
@Anatshri Any luck on this? I would prefer to use link2sd instead of the native move2sd in GB.
I tried a 16gb & a 4gb sd card but couldn't get it to work. I've also tried ext2, ext3 & ext4 as the 2nd partition but I don't think the stock kernel supports any of them. The sd becomes unreadable after a reboot but if I connect directly to the pc I can see both partitions.
If I make both fat32 partitions only the 2nd partition gets mounted. Do you think this is kernel related as well or can we modify the mounting scripts to correct this?
I am suffering from bad health conditions right now so can't work much however all I can see right now is if this is the case you can do two things
1) create a script that mounts partition 1 at /data/sd-ext coz link2 sd needs mounted partition at this location. I suppose init.d script could help us. However
2) the problem would be that recovery will detect only partiton one
Sent from my X10i using XDA App
anantshri said:
I am suffering from bad health conditions right now so can't work much however all I can see right now is if this is the case you can do two things
1) create a script that mounts partition 1 at /data/sd-ext coz link2 sd needs mounted partition at this location. I suppose init.d script could help us. However
2) the problem would be that recovery will detect only partiton one
Sent from my X10i using XDA App
Click to expand...
Click to collapse
I'm sorry to hear about your health, hopefully it's nothing serious and you get well soon. Thanks for the suggestion, I'll give this a try when I get a chance.
Any solution on this?
I move from 2.2 to 2.3.4 and link2sd don't work anymore cannot mount the 2nd fat32 partition.
App2SD sucks because doesnt allow some apps to get moved.
Thanks
Lockon Stratos said:
I'm sorry to hear about your health, hopefully it's nothing serious and you get well soon. Thanks for the suggestion, I'll give this a try when I get a chance.
Click to expand...
Click to collapse
Thanks for the wishes.
I have extended weekend this time will try to give my old card a twist and see if i can get link2sd work again on my handset.
bbsrailfan said:
Link2SD gave the option of moving ANY app to the ext2 partition. The native gingerbread app2sd doesn't support moving all apps to the SD card.
Any way of making link2sd work on GB 2.3.3?
Click to expand...
Click to collapse
I agree with you and hope that we will have this possibility, I really miss link2sd, the best app ever to move apps to sd.

[Q]SD-EXT - General description of use

Hi,
I looked on forum for some summary what is general use of SD-ext partition.
So far I found some explanations and some solutions for CM ROMs.
So, if I uderstand correctly, I can use sd-ext
- either as seamless extension of internal partitions (/data, /system, /cache), for more storage
- and/or for installing apps on SD card, that work when SD card is connected to PC ass mass storage
Is it right?
I am on AOKP ROM, I tried to use it for moving apps with Link2SD and Android Assistent, but they tried to move apps to sdcard.
So, what is correct use of sd-ext and how to make it with AOKP? Mainly I want to extend internal storage (384MB)
I think you need to have a ext3 partition in the SD...
try this method...
MrTapa said:
Ok so I am gonna make an easy guide. But befor i start i will say the requirements
Requirements
1.Rooted
2.Busybox installed(v19.4 reccomended)
4.Card reader
So here we are.
1.Download MiniTool Partition
2.Remove the sd-card from phone and put it in a card reader and plug in pc.
4.Select only important files like Pictures, Music , Titanium and clockworkmod backups and all that important stuff for you
5.Copy them to a folder in computer.
6.Install MiniToolPartition and open it.
7.You will see your hard drives and your sd card.
8. Right click on sd card and click delete. Then again right click and Create.
9.Select "File System:" FAT when you have 2GB or smaller card.
Select "File System:" FAT32 when you have 4GB or greater card.
10.Dont select the whole volume. Select for example if you have 4GB card select 3GB if you want your sd-ext to be 1GB
11.When you are done.Again right click on the sd card and create ext2 or ext3 partition.Then select the full volume allwoed.
12.Make sure that this volume is enough for all apps on your phone.
13.Whn you are done click on the apply button on the top left corner. Wait for it to finish. When you are done. Copy teh prevously backed up data to the card.
14.Put it on the phone and on the market download Link2SD
15.Run the app and it will ask for root.Then select your tipe of partition. tehn reboot.
16.After reboot go to the app and you can mult iselect your apps with the options menu. Then in actions.Click Create link. Then ok.
17.You are done. Now you have a cleaner sd and initial storage
FAQ:
Q:What is sd-ext partition.
A: Its a tipe of partiton than linux supports so Android can use it as an initial memory.
Q:Why i dont see more space when i go to Apps in phones settings
A:The phone cant display sd-ext partiton. you can view it via Link2SD.(Otions>Storage info)
Alternetive version of discribing:http://forum.xda-developers.com/showthread.php?t=1338708
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1750888
thanks!
I used MiniTool Partition Wizard but Neo couldn't find it.
Luckily I found this http://www.butonic.de/2012/03/14/partitioning-the-sd-card-for-app2ext-with-adb-shell/ and was able to fdisk my sdcard from putty connected to sshdroid. Now SD is correctly formatted and Link2SD created mount script.
I can't tell if it works or no. From what I expect, there should be more MB when I look at Settings -> Storage, because Link2SD extends my internal storage... but there is still the same ~420MB.
Can it be that Link2SD silently moves new apps to /sd-ext, but internal storage is still the same?
DarshanaXN said:
I think you need to have a ext3 partition in the SD...
try this method...
http://forum.xda-developers.com/showthread.php?t=1750888
Click to expand...
Click to collapse
PetrGasparik said:
thanks!
I can't tell if it works or no. From what I expect, there should be more MB when I look at Settings -> Storage, because Link2SD extends my internal storage... but there is still the same ~420MB.
Can it be that Link2SD silently moves new apps to /sd-ext, but internal storage is still the same?
Click to expand...
Click to collapse
I think you missed this line in my post.
Q:Why i dont see more space when i go to Apps
in phones settings
A:The phone cant display sd-ext partiton. you
can view it via Link2SD.(Otions>Storage info)
although phone settings doesn't display about sd-ext you may see that amount of free storage increases as you create links with link2sd. I've attached two screenshots showing one before linking asphalt and anti terror shooter to sd-ext and after linking.
I had the same problem with minitool. then I used CWM to partition the sd.
u need to format ur SD to ext2 and you need link2sd app
indycar said:
u need to format ur SD to ext2 and you need link2sd app
Click to expand...
Click to collapse
It depends on the kernel which file format it supports.
The FAQs from link2sd says that fat 32 is supported by every Android / kernel for SD ext partition.
This is my still unused SD ext fat 32 partition.
So if you are not sure fat 32 should always do the work. By the way mini partition tool works great.
Send from my Neo V with JJHybrid 3.3b and Night Elf 1.4 using Tapatalk 2
use ext 2
ext3 and 4 didnt work on my neo
Hi,
I used Link2SD for some time. I had some troubles with ROM - random reboots, YT not working etc
I stopped using Link2SD, because I tried to eliminate everything "unnatural".
At the end, I changed ROM from AOKP to Paranoid and it solved all these troubles (there are some new ones )
Now, then I installed Link2SD and try to create mount script, Link2SD fails with "Mounting script cannot be created"
what do you suggest? reformat card partition? I would like to re-link apps that are there.
DarshanaXN said:
I think you missed this line in my post.
Q:Why i dont see more space when i go to Apps
in phones settings
A:The phone cant display sd-ext partiton. you
can view it via Link2SD.(Otions>Storage info)
although phone settings doesn't display about sd-ext you may see that amount of free storage increases as you create links with link2sd. I've attached two screenshots showing one before linking asphalt and anti terror shooter to sd-ext and after linking.
I had the same problem with minitool. then I used CWM to partition the sd.
Click to expand...
Click to collapse
Yeah, you're right. It is still a little of mystery for me, but hey, I learn to use it
Anyway, Minitool IS great, but when I formatted a card with it, phone couldn't read it. So I had to use ssh to phone.

obb "Game Data" to external_sd and Link2Sd Info [Updated 3/24]

UPDATE:
I now recommend using FolderMount instead of the scripts below.
Forum Link: http://forum.xda-developers.com/showthread.php?t=2192122
Market Link: https://play.google.com/store/apps/...251bGwsMSwxLDEsImNvbS5kZXZhc3F1ZS5mbW91bnQiXQ..
Click to expand...
Click to collapse
PART 1: obb "Game Data" to external_sd
Simple script that binds the internal obb folder to an external Gamedata folder on your sd to save space on Internal SD Card.
Use at your own risk.
1. Create a folder on the external_sd called "Gamedata"
2. Move all folders located in sdcard/android/obb to the newly created folder "Gamedata" (This takes a long time using Root Explorer, be patient. I recommend using Solid Explorer so that you can see the progress.)
3. Download the txt file and rename the extension to .sh OR Create a new script using:
Stock ICS:
Code:
mount -o bind /mnt/sdcard/external_sd/Gamedata /mnt/sdcard/Android/obb/
SnowJB (may or may not work on other JB ROMS) - Credit:
Code:
mount -o bind /storage/external_SD/Gamedata /storage/sdcard0/Android/obb/
4. Download Smanager from the playstore.
5. Find the script you created and set it to run with SU, make sure to save.
6. You can run it now to see if it worked. (If it did, make sure to edit the script to run at boot)
Notes:
I reclaimed about 6GB+ and was able to download several new games after doing this.
Occasional a folder called /Android/data/ gets created in Gamedata but it stays empty and doesn't effect anything. Just ignore it.
Newly downloaded game data will automatically be downloaded to the Gamedata folder. (As long as the addition data is downloaded through Google Play)
Works with Link2SD
This should work on every device that has an external sd card, however you might have to edit the paths to make sure they match up with how your device has the external sd card implemented (emmc, sdcard1, extSdCard). You may also have to edit the internal sd path for 4.2 and above to because of multi-user support.
Thanks to DeathmonkeyGTX! His music cache script gave me the idea to do the same for obb game data. They could probably be combined into one script, should you want to.
PART 2: Link2SD Info - for even more space saving
You can also use Link2Sd (found on the market) to store apps on the external sd card.
I formatted my external sd into two partitions. One 55 GB partition (For user data) and another 4 GB partition (for Link2SD).
Notes:
The highest app that I linked only saved about 50 MBs. Not really saving that much space, but after I linked several 50 MBs and under apps, I recovered about 1.2 GBs of space on the Internal.
The second partition can only be used for Link2SD.
To Set Up:
Backup your SD, format it to Fat32, use MiniTool to resize the first partition, then create a second partition (FAT 32 and make sure it is Primary) using the remaining space. You should now have two partitions. Now just launch the Link2SD app and create the start-up mount scripts. Reboot, launch the app once more, and finally start linking apps to your external sd card.
More info here: http://www.link2sd.info/home
I recommend reading the description and FAQ.
Both "PARTS" can be used together or separately just fine on ICS. However, I was not able to get Link2Sd working on SnowJB.
Seems to be working great! We now have so much more room for activities!
This is what I call a WIN: http://imgur.com/a/WBtHP
as far as I know I did everything I was supposed to but I went and deleted the files on my internal sd card and it deleted the ones on external sd card. I downloaded the app again and it saved the files in both locations and I deleted the internal one and it deleted both again. What could be causing this?
mws1986 said:
as far as I know I did everything I was supposed to but I went and deleted the files on my internal sd card and it deleted the ones on external sd card. I downloaded the app again and it saved the files in both locations and I deleted the internal one and it deleted both again. What could be causing this?
Click to expand...
Click to collapse
You have to delete the files before you set the script to run at boot. Otherwise you will be deleting the files on the external sd since the script tricks the system into thinking they are on the internal. I'm also think that your misunderstanding when you say they are on both. If you look at the total space when tapping the obb folder on your internal you will notice it goes from 11GB to whatever size you external sd card is. The two folders are binded so it would appear that they are on both but they are only on your external.
Joecascio2000 said:
You have to delete the files before you set the script to run at boot. Otherwise you will be deleting the files on the external sd since the script tricks the system into thinking they are on the internal. I'm also think that your misunderstanding when you say they are on both. If you look at the total space when tapping the obb folder on your internal you will notice it goes from 11GB to whatever size you external sd card is. The two folders are binded so it would appear that they are on both but they are only on your external.
Click to expand...
Click to collapse
I just noticed this today, I ran this correctly (thank you for adapting it btw) and saw that I had "duplicates" on my internal. Then I saw that the total space was listed as 32 gigs... and it clicked, lol.
For a little clarification, you will see the folder in both places, the one on the internal card is just a link, it shouldn't actually take up any room on the internal card.
I was also able to get this to work for another folder created by a game that didn't put the files in obb folder.
(Just make a copy of the script and edit the pathways in it and run as root at boot.)
bleached45 said:
I just noticed this today, I ran this correctly (thank you for adapting it btw) and saw that I had "duplicates" on my internal. Then I saw that the total space was listed as 32 gigs... and it clicked, lol.
For a little clarification, you will see the folder in both places, the one on the internal card is just a link, it shouldn't actually take up any room on the internal card.
I was also able to get this to work for another folder created by a game that didn't put the files in obb folder.
(Just make a copy of the script and edit the pathways in it and run as root at boot.)
Click to expand...
Click to collapse
Yeah it bugs me big time that some apps download files to different places. I noticed some apps that download additional files through the play store, download the data to the /android/data/ folder instead of /android/obb/. Google really needs to make that uniform, where all additional game data get downloaded to one place. I did, however, adapt my script to link the whole /android/ folder to the external sdcard.
I won't release that one because there is way more things that can go wrong. The /android/data folder is used for so much more than just games and if it's not set up just right you could get force closes and blank widgets on boot. But just FYI, it is possible and is working well for me.
Worked! Thanks a lot for the script man helped save a lot of data!
Sent from my LG-E970 using xda app-developers app
Well, I can't get this post deleted, but I was able to figure out my problem!
Thanks for posting this solution! So happy to have it!
Re: obb "Game Data" to external_sd and Link2Sd Info
I used both methods here, obb and links2sd and it helped me out tremendously. Nice work and thanks for posting this.
Sent from my LG-E970 using xda premium
Hey Joecascio2000,
Do you know how one would modify this script to work on the Stock 4.1.2 Jelly Bean LG-E973/1/5/0 CANADA / ATT / INTERNATIONAL rom?
I've read in that thread that the sdcard locations are different for Jellybean.
I've tried the following path to no avail.
mount -o bind /mnt/storage/external_SD/Gamedata /mnt/storage/sdcard0/Android/obb/
Using that path will have smanager error out stating the following:
card0:/AndroidObbSwap.sh'
mount: No such file or directory
Any input would be greatly appreciated.
Yoreo said:
Hey Joecascio2000,
Do you know how one would modify this script to work on the Stock 4.1.2 Jelly Bean LG-E973/1/5/0 CANADA / ATT / INTERNATIONAL rom?
I've read in that thread that the sdcard locations are different for Jellybean.
I've tried the following path to no avail.
mount -o bind /mnt/storage/external_SD/Gamedata /mnt/storage/sdcard0/Android/obb/
Using that path will have smanager error out stating the following:
card0:/AndroidObbSwap.sh'
mount: No such file or directory
Any input would be greatly appreciated.
Click to expand...
Click to collapse
I don't have JB installed yet so I don't know exactly how the sd card and external sd card are mount. I'm assuming your paths are correct. But I suggest making sure that the script is running from the internal SD card. Also, I would add a "sleep" line just to make sure the external sd is mounted properly before running the bind.
Try:
#start
sleep 30
mount -o bind /mnt/storage/external_SD/Gamedata /mnt/storage/sdcard0/Android/obb/
#end
Joecascio2000 said:
I don't have JB installed yet so I don't know exactly how the sd card and external sd card are mount. I'm assuming your paths are correct. But I suggest making sure that the script is running from the internal SD card. Also, I would add a "sleep" line just to make sure the external sd is mounted properly before running the bind.
Try:
#start
sleep 30
mount -o bind /mnt/storage/external_SD/Gamedata /mnt/storage/sdcard0/Android/obb/
#end
Click to expand...
Click to collapse
I gave that a shot, and it's still kicking out the same error. I think I'm going to post in that thread and see if anyone there can tell me if my path names are incorrect.
Well Joecascio2000, I figured it out after getting a good nights sleep. My paths weren't correct.
Anyhow, the correct path/command is as follows:
Code:
mount -o bind /storage/external_SD/Gamedata /storage/sdcard0/Android/obb/
Feel free to update your OP to notify anyone who may be using that rom to use the above script for things to work properly.
What would be the code to get this working with the new cm 10.1 conversion?
I tried
mount -o bind /storage/sdcard1/Gamedata /storage/emulated/0/Android/obb/
and a few others
Yoreo said:
Well Joecascio2000, I figured it out after getting a good nights sleep. My paths weren't correct.
Anyhow, the correct path/command is as follows:
Code:
mount -o bind /storage/external_SD/Gamedata /storage/sdcard0/Android/obb/
Feel free to update your OP to notify anyone who may be using that rom to use the above script for things to work properly.
Click to expand...
Click to collapse
Thanks. I updated to OP to include your code and put a link to your post.
whoamanwtf said:
What would be the code to get this working with the new cm 10.1 conversion?
I tried
mount -o bind /storage/sdcard1/Gamedata /storage/emulated/0/Android/obb/
and a few others
Click to expand...
Click to collapse
Again, not really sure how CM10.1 handles the external sd. Did you try the code directly above your post? It works for the JB port so it may work for the CM10.1 ROM.
EDIT:
Try:
mount -o bind /storage/sdcard1/Gamedata /storage/sdcard0/Android/obb/
That is what I have on my Captivate running CM10.1.
Re: obb "Game Data" to external_sd and Link2Sd Info
I'm not 100% for sure on this but doesn't cm10 handle the external sd as emmc?
Sent from my LG-E970 using xda premium
Re: obb "Game Data" to external_sd and Link2Sd Info
tmease1 said:
I'm not 100% for sure on this but doesn't cm10 handle the external sd as emmc?
Sent from my LG-E970 using xda premium
Click to expand...
Click to collapse
I know they used too on my Captivate but with the multiple users in 10.1 I think they might have changed it. And again it could be different for every device. I recommend using solid explorer to just search around. If you tap the little android icon in the top left it gives you the exact path of the folder you are in.
Sent from my LG-E970 using xda premium
Joecascio2000 said:
I know they used too on my Captivate but with the multiple users in 10.1 I think they might have changed it. And again it could be different for every device. I recommend using solid explorer to just search around. If you tap the little android icon in the top left it gives you the exact path of the folder you are in.
Sent from my LG-E970 using xda premium
Click to expand...
Click to collapse
Yeah it is weird I found the exact paths and changed the script but it still doesnt work, even got it to where it looked like it worked, went green and no mount error but no data
whoamanwtf said:
Yeah it is weird I found the exact paths and changed the script but it still doesnt work, even got it to where it looked like it worked, went green and no mount error but no data
Click to expand...
Click to collapse
Did you add the sleep line? Some ROMS take longer to mount the sd card than others. If the sd card isn't mounted before the script runs nothing will happen.
Code:
#start
sleep 30
mount -o bind /storage/external_SD/Gamedata /storage/sdcard0/Android/obb/
#end
This will wait 30 seconds before running the script. If the paths are correct, I don't see why it wouldn't work. Under smanager, click menu>more> advanced>configuration, and turn on "Show On Boot Script Log". That should give you an idea as to what is happening.

Anyway to move apps to SD card, without formatting to internal storage?

That. I'm rooted with TWRP recovery, using the AOSP Extended ROM v3.2 (7.1.1 nougat).
I dont want to format my sdcard to internal, because I use it to save files and backups, and zip files to flash on an emergency.
Is there an alternative? I can't seem to find one.
It would be cool to make it think it has 2 sd cards, 1 internal and 1 external, while in real it's just one that is formatted in 2 partitions, but I don't think thats possible.
Thanks.
makmm said:
That. I'm rooted with TWRP recovery, using the AOSP Extended ROM v3.2 (7.1.1 nougat).
I dont want to format my sdcard to internal, because I use it to save files and backups, and zip files to flash on an emergency.
Is there an alternative? I can't seem to find one.
It would be cool to make it think it has 2 sd cards, 1 internal and 1 external, while in real it's just one that is formatted in 2 partitions, but I don't think thats possible.
Thanks.
Click to expand...
Click to collapse
What you want is possible. I'm using it on my moto e and moto z play.
I'll try to dig up the link for the procedure. You need a PC, and a basic knowledge of adb.
Edit: here you go. http://blog.sam.liddicott.com/2016/02/android-6-semi-adopted-storage.html?m=1
Here's what it looks like on Z play.
dandrumheller said:
Here's what it looks like on Z play.
Click to expand...
Click to collapse
Is it safe to do? In worst case scenario, will it brick my phone?
soft brick or hard brick?
(yes, i'm obviusly going to backup the contents of my sd card.)
BTW, thanks! if this works, ily so much lol
makmm said:
Is it safe to do? In worst case scenario, will it brick my phone?
soft brick or hard brick?
(yes, i'm obviusly going to backup the contents of my sd card.)
BTW, thanks! if this works, ily so much lol
Click to expand...
Click to collapse
It will nuke whatever is on your SD card. Won't touch a thing on your phone. Just follow the directions, he tells you how to confirm you're looking at the proper storage device.
AFAIK there are no negative effects beyond the normal additional read write cycles due to adoptable storage. Been using one card like this on the e (backup device, low use) for six months, and the other one for about a month now on the Z (high use daily driver). Working fine for me.
dandrumheller said:
It will nuke whatever is on your SD card. Won't touch a thing on your phone. Just follow the directions, he tells you how to confirm you're looking at the proper storage device.
AFAIK there are no negative effects beyond the normal additional read write cycles due to adoptable storage. Been using one card like this on the e (backup device, low use) for six months, and the other one for about a month now on the Z (high use daily driver). Working fine for me.
Click to expand...
Click to collapse
Seems legit. I have a 32gb sd (max for the Moto E surnia) and going for 25% internal (about 8gb) and 75% external (about 24gb.)
Thanks a lot!
EDIT: OK. I did it, but i forgotten to eject it, so now it's corrupted, and I can't seem to find a way to eject it to try to do it again, as when I press on the SD card, it tells me to format it. If I format it (temporarely, to then do it again) it will still say "Corrupted". EDIT2: I tried formatting it as portable and it worked, but then when I ejected with the icon next to the sd card, and then doing the commands gives the same result as before. "Portable Storage" is okay, named as "sdcard1 / vfat" but internal says "Corrupted". What do I try now?
makmm said:
Seems legit. I have a 32gb sd (max for the Moto E surnia) and going for 25% internal (about 8gb) and 75% external (about 24gb.)
Thanks a lot!
EDIT: OK. I did it, but i forgotten to eject it, so now it's corrupted, and I can't seem to find a way to eject it to try to do it again, as when I press on the SD card, it tells me to format it. If I format it (temporarely, to then do it again) it will still say "Corrupted". EDIT2: I tried formatting it as portable and it worked, but then when I ejected with the icon next to the sd card, and then doing the commands gives the same result as before. "Portable Storage" is okay, named as "sdcard1 / vfat" but internal says "Corrupted". What do I try now?
Click to expand...
Click to collapse
Hmmm. Probably better off to reformat the whole card to a single fat32 partition (use a card formating tool on the pc for this) and start over. Not sure if or how to do it via adb if it's seeing one partition as corrupt.
Fwiw, 32gb is the max " officially " supported SD card size on the surnia, but it works fine with bigger cards. I'm running 64gb.
I'm going to try a solution that is on the comments of the blog post. Thanks!
EDIT: tried the solution, heres the comment:
A Bored Boy 16 September 2016 at 19:54
For anyone that is getting the corrupted error on their SD card when creating a mixed partition. Here is the solution.
After you have partitioned the disk and while your SD card is corruped enter In the terminal the following:
$> adb shell sm list-volumes all
Which will list your volumes, for example:
private mounted null
public:179,1 mounted B5B1-140C
private:179,3 unmountable null
emulated mounted null
Then enter the following replacing 179,3 with whichever disk numbers you are given:
$> adb shell sm format private:179,3
$> adb shell sm mount private:179,3
Now your SD card in device storage should be properly mounted and your portable storage will still be there.
This worked on my LG G5 and should work on the S7.
On the 2nd and 3rd step I get the following error:
▶ adb shell sm mount private:179_67
Error: java.lang.IllegalStateException: command '55 volume mount private:179_67 0 -1' failed with '400 55 Command failed'
Help?
dandrumheller said:
Hmmm. Probably better off to reformat the whole card to a single fat32 partition (use a card formating tool on the pc for this) and start over. Not sure if or how to do it via adb if it's seeing one partition as corrupt.
Fwiw, 32gb is the max " officially " supported SD card size on the surnia, but it works fine with bigger cards. I'm running 64gb.
Click to expand...
Click to collapse
OK. Tried formatting into FAT32 with a chromebook (only computer I had access to atm, no usb adapter :/) and it formatted. Then putted the sd on my phone, selected as portable, EJECTED and did the proccess.. no luck.
Same result. The internal partition marks as "corrupted".
Anyone, help? I really need it, lol.
Thanks anyway,
dandrumheller? Someone? I really need it ?
I readed some more and see that link2sd is a better option? What's the difference?
makmm said:
dandrumheller? Someone? I really need it ?
Click to expand...
Click to collapse
Don't know what to tell you, I just followed the post and it worked. Do you have another card you can try with?
Does the original card work normally again after going back to fat32?
dandrumheller said:
Don't know what to tell you, I just followed the post and it worked. Do you have another card you can try with?
Does the original card work normally again after going back to fat32?
Click to expand...
Click to collapse
I think yes. I have other card(s) but they are not mine.
But what's the difference from this method than link2sd?
makmm said:
I think yes. I have other card(s) but they are not mine.
But what's the difference from this method than link2sd?
Click to expand...
Click to collapse
Haven't used link2sd in many years. Used to require lots of manual management, but it's the same concept. 2 partitions on SD card, 2 different formats, apps on one, media etc on the other.
Give it a shot. Used to have to manually format SD card to ext2 (iirc) for the app partition.
dandrumheller said:
Haven't used link2sd in many years. Used to require lots of manual management, but it's the same concept. 2 partitions on SD card, 2 different formats, apps on one, media etc on the other.
Give it a shot. Used to have to manually format SD card to ext2 (iirc) for the app partition.
Click to expand...
Click to collapse
I tried a thousand times with ext4 (and fat32) and it didnt work....
BUT WAIT, theres more! i tried with ext2 as you said (fat32 + ext2) and Just Works(tm)
Thanks, i really appreciate your help, you were the only one to respond lol...
PS: using apps2sd instead of link2sd as apps2sd has part manager, that's how i partitioned it, yay!
PS2: should i just use link2sd as "linker" and apps2sd as alternative/part manager?
thanks again ;D
Edit: I needed to change some config in SuperSU and create in advanced mode the Mnt script, but it works like a charm! It lets me move any app! ;D
makmm said:
I tried a thousand times with ext4 (and fat32) and it didnt work....
BUT WAIT, theres more! i tried with ext2 as you said (fat32 + ext2) and Just Works(tm)
Thanks, i really appreciate your help, you were the only one to respond lol...
PS: using apps2sd instead of link2sd as apps2sd has part manager, that's how i partitioned it, yay!
PS2: should i just use link2sd as "linker" and apps2sd as alternative/part manager?
thanks again ;D
Edit: I needed to change some config in SuperSU and create in advanced mode the Mnt script, but it works like a charm! It lets me move any app! ;D
Click to expand...
Click to collapse
Glad you got it working!
andorid sucks those years too

Categories

Resources