Apps2SD - Xperia Z3 Tablet Compact Q&A, Help & Troubleshooti

Hey all,
Has anyone had success using Apps2SD or similar? I have a rooted Z3TC and have been trying to partition and create mount scripts for the microSD card in the app but keep running into an error.
Error:
Mount: mounting /dev/block/mmcblk1p3 on /data/sdext2 failed: No such device
I have posted on the dev forum but wanted to check if anyone in the device specific forum has speciality knowledge. And devs are often worked off their feets!
Sent from my Nexus 6P using XDA-Developers Legacy app

Solved.
2nd partition needed to be formatted as ext4. Still a whole load of other issues to sort through, but I have a working version. (Will never buy a device with this small internal memory again!!!)

Soulfulgrey said:
Solved.
2nd partition needed to be formatted as ext4. Still a whole load of other issues to sort through, but I have a working version. (Will never buy a device with this small internal memory again!!!)
Click to expand...
Click to collapse
Hello.
I have the App2SDPro app and have not been able to get it to work. Can you explain in more details how you did it? 16GB is always making me delete stuff...but there is no phone that can match this size so I just need to find a way to move apps.
Thanks!

Hi,
I use App2SD since a while due to the ridiculous amount of memory of this device. I have something around 320 applications installed with games, gps/maps... all locally installed.
I don't use the "Link apps to SD card" option but only the "Folder Mount" one.
I barely move everything on the root of the internal SD to a dedicated folder on my external SD card.
The trick is to find the folder on which App2SD has the write permissions. As there is a several location for both internal and external storage location it can require some try/fail tests...
I'm on LineageOS and I use these links to move all the obb folder to the external SD card:
Source=/storage/emulated/0/Android/obb
Destination=/storage/NNNN-NNNN/DCIM/App2SD_folders/obb, with NNNN-NNNN the internal SD name
I have unchecked all the options as I normally prefer to move them manually with a file explorer to make some cleanup in the same time.
For some reasons there was some limitation to move directly the Android folder, so do the same for the /Android/Data folder.
Cheers

Related

[Q] app install location

