Swap Internal/External storages on 4.4 Kitkat - Galaxy S II Q&A, Help & Troubleshooting

with the massive overhaul that is kitkat, google changed alot of files, and therefore a new way must be discovered to switch internal/external storages.
The editing vold.fstab option from 4.1-4.2 no longer works as vold.fstab was removed in 4.3, and the editing build.prop method for 4.3 no longer works.
Anyone know how to do it for 4.4?
thanks in advance

No Luck So Far
Been working for hours trying to figure this one out. Things to note is that now there are two mount points.
1) /mnt/media_rw/sdcard1 / sdcard0 (this has the actual /dev/block/vold/179:1 origin
2) /dev/fuse /storage/sdcard1 / sdcard 0
I've been unsuccessful trying any of the old build.prop tweaks. Hopefully someone smarter will come along and bang this one out.

Bump..... Stuck on 4.3 till a solution arises
Sent from my GT-I9100 using XDA Premium 4 mobile app

I've asked the compiler of the NeatKernel if he would fork it and swap out the sdcards in fstab.aries, but have yet to receive a reply....
Perhaps if you two went and posted the same, it might motivate him to do so.

Me too
alkspo said:
Bump..... Stuck on 4.3 till a solution arises
Sent from my GT-I9100 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
You got Company!

vivin007 said:
You got Company!
Click to expand...
Click to collapse
Same here! I upgraded to 4.4 and then realised that the build.prop 's changes made in 4.3 doesn't work for 4.4. Downgrading to 4.3 till there is a solution.

Still no "real" solution. but pretty convenient for me.
@fusionjack integrated swap option in the rom i was using which is slimsaber, so now i have swap
unfortunately, its only for this rom unless other rom makers incorporate it as well

alkspo said:
Still no "real" solution. but pretty convenient for me.
@fusionjack integrated swap option in the rom i was using which is slimsaber, so now i have swap
unfortunately, its only for this rom unless other rom makers incorporate it as well
Click to expand...
Click to collapse
Good news, so it's not impossible, it's just about time to see the swap method for 4.4 floating around.

I found an application that allows you to move the data from games to external sdcard, but you have to run the game through the application to play it though. Its called gl to sd, your phone must be rooted though.
Sent from my GT-I9100 using xda app-developers app

anatoliy0813 said:
I found an application that allows you to move the data from games to external sdcard, but you have to run the game through the application to play it though. Its called gl to sd, your phone must be rooted though.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Yeah I know it, but DirectoryBind is better m8. Once it moves and link the data to external you can forget about it.

I've been trying to swap the storage on my note 2 on 4.3 can abtobetell me how to do this tried so many methods and nothing works. I would really appreciate some help guys. Thanks in advance

bigevil124 said:
I've been trying to swap the storage on my note 2 on 4.3 can abtobetell me how to do this tried so many methods and nothing works. I would really appreciate some help guys. Thanks in advance
Click to expand...
Click to collapse
Try file, called "fstab.sun6i" in / folder. I keep trying, but all the changes, I made was unstable...If I'll make some progress I'll write it down

Hi im not sure if this helps but someone released a script for cm11 to swap sdcards. Worked fine on resurection for me all I tested.the thread is somewhere in galaxy2 forum I posted to his thread so one of my last replys. I will find the link and edit
http://forum.xda-developers.com/showthread.php?t=2595756
Sent from my GT-I9100 using XDA Premium HD app

swap internal sd to external
Hello
did anyone come up to a solution for this or have any info about it?
i want to swap mine too and nothing seems to work on Kitkat
thank you

