binding a directory from sdcard to internal - Galaxy S 4 Q&A, Help & Troubleshooting

what is the command to bind an sd card directory to internal on the s4? i dont want to pay for foldermount or any solution, the s4 should let you move all data but it doesn't
can anyone help?

mox123 said:
what is the command to bind an sd card directory to internal on the s4? i dont want to pay for foldermount or any solution, the s4 should let you move all data but it doesn't
can anyone help?
Click to expand...
Click to collapse
It's not so simple. With the data layout on 4.2.2 you need a custom module to mount it correctly which folder Mount has. .. Don't be a tight ar*se buy the app!
Sent from my GT-I9505 using Tapatalk 2

Related

p-3113 Swap ExternalSDCard 2 Internal

Here's a script I modified originally its a script written by mattiadj so I gotta give him props
Here's his thread its for the Galaxy S III I think - http://forum.xda-developers.com/showthread.php?t=1772234
This will make your external SDcard as Internal and your Internal SDCard external
It mounts data/media to your extSdcard
Please make a backup before you do this, just in case.
Let me know if you have any problems
1. Anyway.. you will need to place this script in your /data folder (Yes you need to be rooted)
2. Next use ES file manager and give it 777 permission (For the non-linux users, that's full permission on it, Read, write, execute for just user)
-----------------to do this with ES file manager just press and hold down on the file and look at its properties. At the bottom you can see Permissions, hit the Change button and check-mark everything for user
3. Use Smamager (Download it if you dont have it, ... .its free) and goto the script file and open as script/execute, then when it opens choose "Is executable" and then click "Su" & "Boot". Click "Save".
4. Reboot and enjoy.
To go back to the normal setup just delete the script or open it back up in smanager and clear the SU & Boot options.
In order for some apps to function properly you will have to copy some folders from your old internal sdcard to your "New" one.
For example.. aptoide wouldnt work until the aptoide repos folder was copied over. If you want you can just copy over everything to be safe. I on the other hand just picked and chose what I needed
xalien8dx said:
2. Next use ES file manager and give it 777 permission (For the non-linux users, that's full permission on it, Read, write, execute for everyone)
-----------------to do this with ES file manager just press and hold down on the file and look at its properties. At the bottom you can see Permissions, hit the Change button and check-mark everything
Click to expand...
Click to collapse
IMO, this is terrible advice. The script is probably getting run as root, and you're opening it up to be written by anyone. Imagine if malware edited the script? Think of what malware could do if it had root access...
Sent from my Galaxy Tab 2
imnuts said:
IMO, this is terrible advice. The script is probably getting run as root, and you're opening it up to be written by anyone. Imagine if malware edited the script? Think of what malware could do if it had root access...
Sent from my Galaxy Tab 2
Click to expand...
Click to collapse
Changed it to just user read, write, execute..
thanks
So, after this what happens to the internal SdCard. Does it, or is it still being used, and if so for what...?
^ same ? and has anyone tested this and is it safe?
All this is is a modded script from mattiadj. It was written for the GS3, so I changed it to work on the 3113 tablet
Here is what it does quoted from mattiadj
My aim was to use the external sd as internal sd and the original internal sd ONLY for apps installation.
So now my 64gb external sd is used for all tasks which the internal sd was used and the original internal sd is only used for apps storage!! All extra files (resources, caches, etc etc) are stored in my external SD, which is now mounted as internal
Click to expand...
Click to collapse
The original internal sdcard is mounted by default from the system as /data/media as well as /sdcard and mnt/sdcard
so with this script it puts data/media as extSDCard and /sdcard and /mnt/sdcard are mounted to the original external SDcard
you can still access the internal SDcard from data/media or /extSDCard or mnt/extSDcard
my code
Code:
sleep 5
mount -o remount,rw /
mount -t vfat -o umask=0000 /dev/block/vold/179:25 /mnt/sdcard
sleep 5
mount -o bind /data/media /mnt/extSdCard
this can be easily modified to work on other systems.
Hope this helps,
N8
Tried this out last night. For me it works only if run manually... After reboot, I get long "checking SD for errors" and when it actually mounts SD it gets mounted twice- as both internal sdcard and extSdCard.
Sent from my GT-P3100 using Tapatalk 2
I ran this with SCript Manager (Play Store) and it works great on my p3113. My External SD card was mounted as internal and my Internal Memory was mounted as ExternalSDcard. I am going to love having this script!
If your having problems with it mounting as your internal and external try unmounting/remounting your external card in settings under storage. Or if your skilled enough try changing the second sleep value in the script to a higher number like 10 that should fix it
Works famously. For the apps that have issues just clear data under settings and it seems to be golden.
Sent from my GT-P3113 using xda app-developers app
I haven't done anything quite like this before but I have a use in mind. My GPS program, Sygic, puts the mapset on the internal sd card. Just the Western USA states are 500 mb If I get this running, and have Sygic do it's normal install, will the mapset to to the 32 GB MicroSD card that I have?
king200 said:
I haven't done anything quite like this before but I have a use in mind. My GPS program, Sygic, puts the mapset on the internal sd card. Just the Western USA states are 500 mb If I get this running, and have Sygic do it's normal install, will the mapset to to the 32 GB MicroSD card that I have?
Click to expand...
Click to collapse
It should. For example, I use Amazon MP3 and when I downloaded a song before they went to the internal card. Now they are stored on the external. The device reads your external as though it is the internal.
Sent from my GT-P3113 using xda app-developers app
so is there Anyway on how to force this to start on boot?
Sent from my GT-P3113 using xda app-developers app
kdog48 said:
so is there Anyway on how to force this to start on boot?
Sent from my GT-P3113 using xda app-developers app
Click to expand...
Click to collapse
Yes
in script manager choose su and boot. If you follow the first post it will execute on boot. Or if you have a rom with init.d support place this script in your /etc/init.d folder, I dont have a rom with init.d support so I dont know if that would work but it should. If someone could test this and let me know I would appreciate it. Im not sure if you still have to set permissions to execute on it.
Well I've had problems downloading certain apps to SD it says insufficient memory delete 0mb of data so I actually will just manually use it haha
Sent from my GT-P3113 using xda app-developers app
Working 100% using a 32GB memory card! thanks for this!
hi guys
is applicable to 2 10.1 GalaxyTab P5100?
requires Android 4.1.1 or 4.0.4. ?
Thank you.
If this works, I will name my next born child after you!
Anyway, I would like to know if this will work on Cyangenmod 9.0.0? Or will it only work on the stock rom. I have my old stock rom of 4.0.4 saved if I need to go back... because I will if this works.
does root explorer have the 'su boot' option? never used it to run scripts...:silly:
I already used the thank link... but stilll thank you so, so much! I just recently got my 8gb 3113... needless to say, I REALLY needed some space. If any, it was a good lesson for me to definitely choose the 16GB Nexus 4.
MadDogE134 said:
does root explorer have the 'su boot' option? never used it to run scripts...:silly:
Click to expand...
Click to collapse
It's from SManager.

Swap Internal SD with External SD?

If anyone wants to take a crack at it, here's the script that worked on the Galaxy S3 mini. I've tried switching around the addresses in /dev/block/vold with no success.
Might not be hard. I don't have a GS4 though.
Go to /system/etc in your favorite file explorer and open vold.fstab as text and post the contents in Pastebin and link here.
ChronoReverse said:
Might not be hard. I don't have a GS4 though.
Go to /system/etc in your favorite file explorer and open vold.fstab as text and post the contents in Pastebin and link here.
Click to expand...
Click to collapse
I'll do better than that. Here's my vold.fstab file.
OP,
what path to put in directory bind? cant wait to try games I used to play on NOTE 2 using data INT2EXT script.
blackknightavalon said:
I'll do better than that. Here's my vold.fstab file.
Click to expand...
Click to collapse
Hmm, it's different from previous devices like the Note 2 and GS3. No wonder the script doesn't work.
Could you look in /storage and see what folders are in there? And then do the same for /storage/extSdCard
If you're feeling brave, have root and have a custom recovery with working nandroid, you could try replacing this line (I TAKE NO RESPONSIBILITY FOR THIS):
Code:
dev_mount sdcard /storage/extSdCard auto /devices/platform/msm_sdcc.4/mmc_host/mmc2/ /devices/platform/msm_sdcc.2/mmc_host/mmc2/
with this:
Code:
dev_mount sdcard /storage/extSdCard auto /devices/platform/msm_sdcc.2/mmc_host/mmc2/ /devices/platform/msm_sdcc.4/mmc_host/mmc2/
after you backup your ROM first.
ChronoReverse said:
Hmm, it's different from previous devices like the Note 2 and GS3. No wonder the script doesn't work.
Could you look in /storage and see what folders are in there? And then do the same for /storage/extSdCard
If you're feeling brave, have root and have a custom recovery with working nandroid, you could try replacing this line (I TAKE NO RESPONSIBILITY FOR THIS):
Code:
dev_mount sdcard /storage/extSdCard auto /devices/platform/msm_sdcc.4/mmc_host/mmc2/ /devices/platform/msm_sdcc.2/mmc_host/mmc2/
with this:
Code:
dev_mount sdcard /storage/extSdCard auto /devices/platform/msm_sdcc.2/mmc_host/mmc2/ /devices/platform/msm_sdcc.4/mmc_host/mmc2/
after you backup your ROM first.
Click to expand...
Click to collapse
Under /storage, I have the following:
container
emulated
extSdCard
sdcard0
UsbDrive (lettered A through F)
Click to expand...
Click to collapse
extSdCard is just my SDcard, and the T-Mobile version doesn't have custom recovery yet.
Hello! Any updates??
BUMP!!! Any updates??
No, but I'm going to try to tweak the script again in a day or two.
Okay, this is the error I'm getting with a modified script. Anyone want to take a crack at it?
The script itself, functional or otherwise, needs to be dropped in /data and you'll need to chmod it to 777.
Working on It also
I've been working on it as well. Samsung has heavily modified the vold.fstab file. They no longer use vold.fstab to mount the internal sdcard storage. We need to find where the file that contains their mounting of the internal sdcard is. We won't be able to swap until we find that file. I am looking.... I strongly recommend not using the script for the Galaxy S3. I compared the S3 vold.fstab and S4 vold.fstab and they are significantly different!
I would be VERY interested to know if or when a swap script is out..
I have had my SGS4 i9505 for 2 days.. And it is almost out of internal card space
Any updates on this one yet ?
@OP.: buddy, what i thought is you must do changes in Vold.fstab file first. I know after changing your mobile be lilbit unstable due to system setting & storage crashing. But then you can provide the logcat. Then we can check the same.
BTW, I have successfully swapped the memories of Galaxy R CM version. But if you could do the changes then I can help you out..
Reply me then I can send you codes via PM.
The latest firmwares do allow you to place games on your sd card.
No need anymore for that script
Sent from my GT-I9505 using xda premium
Sammath said:
The latest firmwares do allow you to place games on your sd card.
No need anymore for that script
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
It can allow you to shift the application not the whole data.
* *
http://forum.xda-developers.com/showthread.php?t=1772234
Sent from my GT-I9500 using xda app-developers app

[Q] Make external sdcard show up under internal storage

Is there a way to basically create a symlink to /storage/extSdCard on the internal sdcard? I'm using an app that will only let me view files on the internal card. I'm coming from an HTC phone and the external sd card appeared as /sdcard/ext_sd.
I've tried creating the symlink through Root Explorer, Solid Explorer, and manually via adb (with root). I've tried every location I can find for the internal storage (/storage/emulated/legacy, /storage/emulated/0, /sdcard). Every time it says "link failed Operation not permitted".
I'm wondering if there's a way I can basically mount the external sd card in an additional location (in this case under the internal sdcard)? I've used a custom firmware on a router before that had a flash drive mounted as both /opt and /media/USB, so I think it's possible to have a partition mounted in multiple places.
Does anyone know how to do this, or have suggestion for a different way to accomplish it? Thanks.
Would this help you?
http://forum.xda-developers.com/showthread.php?t=2285221
TrofeoSC said:
Would this help you?
http://forum.xda-developers.com/showthread.php?t=2285221
Click to expand...
Click to collapse
Thanks, but I already looked into that. It won't work for this unfortunately.
Please read forum rules before posting
Questions and help issues go in Q&A and help
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator
Ingenium13 said:
Is there a way to basically create a symlink to /storage/extSdCard on the internal sdcard? I'm using an app that will only let me view files on the internal card. I'm coming from an HTC phone and the external sd card appeared as /sdcard/ext_sd.
I've tried creating the symlink through Root Explorer, Solid Explorer, and manually via adb (with root). I've tried every location I can find for the internal storage (/storage/emulated/legacy, /storage/emulated/0, /sdcard). Every time it says "link failed Operation not permitted".
I'm wondering if there's a way I can basically mount the external sd card in an additional location (in this case under the internal sdcard)? I've used a custom firmware on a router before that had a flash drive mounted as both /opt and /media/USB, so I think it's possible to have a partition mounted in multiple places.
Does anyone know how to do this, or have suggestion for a different way to accomplish it? Thanks.
Click to expand...
Click to collapse
I use the FolderMount app. https://play.google.com/store/apps/details?id=com.devasque.fmount&hl=en
I use it to create a symlink between the directory in data/data where Google Music stores files and my external SD card.
screwdestiny said:
I use the FolderMount app. https://play.google.com/store/apps/details?id=com.devasque.fmount&hl=en
I use it to create a symlink between the directory in data/data where Google Music stores files and my external SD card.
Click to expand...
Click to collapse
Thanks, but I've already tried it and it won't work for this situation.
I found the solution, registered just so I can share this with you or anyone who needs it. Folder mount didn't seem to work for me either.
There is a file manager called 'Lidroid File' and a plugin for it called 'Super mount', both are available for free from the play store.
Install them, and then you can nicely pick a folder on the internal storage to mount the whole microSD in it, simple as that!
I needed this for Samba file sharing as I wanted to see the SDcard on the LAN and give it a network drive letter under windows 7.
Firsh said:
I found the solution, registered just so I can share this with you or anyone who needs it. Folder mount didn't seem to work for me either.
There is a file manager called 'Lidroid File' and a plugin for it called 'Super mount', both are available for free from the play store.
Install them, and then you can nicely pick a folder on the internal storage to mount the whole microSD in it, simple as that!
I needed this for Samba file sharing as I wanted to see the SDcard on the LAN and give it a network drive letter under windows 7.
Click to expand...
Click to collapse
Any updates to your solution? Does this still work?

Mount2sd Don't work

Hello, i tryed to swap the internal memory with the external memory using mount2sd app but now the rom don't boot and it blocked i must reflashing my rom..
is there a way to swap the internal to external memory with another app like mount2sd or is there a way to move all internal storage in the sd card?
or it don't work with the samsung galaxy note 10.1 2014 edition tablet?
thanks for the answers
angel9999l5 said:
Hello, i tryed to swap the internal memory with the external memory using mount2sd app but now the rom don't boot and it blocked i must reflashing my rom..
is there a way to swap the internal to external memory with another app like mount2sd or is there a way to move all internal storage in the sd card?
or it don't work with the samsung galaxy note 10.1 2014 edition tablet?
thanks for the answers
Click to expand...
Click to collapse
There's a app called (root) folder mount in market.Theres a free version or paid version.I use that to mount all my game data to my ext. Sd card.The free one let's you mount 3 folders, the paid let's you mount as many as you want.You can run it and go to app analyzer in it and it shows all the folders and how big they are.You click on what ones you want to move and it creates folders on ext.sd card and moves all the data.
It's very easy to use and you can swap out any folder you want.
There's a app called (root) folder mount in market.Theres a free version or paid version.I use that to mount all my game data to my ext. Sd card.The free one let's you mount 3 folders, the paid let's you mount as many as you want.You can run it and go to app analyzer in it and it shows all the folders and how big they are.You click on what ones you want to move and it creates folders on ext.sd card and moves all the data.
It's very easy to use and you can swap out any folder you want.
Click to expand...
Click to collapse
Hello, thank for the answer, finaly i maked mount2sd to work i just needed to wait 10 minutes after reboot (its why i thinked it don't work itwas stuck at samsung logo)
But the problem is now the ext3 partition is hidden and don't appear in parameter/stockage but it work all data was moved in. Is there a way to make the ext3 partition visible in parameter/stockage? All partition is visible in titanium backup
Or i will try folder mount if it more simple, thank for the answer!
Have a nice day!

mount folder from external sdcard in internal sdcard

hi,
some apps store there data on the internal sdcard without the possibility to change the folder. i'be tried the app foldermount and could mount some foldern from the external sdcard to the internal sdcard, so the apps don't know that there store there data on /storage/sdcard1. but how can i do this without an extra app? i now that i can start scripts after android start. so i've tried this in terminal emulator
Code:
mount -o bind /storage/sdcard1/folder /storage/sdcard0/folder
but it doesn't work: "mount: Operation not permitted". how can i do this?
i use stock 4.4.2 (rooted)
gene
You missed su at the beginning of your command
Sent from my Xperia Z2 using Tapatalk
yes, thanks.
but now there is the error "bad option". whats that?
gene2 said:
yes, thanks.
but now there is the error "bad option". whats that?
Click to expand...
Click to collapse
I am using GL2SD app for that purpose. all the games data is in my sd card.
Not too sure what you are up to, but would symlinking work?
Sent from my D6503 using XDA Free mobile app
Maybe, but i think the extsd is fat32 and i'm not sure android can use ext formated sdcards. Fat32 doesn't support symbolic links.
I don't understand what 'bad option' mean.
I use Folder Mount for this purpose. It can move anything (per app obb/data)to external. Try it. if you like it... buy it (3 links max in free version)
Does require root though!
At the moment i use it too. but this is an extra app i have to install. Mounting with script should be the better way - but it doesnt work.

Categories

Resources