I have a few questions about app install locations for the g-tablet. There are three places where apps can go: 1. internal memory, 2. internal sd card, 3. external sd card.
For internal memory, I can see the installed apps (the apk files) at /data/app. I cannot find any evidence of any apps installed on the internal sd card (do they stay packaged in the apk file or get exploded out). What directory do they get put into on the internal sd card? In case you're wondering, according to App 2 SD Pro, I have 10 apps installed on the sd card.
Is there a way to install apps on the external sd card? Everything that I've read about and the sd card app managers that I've tried only work between the internal memory and the internal sd card.
Hmmm...nothing but crickets. Not even a question for more information? Well, here is a little more anyway. The tablet is rooted and I have tnt-lite 4.4.0 installed. I'm using Root Explorer to browse around in the file system.
This discussion might help, somewhat.
Yes, that other post was somewhat helpful. I can see the apps that have been moved to the "internal" SD card are at /mnt/asec with Root Explorer (I didn't have to unmount either...but the .android_secure folder did show as empty).
A couple of other questions for you:
1. Are you using a remote Linux machine to do those find commands or is there a way to get to that command line on the g tablet? I only have Windows so I may be stuck there.
2. Unmounting the SD card in the Settings will unmount the "external" SD card, right? not the "internal" SD card?
3. Do you know anything on my other original question about the "external" SD card? Can we move apps there some how? If not, I'd be game to try to write an app that will do it but my guess is that if there isn't an app that does it already, its probably harder than it seems that it should be.
Puhn said:
(I didn't have to unmount either...but the .android_secure folder did show as empty).
Click to expand...
Click to collapse
If you unmount the SD card (internal or external -- depends on the ROM), you will see stuff in /mnt/sdcard/.android_secure/.
1. Are you using a remote Linux machine to do those find commands or is there a way to get to that command line on the g tablet?
Click to expand...
Click to collapse
I use a telnet session into the gTablet, but, you can run the commands either inside a Terminal emulator or via adb. It usually doesn't matter how you run the commands.
2. Unmounting the SD card in the Settings will unmount the "external" SD card, right? not the "internal" SD card?
Click to expand...
Click to collapse
Depends on the ROM. In CyanogenMod, the SD card is the removable SD card. The internal non-removable one is called "emmc" (mounted under /mnt/emmc). Other ROMs have /mnt/sdcard and /mnt/sdcard2 (Froyo/GB) or /mnt/sdcard and /mnt/external_sd (Honeycomb ROMs).
3. Do you know anything on my other original question about the "external" SD card? Can we move apps there some how? If not, I'd be game to try to write an app that will do it but my guess is that if there isn't an app that does it already, its probably harder than it seems that it should be.
Click to expand...
Click to collapse
CyanogenMod does what you want by default. As I mentioned above, for it /mnt/sdcard is always the external removable SD card. So, everything "moved to SD card" ends up on the external SD. If you want other ROMs to behave this way, you'll have to change some of the /init*.rc files and the /system/etc/vold.fstab file and change what gets mounted as /mnt/sdcard (ie, which device is assigned the "sdcard" label). Look around, the changes are fairly obvious.
My recommedation, however, is to just install CyanogenMod and avoid the /init*.rc and vold/fstab hackery.
Good information. Huge THANKS !
One last question (hopefully)...if the SD card in CyanogenMod is the external SD card, I guess I have the reverse question for it. Can/how do you move apps to the non-removable SD card?
I guess what I'm getting at is I have a 16 GB internal, non-removable SD card and a 16 GB removable SD card that I'd like to maximize the use of. I'm not stuck with only being able to put apps on one or the other depending on the installed ROM am I?
Puhn said:
I guess what I'm getting at is I have a 16 GB internal, non-removable SD card and a 16 GB removable SD card that I'd like to maximize the use of. I'm not stuck with only being able to put apps on one or the other depending on the installed ROM am I?
Click to expand...
Click to collapse
Heh. What started as a simple question about App install locations has now progressed to low-level mucking about with the system. What next--RAID using the SD cards?
To answer your question, with the standard, unmodified ROM you are stuck with only using either one or the other. But, since Android is based on Linux, (and since we have the source code for most of the programs on the system), it can be made to do a lot of non-standard things.
I'm pretty sure that the system can be modified to use both the internal and external SD cards for App installations, but, this will need a fair bit of customization of the ROM. Which means that if you switch ROMs or even upgrade the current one, the setup will have to be redone again.
Therefore, my recommendation, is that you use one of the SD cards solely for app installs and the other only for storing media/books/whatever. 16GB only for apps is a fair bit of space, I feel.
rajeevvp said:
Heh. What started as a simple question about App install locations has now progressed to low-level mucking about with the system.
Click to expand...
Click to collapse
Well, I had hoped to avoid the mucking about part and that one of the available ROMs already had the ability to put apps anywhere but it sounds like that is not the case. I guess I wasn't clear with my original question.
Anyway, thanks for all of the answers. I'll stick with what I've got for now. At some point I may play around with some things and see how thoroughly mucked up I can get it.

[Q] External SD Card Usage

Just got my E4GLTE and of course the first thing I did was root it, unlock it, and make a nandroid backup. I just moved from a Motorola Photon 4G and on that device the internal memory (pseudo sdcard) is mounted on /mnt/emmc and the external card is on /mnt/sdcard. Assuming you run out of app space in base memory, you can always move most of your app to the SD Card. Since the E4GLTE mounts the external SD Card on /mnt/sdcard/ext_sd, it appears that actual external storage can only be used for media or data where the app (or the system using the Storage tool) has a function to map to a different directory.
Have I described the situation properly? Does anybody else see the limitations this might pose or suggest workarounds?
..rob
bitbearmi said:
Just got my E4GLTE and of course the first thing I did was root it, unlock it, and make a nandroid backup. I just moved from a Motorola Photon 4G and on that device the internal memory (pseudo sdcard) is mounted on /mnt/emmc and the external card is on /mnt/sdcard. Assuming you run out of app space in base memory, you can always move most of your app to the SD Card. Since the E4GLTE mounts the external SD Card on /mnt/sdcard/ext_sd, it appears that actual external storage can only be used for media or data where the app (or the system using the Storage tool) has a function to map to a different directory.
Have I described the situation properly? Does anybody else see the limitations this might pose or suggest workarounds?
..rob
Click to expand...
Click to collapse
Yes I see this as a problem as well. I have looked into the vold.fstab file (where the system looks to see how it should mount partitions) but changing them just makes neither partition mount. I have a feeling that it might be something in the kernel but I will keep digging around.
Also if someone does figure it out how do you prefer them to be mounted? Internal as /emmc and external as /sdcard? Internal as /sdcard/int_sd and external as /sdcard? Maybe something else?
I guess it would depend how the apps and the kernel handle it, which of course, would vary with a custom ROM. Early builds of CM9 for the MoPho alternated back and forth, but there is also an option to swap what is internal and external as well. When it wasn't mounting at all, you could edit the vold.fstab, which would be my first inclination, so thanks for saving me that step!
I think, from most implementations I've seen, when a device has internal and external storage its been mounted as /mnt/emmc and /mnt/sdcard. Its like that on most of the custom ROMs I've used (on Nook, OG EVO, Hero, MoPho).
..rob
Im really lost on the whole external sd thing. I just want to be able to have my apps on there but android has made it seemingly impossible to do so anymore. Is there a write up or something on how this can be done with todays ICS?
Sent from my EVO using xda premium

Extsdcard vs sd card. How is it saving?

I went into root explorer.
I went into /mnt/
And I noticed there's two options....
/Extsdcard and /sdcard
Seems like all my downloads, music, and everything is getting saved to /sdcard
What does this mean?
P.s. I have a 64gb micro sdcard card.
Sent from my SGH-T999 using xda premium
your extsdcard is your external one in your phone you can remove. i would recomend saving most your files like your music and such to that. sdcard is your internal memory of your phone. you have less space there and should save it for more important things. hope that helped
It means everything is being saved to your Internal Storage. I haven't quite figured out how to default everything to the ExtSdcard yet. I know the camera can. The phone will read everything from the ExtSdcard fine though, such as music and other files.
The ext sd card can be used for the camera/video, CWM backups, music files you copy from your computer, and you can move most any files there that you download.
The internal sd card will be used for all of your apps, there's no way to 'move to sd card', you just have the full 16/32gb internal sd for all of it. Since you will always be forced to use the internal sd card for all app needs, I just try to keep everything on my ext sd card I can (my cwm backups are 1.7gb!). Not that it really matters for me though, I downloaded every app I ever use and a few games and only hit 1.2gb used on my internal sd card.
You can also go to th advanced tab within the stock browser and select memory card for default storage. I am guessing that is ext SD as the other option is "Phone".
Thanks for the information!
This was quite confusing at first. Time to start moving files
Sent from my SGH-T999 using xda premium
permanent fix for this?
My issue is that everything defaults to the /sdcard (internal partition - i'm calling it that for ease of terminology) and some apps just don't give you another option of where to save the media to (or don't let you browse over to the right thing). as it stands, the phone seems to be mounting that internal /sdcard partition as if it were external media, ie in android's default location for external media. thus, apps are looking ofr the REAL SD card and think they've found it but they haven't.
the reason this is a problem for me is 1. i have to change this in every app that allows me to, and 2. CWM sends backups to the internal one automatically and i can't change it and have to manually move the backup images to my external.
the reason i'm going into all of this is i'd like to find a way to entirely get rid of the /sdcard folder representing the internal memory and have the external card take its place. I'd like the rest of my 29ish GB of internal storage to be part of the system partition - where apps go, etc. it's not that i want to use that space, it's that i want to "move to SD" to the right SD. i just don't want the apps and system to treat ANY internal space as if it were external or mounted or anything of the sort.
my last phone, Atrix 2, had like 2-4gb internal. I'm just suggesting stretching that amount all the way to 32gbs and using the SD card as an SD card.
the question, basically, is whether there is any way to make this happen? i came across a thread (google "sd card mount point modification" as i can't post external links yet) elsewhere that discusses doing this with a VTAB and was wondering if this is something that is addressing my (our?) issue, whether it's a recommended solution, and whether it would work on the S3. i'm fine following technical instructions but I have very limited knowledge of the way addressing etc. works on Android and this filesystem. any help (or a redirect to a thread where this is more appropriate to ask) would be greatly appreciated.
Does this issue persist with custom roms? Is it an Ics bug that won't let you install apps to extsdcard or a Samsung intentional crap? I know one other android phones I had I could save apps to sd card no issues.
Sent from my SAMSUNG-SGH-I747 using xda premium
sabre31 said:
Does this issue persist with custom roms? Is it an Ics bug that won't let you install apps to extsdcard or a Samsung intentional crap? I know one other android phones I had I could save apps to sd card no issues.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
haven't tried any, waiting for something where key things like camera, LTE, etc all work. It's not that I can't install to extSD, it's that the default is "sdcard" (ie the internal space allocated). it's really a function of the way the system/phone allocates that extra internal space - rather than calling it "internal storage/system storage", they are calling it the "primary sd card" and the actual sd card is being called "2nd sd card". it's this treatment of the spaces by the system that i'm unhappy about, i guess.
that's a good point though, and i am hoping that a custom ROM will do this differently. will update when i find one i like
EDIT: gonna do the Task & Ktoonsez AKOP Rom this weekend, should know how the spaces are treated. again, will update.

How to avoid mounting external sdcard as sdcard0

Hello,
when inserting an external SD card, the internal memory card is then mounted as sdcard1 and the inserted external card is mounted as sdcard0. So Android starts writing a lot oft data to the external SD card.
How can I avoid this? Android should not touch the external SD card. I want to copy pix, music and backup manually to it.
Any suggestions?
Hi just go to settings =storage and then change default write disk to phone storage
yascooluk said:
Hi just go to settings =storage and then change default write disk to phone storage
Click to expand...
Click to collapse
Hello,
and you have tested this by yourself? If I insert an external SD card, switch to "default write disk to phone storage" and delete ALL data on this SD card, Android
immediately starts to write to data on it:
The folders "LOST.DIR", ".thumbnails" and "Android" are created. In the folder "Android" there is the folder "data" with several App-Data in it.
Even some Apps like WhatsApp start to write data to the external SD card.
So, switching to "default write disk to phone storage" does NOT keep Android away from writing data to it.
For example, on my Galaxy Tab Pro 8.4 the external SD card is mounted as "sdcard1" and no files are written to it automatically.
I browsed the web for hours, but did not find any solutions for this problem. It is not a big thing, but it is annoying.
:crying::crying::crying:
I have the same problem also on an old smartphone with MT6582 processor and Android 4.1.2.
It's an old problem, I think that it's a way of manage memory for smartphones based on MTK processors and there aren't solutions.
But I would like this to be denied
What about changing sdcard1 and sdcard0 , in the mount point file:
https://www.youtube.com/watch?v=sK2O92kgki0
You must be root.
When i have time to root my phone i will try.
I am having the same problem and it is very annoying. Why can't Android leave alone my Sdcard? I only want to storage music and some files there.
@yascooluk
Settings =>storage => default disk write storage "Phone" has no effect. Lots of Apps point to sdcard0, which is now the external sdcard.
@ndouchin
This Solution worked for Android Versions prior 4.3. In Android 5.1 there is no vold.fstab file, and swapping mounting points works differently now, but i didnt' figure it out yet.
Yes you are right, fstab is in boot.img in lollilop, if I believe what I read ;
http://forum.xda-developers.com/showthread.php?t=2426804
Maybe try to unpack and pack boot.img:
http://www.mtkroms.com/2015/02/unpackrepack-bootimg-and-port-kernel.html
Sorry I have no time to work on my device , i have not already rooting it, and the internal memory is enough for me.
I've managed to root my device, but i'm not skilled enough to do this boot.img operation. Too many things that can go wrong. As the source code for this device was already released, I'll wait and hope until some developer can find a solution.
XinternalSD is the solution. Try it. regards
Sent from my HERO1 using Tapatalk

[cm13] [marshmallow] insufficient storage

hi!
i have a problem with insufficient internal storage. i use a 64GB micro sd-xc card and have until recently used it as portable storage. but the phone's internal storage was not enough for all my apps and their data so i decided to format the sd as internal, which should allow you to move your apps there.
but as i discovered, only very few third party apps can be moved to sd, stuff like play music, drive, sheets, slides, etc. can not be moved. this puts me in an awful position because i use drive and play music a lot, and every kB of stuff i want to keep available offline gets stored in the small internal storage, so in the end i have no space left on the phone, and an almost empty useless sd.
using it as portable doesn't allow any apps to be migrated to the sd either, so i'm stuck with only 4GB of space. apps like link2sd and apps2sd don't work with marshmallow.
does anyone know how to move google apps or app data to the sd on marshmallow?? i don't want to go back to lollipop due to this...
OR, has anyone found out how i could partition the sd card in a way that a part would be formatted as internal and part as external storage? (all my attempts ended with the phone formatting the whole sd as internal)
bombaglad said:
hi!
i have a problem with insufficient internal storage. i use a 64GB micro sd-xc card and have until recently used it as portable storage. but the phone's internal storage was not enough for all my apps and their data so i decided to format the sd as internal, which should allow you to move your apps there.
but as i discovered, only very few third party apps can be moved to sd, stuff like play music, drive, sheets, slides, etc. can not be moved. this puts me in an awful position because i use drive and play music a lot, and every kB of stuff i want to keep available offline gets stored in the small internal storage, so in the end i have no space left on the phone, and an almost empty useless sd.
using it as portable doesn't allow any apps to be migrated to the sd either, so i'm stuck with only 4GB of space. apps like link2sd and apps2sd don't work with marshmallow.
does anyone know how to move google apps or app data to the sd on marshmallow?? i don't want to go back to lollipop due to this...
OR, has anyone found out how i could partition the sd card in a way that a part would be formatted as internal and part as external storage? (all my attempts ended with the phone formatting the whole sd as internal)
Click to expand...
Click to collapse
Hi @bombaglad
I use Cyanogenmod 13 too. You have mentioned apps2sd do not work, but I use it and it works fine for me. Try to give it another go, and make sure you correctly partition your sd-card.
mobiusm said:
Hi @bombaglad
I use Cyanogenmod 13 too. You have mentioned apps2sd do not work, but I use it and it works fine for me. Try to give it another go, and make sure you correctly partition your sd-card.
View attachment 3686851
Click to expand...
Click to collapse
wow! thanks for your reply. i have played around with it a lot and i couldn't get it working, i also found other forums with people who had problems with this.. so please, could you explain to me the steps you took to get it working? like, what format was the sd card first, which app you used to partition it and what format was the partition? that would really help me out
bombaglad said:
wow! thanks for your reply. i have played around with it a lot and i couldn't get it working, i also found other forums with people who had problems with this.. so please, could you explain to me the steps you took to get it working? like, what format was the sd card first, which app you used to partition it and what format was the partition? that would really help me out
Click to expand...
Click to collapse
I use MiniTool Partition Wizard to partition my sd-card. I connect it to a converter for usb and then connect it to my computer. In the partition wizard, I partition most of it to primary FAT32. Then the rest I partition to ext4, also primary. You decide on how much to allocate to each partition. I find using about 6 GB for the second partition will be the most I ever need.
After the sd-card is partitioned, I insert it back to my phone. When cm13 asks you to decide what to do with the sd cards, tell it the first partition is external, but don't do anything for the second one.
Then download apps2sd. go to settings and set "mmcblk1p2" for "Use custom dev block". Also check "Use public vold". Those are my settings. Then you can try and go to the "Link apps to sd card" section and continue from there. I really hope for you this works!
If id doesn't you can try to do the whole process but this time also tell Cyanogenmod the second partition is external.....
Let me know!
mobiusm said:
I use MiniTool Partition Wizard to partition my sd-card. I connect it to a converter for usb and then connect it to my computer. In the partition wizard, I partition most of it to primary FAT32. Then the rest I partition to ext4, also primary. You decide on how much to allocate to each partition. I find using about 6 GB for the second partition will be the most I ever need.
After the sd-card is partitioned, I insert it back to my phone. When cm13 asks you to decide what to do with the sd cards, tell it the first partition is external, but don't do anything for the second one.
Then download apps2sd. go to settings and set "mmcblk1p2" for "Use custom dev block". Also check "Use public vold". Those are my settings. Then you can try and go to the "Link apps to sd card" section and continue from there. I really hope for you this works!
If id doesn't you can try to do the whole process but this time also tell Cyanogenmod the second partition is external.....
Let me know!
Click to expand...
Click to collapse
i'll admit, that a few minutes before reading this answer, i simply used apps2sd's partition tool, and with fat32 and ext3 i am now able to use the linking function thank you very much for your assistance, it's people like you thanks to whom the xda community is as awesome as it is <3
I'm always glad to help!
By the way, if after a reboot your phone tells you your sd-card is corrupt, just ignore the notification..
Doesn't work for me
Hi,
I've similar problems.
My configuration: LG G3 (D855) with CM13 (build: 20160528), SuperSU 2.74, xposed framework
In CM13 I'm not able to move apps to the external SD (there is no such option).
So I tried it with APPS2SD. :
- I'm able to create two partitions and to mount the second one.
- My Problem: I always get the following error message when trying to move an app: ...apk Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
Already tried:
- different File Systems for second partition (ext2, ext3, ext4, f2fs)
- with or without swap partition
- Also your mentioned options:
-- use of the MiniTool Partition Wizard with a primary FAT32 and a second primary ext4 partition
-- set "mmcblk1p2" for "Use custom dev block"
-- check "Use public vold"
Nothing helped so far. Still the same error.
By the way, I can see my second partition in the (rooted) Total Commander App (also in Android Settings, but there it is marked as damaged). And CM13 never asked me what to do with the second partition (only that it is damaged).
Any further ideas? Thanks in advance
Best regards
Formating SD card
What about formating the SD card as internal storage?
I haven't done it myself because I have a class 4 sd card and I'm afraid it's going to be slow but it seems like a good idea
Solution: Linking instead of moving
I could solve my problem
Instead of moving apps I linked them => works excellent!
Best regards
Eisbaer2
Im liking to use the new function of marshmallow, but i cant move hangouts to new partition.
Does someone know another way to move dont using apps2sd?

Categories

Resources