rictec said:
Hello
did anyone come up to a solution for this or have any info about it?
i want to swap mine too and nothing seems to work on Kitkat
thank you
Click to expand...
Click to collapse
Hi
on kitkat, you should unpack your boot.img file, update the fstab.* files inside, repack it, and flash it.
The way the img file is built depends on your device manufacturer. I did it successfully on my mtk tablet with the tools I found in this forum.
I am pretty sure that unpack/pack tools exist for samsung as well (for example: http://forum.xda-developers.com/galaxy-s3/help/how-to-unpack-split-samsung-boot-img-t1810907 )
Good luck in your search.

tried that but it failed
seb_131 said:
Hi
on kitkat, you should unpack your boot.img file, update the fstab.* files inside, repack it, and flash it.
The way the img file is built depends on your device manufacturer. I did it successfully on my mtk tablet with the tools I found in this forum.
I am pretty sure that unpack/pack tools exist for samsung as well (for example: http://forum.xda-developers.com/galaxy-s3/help/how-to-unpack-split-samsung-boot-img-t1810907 )
Good luck in your search.
Click to expand...
Click to collapse
thank you for you reply i already try that had some trouble to flash back the boot and when i manage to do it fstab got ignored
i m currently doing that with a boot script but have to run it every time the table reboots
its not a samsung is a storex A31 based device

rictec said:
thank you for you reply i already try that had some trouble to flash back the boot and when i manage to do it fstab got ignored
i m currently doing that with a boot script but have to run it every time the table reboots
its not a samsung is a storex A31 based device
Click to expand...
Click to collapse
You have to look for the dev kit dedicated to your processor. Have a look there : http://www.slatedroid.com/topic/73913-onda-kitchen-a31-a31s/
I have a mtk based device. I found the tools in this forum. I edited the 3 fstab.* files I found, and then all worked fine.

thank you
seb_131 said:
Hi
on kitkat, you should unpack your boot.img file, update the fstab.* files inside, repack it, and flash it.
The way the img file is built depends on your device manufacturer. I did it successfully on my mtk tablet with the tools I found in this forum.
I am pretty sure that unpack/pack tools exist for samsung as well (for example: http://forum.xda-developers.com/galaxy-s3/help/how-to-unpack-split-samsung-boot-img-t1810907 )
Good luck in your search.
Click to expand...
Click to collapse
seb_131 said:
You have to look for the dev kit dedicated to your processor. Have a look there : http://www.slatedroid.com/topic/73913-onda-kitchen-a31-a31s/
I have a mtk based device. I found the tools in this forum. I edited the 3 fstab.* files I found, and then all worked fine.
Click to expand...
Click to collapse
i have those thank you did not wanted to do a entire img just to change some files on boot but it looks like i have to maybe i do some more twicks and be great

Foldermount maybe a good solution
alkspo said:
with the massive overhaul that is kitkat, google changed alot of files, and therefore a new way must be discovered to switch internal/external storages.
The editing vold.fstab option from 4.1-4.2 no longer works as vold.fstab was removed in 4.3, and the editing build.prop method for 4.3 no longer works.
Anyone know how to do it for 4.4?
thanks in advance
Click to expand...
Click to collapse
Before 4.4 I could do it by "Android Internal to External sdcard" app, but this app couldn't do the trick on 4.4 KitKat OS, so "Foldermount" could be a good solution for you. All this app does is make a image of your apps (that you want to) to sdcard. The real files are located in external sdcard and only the clone file ( of max few KB) will residue at internal sdcard. If you are a gamer, this will help you until the real solution arrives.
Good Luck.

There is real solution! Or at least it works for me.
biopsin said:
Since Android 4.2 and the intro of multiusers there is a problem with bind folders across sdcards, making any attempt on mount bind folders as root would result in visible to root only.
Solution is to fool Android with temporary hijack debuggerd to create the mount binds for us. Thanks Chainfire for this workaround!
* Download both files and rename without .txt
* edit debuggerd.mnt to suit your needs (using any other dir then /emulated/legacy/ will result in read only if browsing folders from sdcard0)
* move debuggerd.mnt to /system/bin
* move mount.sh to any place with execute permissions
* execute mount.sh with any preferred method.
cheers!
Click to expand...
Click to collapse
Quoted from http://forum.xda-developers.com/showthread.php?t=2718760.
Thank You biopsin! Thank You Chainfire!
I'm including my files, but 'mount.sh' was not really changed in practical sense.
In case of 'debugger.mnt' it all depends on Your device. You need to check which block for You is internal and which external storage. Just 'mount' command should help.
You can also use it to mount only one folder - like 'obb', which will let You keep applications data on external card.
Just use "mount -o bind /storage/sdcard1/Android /obb /storage/sdcard0/Android/obb" command in debuggerd.mnt file.
You can also have different 'debuggerd.mnt' files (of course called somehow different - like 'debuggerd02.mnt') and different 'mount.sh' files which will let You mount different things whenever You like.
Enjoy!
-----
And for easier usage You can try $cripter - https://play.google.com/store/apps/details?id=sites.mjwhitta.scripter&hl=en .
It's the best I found.

Related

Storage/emulated/0/0/0 after flashing several ROM's

Hi is there a way to clean up these /0 directories who looks identical?
It add's an additional /0 directory in emulated every time I do a clean flash. Don't that use up my internal storage?
I'm using Temasek's cm 10.1 unofficial v83 + kernel but i don't think it has to do with the ROM
Is it safe to just delete these directories or is there any other way around this?
Sent from my GT-I9300 using xda premium
Klype said:
Hi is there a way to clean up these /0 directories who looks identical?
It add's an additional /0 directory in emulated every time I do a clean flash. Don't that use up my internal storage?
I'm using Temasek's cm 10.1 unofficial v83 + kernel but i don't think it has to do with the ROM
Is it safe to just delete these directories or is there any other way around this?
Click to expand...
Click to collapse
You need to upgrade your recovery application to the latest version to stop getting multiple /0 folders.
You only need one level of /0. And, yes you can delete the redundant levels. But make sure your files under the last level are copied to the sole remaining level.
/0 level came in with multi-user support in 4.2
Sent from my GT-I9300
BillGoss said:
You need to upgrade your recovery application to the latest version to stop getting multiple /0 folders.
You only need one level of /0. And, yes you can delete the redundant levels. But make sure your files under the last level are copied to the sole remaining level.
/0 level came in with multi-user support in 4.2
Sent from my GT-I9300
Click to expand...
Click to collapse
Thanks for answering
I've flashed cwmtouch 6.0.2.8 awhile ago and the levels of /0's stopped adding up.
I've copied all the files from the last levels to emulated/0.
Then i deleted the files from the last levels except one made by a rom i had several months ago. It can't seem to be deleted because of some elevated permissions. I've tried with several Explorer's with no luck.
How do I get around to change permissions or simply get rid of former systemfiles not in use anymore?
Sent from my GT-I9300 using xda premium
Klype said:
Thanks for answering
I've flashed cwmtouch 6.0.2.8 awhile ago and the levels of /0's stopped adding up.
I've copied all the files from the last levels to emulated/0.
Then i deleted the files from the last levels except one made by a rom i had several months ago. It can't seem to be deleted because of some elevated permissions. I've tried with several Explorer's with no luck.
How do I get around to change permissions or simply get rid of former systemfiles not in use anymore?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
You can try with philz recovery and aroma file manager inside the recovery, see first posts of thread.
and please search next time, this has been discussed way too much
Klype said:
Thanks for answering
I've flashed cwmtouch 6.0.2.8 awhile ago and the levels of /0's stopped adding up.
I've copied all the files from the last levels to emulated/0.
Then i deleted the files from the last levels except one made by a rom i had several months ago. It can't seem to be deleted because of some elevated permissions. I've tried with several Explorer's with no luck.
How do I get around to change permissions or simply get rid of former systemfiles not in use anymore?
Click to expand...
Click to collapse
Use terminal. Then remove the folder using the 'rm -rf' command. You may need to read up on this if you aren't familiar with Linux commands.
Sent from my GT-I9300
Back you files up to a PC, then boot to recovery and format /sdcard. That will remove all the 0/0/0/0/0/0 folders, then boot and copy your files back.
BillGoss said:
Use terminal. Then remove the folder using the 'rm -rf' command. You may need to read up on this if you aren't familiar with Linux commands.
Sent from my GT-I9300
Click to expand...
Click to collapse
Yes i might have to read up a bit on terminal commands if i should have a chance to use it...
Sent from my GT-I9300 using xda premium
Glebun said:
and please search next time, this has been discussed way too much
Click to expand...
Click to collapse
Actually i did search but didn't understand what to do and what to search for. Thats why i finally asked the question here in the Q n A section. The search motor in the android app is also really difficult to search with.
Sent from my GT-I9300 using xda premium
delsus said:
Back you files up to a PC, then boot to recovery and format /sdcard. That will remove all the 0/0/0/0/0/0 folders, then boot and copy your files back.
Click to expand...
Click to collapse
Thanks that's a good idea
At least it solve my problem for now till i learn more about using the terminal
Sent from my GT-I9300 using xda premium
Striatum_bdr said:
You can try with philz recovery and aroma file manager inside the recovery, see first posts of thread.
Click to expand...
Click to collapse
I flashed aroma file manager and it worked like a charm
Thanks for pointing me in this direction now everything works as it should :thumbup:
Sent from my GT-I9300 using xda premium
Klype said:
I flashed aroma file manager and it worked like a charm
Thanks for pointing me in this direction now everything works as it should :thumbup:
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
hi..
i have the same pb.. can u pls assist me how can u solve it..?
my sinternal storage is now storage\emulated\0
wbr..
t-mobile_mda said:
hi..
i have the same pb.. can u pls assist me how can u solve it..?
my sinternal storage is now storage\emulated\0
wbr..
Click to expand...
Click to collapse
Yes look here http://forum.xda-developers.com/galaxy-s3/general/info-flashed-4-2-sdcard-data-t2274218

[GUIDE]How to DualBoot on all devices/android versions

Hi guys,
This is a dump proof method
To dual boot any ROMs on any device. It's originally made for the LG Optimus 3D but works for everyone with bootloader unlocked.
1. Boot into recovery and create 3 partitions on the external or internal SD card with parted. Look at the guide in my signature for how to do that step by step.
2. Unpack a boot image and edit the mountpoints in the ramdisk to the new created partitions. (They're in init.rc or in the fstab file e.g Cosmo.fstab).
3. Put the ramdisk again together with kernel.
4. Open the updater-script in a zip and change the mount lines to the new partitions.
5. Flash the ROM and the new bootimage, then reboot
Will make this guide more easier to understand and with more details soon. Everything can be made automatically with scripts but that's nothing for me cause I'm to lazy ;D
There easier ways but this one is working for all devices and is real DualBoot and can be used for much more then two ROMs if there is enough space free.
Sent from my LG-P920 using xda app-developers app
After trying to make dual-boot kernels for android versions prior to JB, I've come to the conclusion that in those ROMs the external SD is not detected early enough in the boot sequence, so redirecting the mountpoints there results in a phone stuck in bootanimation. Conclusion (at least for the Optimus 3D) is that for ICS or earlier versions, it's only possible to dual-boot by partitioning the internal SD. Can you confirm that?
Sent from the 3rd dimension!
@berni987654321
Will make this guide more easier to understand and with more details soon.
Click to expand...
Click to collapse
You didn't.
I hope one day you will explain it better, I would like to make a dual boot for my device
waiting for easier guide......
princemouli said:
waiting for easier guide......
Click to expand...
Click to collapse
Here it is!
Sent from the 3rd dimension!
dreccon said:
Here it is!
Sent from the 3rd dimension!
Click to expand...
Click to collapse
thanks brother guide was owesome ......
going to try it soon.....

Can't delete files from my external memory card through file explorer

I have tried a lot of custom Roms. I'm on Neat ROM Lite now. Not sure which ROM changed my file access permission settings to cause this problem but I'm not able to delete any files from my external memory card. I was able to delete when I was on stock rom. The other problem is for a few apps I get an error message which says can't install on usb/sd card. I have posted this in another thread
some time back but got no response. Some one please point me in the right direction.
This is what my file permission looks like.
PS: I am able to delete when my fone is connected to PC via USB. So I don't think it has anything to do with a faulty sd card.
pavitar said:
I have tried a lot of custom Roms. I'm on Neat ROM Lite now. Not sure which ROM changed my file access permission settings to cause this problem but I'm not able to delete any files from my external memory card. I was able to delete when I was on stock rom. The other problem is for a few apps I get an error message which says can't install on usb/sd card. I have posted this in another thread
some time back but got no response. Some one please point me in the right direction.
This is what my file permission looks like.
PS: I am able to delete when my fone is connected to PC via USB. So I don't think it has anything to do with a faulty sd card.
Click to expand...
Click to collapse
file permissions are 775, try changing them to 777(all boxes ticked)
for future refference he is my support thread Ricky310711 AllInOne Support Thread
ricky310711 said:
file permissions are 775, try changing them to 777(all boxes ticked)
for future refference he is my support thread Ricky310711 AllInOne Support Thread
Click to expand...
Click to collapse
Can you please tell me, how to apply a file permission? I tried checking the box which is not checked in the snapshot shared, but that too gives an error.Says "Operation failed"
pavitar said:
Can you please tell me, how to apply a file permission?
Click to expand...
Click to collapse
download mobile terminal from playstore
Hey I know its been quite sometime now.but as ur advice I downloaded mobile terminal and now have to run the following command everytime I boot my fone:
mount -o rw,remount -t/yaffs2 /storage/extSdCard
Otherwise i do not get rw access to my external sd.Istn't there a permanent solution to this? Also I fail to understand what changed my permissions and why does this persist across all the new roms I flash?
Sent from my GT-I9100 using xda app-developers app
Wanamlite ->Slim Bean 4.2.2 ->NeatRom Lite -> wanamlite
pavitar said:
Hey I know its been quite sometime now.but as ur advice I downloaded mobile terminal and now have to run the following command everytime I boot my fone:
mount -o rw,remount -t/yaffs2 /storage/extSdCard
Otherwise i do not get rw access to my external sd.Istn't there a permanent solution to this? Also I fail to understand what changed my permissions and why does this persist across all the new roms I flash?
Sent from my GT-I9100 using xda app-developers app
Wanamlite ->Slim Bean 4.2.2 ->NeatRom Lite -> wanamlite
Click to expand...
Click to collapse
Create a blank file and type that command in it. Now save it and rename it to 95mountsd with no extension
Now, if you have init.d support, place it in /system/etc/init.d and reboot
Command will run on every boot itself
Thank you, it worked. Now could please have a look at my other issue, in this post I'd be really thankful.
Can you please tell me what could be the reason for my default rw settings to change, coz I remember when I had stock os I never had to do all this.
iamareebjamal said:
Create a blank file and type that command in it. Now save it and rename it to 95mountsd with no extension
Now, if you have init.d support, place it in /system/etc/init.d and reboot
Command will run on every boot itself
Click to expand...
Click to collapse
pavitar said:
Thank you, it worked. Now could please have a look at my other issue, in this post I'd be really thankful.
Can you please tell me what could be the reason for my default rw settings to change, coz I remember when I had stock os I never had to do all this.
Click to expand...
Click to collapse
Sorry, i'm not good at hardware stuff
Maybe the ROMs aren't mounting that special kind of partition your sdcard is having
FAT32 format works universally
yaffs2 may not
I'm not sure
iamareebjamal said:
Sorry, i'm not good at hardware stuff
Maybe the ROMs aren't mounting that special kind of partition your sdcard is having
FAT32 format works universally
yaffs2 may not
I'm not sure
Click to expand...
Click to collapse
Hey I have switched back to stock rom and I've rooted it by flashing philz kernel. Now I don't see init.d in my /system/etc , where do I place this 95mountsd in this case?
pavitar said:
Hey I have switched back to stock rom and I've rooted it by flashing philz kernel. Now I don't see init.d in my /system/etc , where do I place this 95mountsd in this case?
Click to expand...
Click to collapse
Try this
https://play.google.com/store/apps/...&utm_medium=organic&utm_term=universal+init.d

Archos Arnova AN7GH3 (7h G3) Need help

Hey there guys!
Well this is gonna sound a bit ridiculous but I've actually deleted Launcher2.apk and SystemUI.apk instead of copied them (stupid yeah I know I could eat my face off right now...) and I need them back. There's no official ROM available for download which pretty much sucks so I can't get them anywhere. So if anyone here has the same tablet as me, consider sharing those two system apps with me.
Thanks.
Benzonat0r said:
Hey there guys!
Well this is gonna sound a bit ridiculous but I've actually deleted Launcher2.apk and SystemUI.apk instead of copied them (stupid yeah I know I could eat my face off right now...) and I need them back. There's no official ROM available for download which pretty much sucks so I can't get them anywhere. So if anyone here has the same tablet as me, consider sharing those two system apps with me.
Thanks.
Click to expand...
Click to collapse
I am surprised that there isn't any restore system. Looks if you have a kernel menu with touch combinaison. Like us with power on button + vol up.
Bizcuite
Sent from my GT-N7100 using xda app-developers app
Well I can get into recovery easily but it's useless, can't mount external sd card so I can't flash anything.
Benzonat0r said:
Well I can get into recovery easily but it's useless, can't mount external sd card so I can't flash anything.
Click to expand...
Click to collapse
Just to be sure you have no way to reflash any firmware?
Else try to connect your tab to your computer and use adb even if your system bootloop. Try to install adb and push your missing files.
I doubt that there are no firmwares to download.
If they havr used the same boot like archos. The mount of the sdcard depend of the initramfs (ramdisk) not the OS.
Bizcuite
Sent from my GT-N7100 using xda app-developers app
bizcuite said:
Just to be sure you have no way to reflash any firmware?
Else try to connect your tab to your computer and use adb even if your system bootloop. Try to install adb and push your missing files.
I doubt that there are no firmwares to download.
If they havr used the same boot like archos. The mount of the sdcard depend of the initramfs (ramdisk) not the OS.
Bizcuite
Sent from my GT-N7100 using xda app-developers app
Click to expand...
Click to collapse
It's not in a boot loop it just hangs at "bootanimation" (If you'd call it that I know I wouldn't) and wham stays like this forever.
Oh and another problem.
Code:
adb shell
- exec '/system/bin/sh' failed no such file or directory (2) -
Can't push files from recovery because I need to mount /system. I can't do that because adb shell isn't working.
I don't see 7h G3 anywhere, see for yourself.
http://arnovatech.com/support/updates_fwm.html?country=gb&lang=en
Benzonat0r said:
Hey there guys!
Well this is gonna sound a bit ridiculous but I've actually deleted Launcher2.apk and SystemUI.apk instead of copied them (stupid yeah I know I could eat my face off right now...) and I need them back. There's no official ROM available for download which pretty much sucks so I can't get them anywhere. So if anyone here has the same tablet as me, consider sharing those two system apps with me.
Thanks.
Click to expand...
Click to collapse
I have the same tablet, if you need these two files ... here they are: View attachment Launcher2.apk
View attachment SystemUI.apk
Just in case when still struggling or for future need:
unbrick-and-reflash-arnova-7h-g3-solved

Getting INT2EXT4 working on M4?

Good afternoon. As the 8 GB aren't enough for me, I've been looking for a solution. While doing so, I found the INT2EXT4 script, which mounts /data on the second partition of the SD card. The first time I flashed it (after enabling init.d support with an app) it didn't work at all. Then, I realised this script is written assuming that the second partition of the card is mmcblk0p2. But on the M4, it's mmcblk1p2 (found it out with another app).
I changed those lines on the script, but it didn't work either. I analyzed all the lines, and I can't see where the problem could be. Has anyone tried this, or could somebody help me with this issue? I think it could be really useful for a lot of users.
Another thing: flashing the file through TWRP gave me an error, so I copied the file directly to /system/etc/init.d and set the permissions manually. I hope this is not a problem, but let me know if it could be...
sounds interesting... ill take a look at it soon!
Have you checked the "adress" of internal sd? In the script there is a connection between internal and external storage so i would assume that both "adresses" need to be correct in order for the script to work. Just an opinion....
Sent from my SM-G901F using XDA Free mobile app
vader20 said:
Have you checked the "adress" of internal sd? In the script there is a connection between internal and external storage so i would assume that both "adresses" need to be correct in order for the script to work. Just an opinion....
Sent from my SM-G901F using XDA Free mobile app
Click to expand...
Click to collapse
several1989 said:
sounds interesting... ill take a look at it soon!
Click to expand...
Click to collapse
I think there's a problem with the commands that the script uses. If I try to do umount from the terminal, nothing happens. So maybe the script doesn't work in this phone, but if any of you are able to make it do so, let me know. So I think it's better to build the kernel from source, but before that make changes in the fstab file. With that, /data will be mounted at the second partition of the sdcard directly at boot time. Trying to do this now, but I'm facing some difficulties building the kernel. If I make it work, I'll post it
Testé folder Mouth playstore

Categories

Resources