yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] spearoid:
If you want to reroute data/data folders to your SD card, just make a symbolic link.

If your card is FAT32, it will not work, but if it is exFAT you can do it.

It's how I have my Google Music on my SD card.

If your card is FAT32 and you wish it wasn't and you're on AOSP, go here! http://xdaforums.com/showthread.php?t=2155363

If you're already on exFAT:

0. Open ROM Toolbox > Root Browser

1. Make a folder in your desired location (sdcard) called "Music" or something to that sort.

2. Tap and hold, select the option "Create Shortcut" at the bottom

3. Navigate to /data/data/com.google.android.music/

4. Paste (to create the shortcut)

5. Delete the "files" folder in this directory

6. Rename the shortcut to "files"
[Galaxy S II Themes and Apps] 911-Future_Maker:
What a cool info man! Many thx.

My card is in Fat32, but I think that AOSP flashable zip should work for me - I'm on AOKP.
[Galaxy S II Themes and Apps] jshx2:
Worked great, now i need help

Directory bind was working awesome even when i restarted it. Somehow I accidentally uninstalled directory bind and now that I reinstalled it the list disappears every time I restart my phone. The links show and the games will work untill I reboot now then links disappear-games fail to load. The bind on boot and alt dbase mgmt are both checked. Cant figure it out. Please help, any knowledge would be greatly appreciated! Thanks!!
[Galaxy S II Themes and Apps] spearoid:
No problem. I've been living the dream ever since that great scripter produced a solution to the FAT32 limitation on AOSP. It was the only thing keeping me on TW. Carbon ROM is what I'm on. I love it. Was a huge fan of aokp on my last phone though so I'm sure it's great too.

Directory Bind no longer works on 4.2 though. There are some workarounds I've been made aware of but they're very technical and I haven't tried them yet
[Galaxy S II Themes and Apps] seriosbrad:
Hey guys,

I got Shadowgun to work fine with this app, has anyone tried Max Payne? Upon attempting to launch Max Payne, it just kicks back to the App Drawer :(

Note 2 on CM10.1 (4.2.2)
[Galaxy S II Themes and Apps] 911-Future_Maker:
Yeah Carbon is good rom, I tried it as second rom a few days ago, love the settings area. :D

Hi mate, I didn't played Max Payne, but are you manual copy the data or the game is downloading the files itself? Try to bind the folders first and then copy/download the files.
[Galaxy S II Themes and Apps] HMkX2:
I doubt that. :) Tech should be working for you, you shouldn't be working for the tech. If you ever are, you should ditch it and use something else.

Directory Bind no longer works on 4.2 though. There are some workarounds I've been made aware of but they're very technical and I haven't tried them yet​

BTW, there are fixes, technical is a relative term. I created a workaround to the 4.2 issue and it is what I use. I even attached my proxy wrapper at the bottom of the project so people could play with it.

...

Ok, I'm going to threadjack a bit here. I'm the person who wrote that script. However, I have been informed that there would be more demand for an app like this one -- and slig has been MIA for a little over a year. When I check out Google, I see a bunch of bad instructions on blogs, and people making a bunch of incorrect statements. (Particularly regarding 4.2)

As an example, I rebound inside data/data manually -- worked fine. It's just that this tool is broken because of the zygote-restricted-slave-mountspace bug/feature. Most of the problems seem to come from the lack of a GUI, not the lack of it being possible.

I see a need for a New Unified Volume Daemon (NuVold). Something that is (1) GUI/Play Store based (2) portable across devices + integrates in Android Storage Manager for SD (3) mounts + repairs wacky filesystems (4) on partitioned devices (5) can rebind directories (6) softlink/install apps to SD card. [Swapping internal/external storage is not needed (and pointless) if something can do (5) and (6) in a user-friendly way.]

Currently, multiple utilities do each in a semi-broken and nonconsistent way. (Paragon broken on 4.2, my script can sorta do 2-5 but via command line, Directory Rebind broken, ExtSd2InternalSd hijacks mount at boot...)

Essentially, I am proposing a merger of my "fuse-mountsd", "Super APP2SD", "Directory Rebind", "Paragon's FS App" (the execution, not the proprietary stuff), "StickMount", "ntfs-3g", and "exfat-fuse". This is possible, but would require a lot of work. Plus there's no way you could charge for it, given all the chefs.
[Galaxy S II Themes and Apps] NoSubstitute:
Sv: [TOOL] DirectoryBind - move data to external_sd (GameLoft, Shadowgun etc.) ROOT r

Best of luck with that.

Making things both work and easier to use is rarely considered a bad idea. :)
[Galaxy S II Themes and Apps] spearoid:
Oh. I'm quite happy! By the way I did not consider that script you sent me "very technical" :). I considered that link you sent me that offered workarounds for the 4.2 bug to devs looking to incorporate the fix into their ROMs very technical.

I didn't realize that script worked until just now btw and this officially completes me! The abd-smash script is the fix for directory bind not working on 4.2 I am happy to report!

The link to the thread is a page back, get the script, edit the very bottom to reflect the internal and external directories you want to use and DON'T forget to close with quotes!!! :P
[Galaxy S II Themes and Apps] StephenC82:
Any chance you can post your scripts?
[Galaxy S II Themes and Apps] spearoid:
They're not mine, they're HMkX2's. She created and provided the base script that you can edit here http://xdaforums.com/showthread.php?t=2155363

It's the adb bind zip
[Galaxy S II Themes and Apps] spearoid:
Here is the script I edited to redirect the gameloft folder from the internal memory to the data/gameloft folder on my SD card

EDIT: I have ROM Toolbox installed and use the included Root Browser to execute the script as root. I'm sure there's a million ways to do this.
[Galaxy S II Themes and Apps] lartomar2002:
Is this the same as GL to SD? If not how is it different?
[Galaxy S II Themes and Apps] spearoid:
I don't know what GL to SD is. But this script can be edited to allow any app to store its data on the external instead of the internal.
[Galaxy S II Themes and Apps] lessthanzach:
I could never ask someone to do something that involved that amount of work. But if you did, you would be a hero :D I would pay $5 for an app like that in a heart beat. And I'm sure plenty of people would. And with revenue like that (if the app became popular enough) there may be enough to send equal share to all chefs involved. Please, for the love of all that is holy, reach out tech sites to spread the word about the app if you decide to go there. There's too much need for a solution like this to hide it in one place.

On topic, glad I decided to finally search this thread from a computer. I was going crazy thinking I was doing something wrong trying to get this to work on AOKP 4.2.2. Directory bind does not work on 4.2.2 based on what I have read in this thread (yes I just wrote that for any future people searching google or xda). I love my AOKP too much to go stock to use this but I'll keep checking in to see if there are any updates. Worked great while on 4.1. Thanks to devs that work hard to fix "features" that Samsung and others implement.
[Galaxy S II Themes and Apps] 911-Future_Maker:
If you're asking for the script: using scripts always be a bit old school, but sometimes it's the only way to get the things work. Compared to DB the differences are GL app doesn't seems to work with jb 4.2.x, as DB does. And even more DB has simple and nicer UI and...better name XD Why named Gameloft to SD when it should work to other games too as it is mounting Android/data and obb

folders not only gameloft. Lol

It's Gameloft to SD app. :D
[Galaxy S II Themes and Apps] cuneiform:
Chaps, will you please advise the app author to change the both lines at the top of the app screen to be correct?!

There is no sense to preserve both the wrong menus

SOURCE

and

TARGET

in relation to the

PATHS

involved.

So far I can see, many newbies / users did not succeed while erroneously inserting wrong

PATHS

for wrong

MENUS

instead of being correctly leaded by correct

PATHS

and correct

MENUS

as well.

Going in depth is not worth arguing unless these elementary errors are still preserved.
[Galaxy S II Themes and Apps] Hiteshsky:
NEED HELP!!

I am using jelly bean 4.1.1 and its rooted. The app works just fine but I am unable to see my entries even after enabling 'alterntive dbase mgmt.'. Please help! Also can we move the obb game data files to the external sd and still run games?

PLEASE HELP!!!
[Galaxy S II Themes and Apps] spearoid:
Well I just searched it on the Play Store and found the app. Also found that it isn't compatible with 4.2. So there's the difference.
[Galaxy S II Themes and Apps] spearoid:
Well I haven't tried to but I would guess you could. I was going to ask the author of the script that question but I already made three scripts separately and wasn't too worried about it.

I would imagine you could copy that last paragraph starting with the mkdir command and paste it below that to do the same thing for another folder. But I never tried it.

Maybe you can test and report to the thread?
[Galaxy S II Themes and Apps] racer321:
Has this worked on 4.2.2? Specifically AOKP

This is the only thing stopping me from updating my Nexus 7 :/
[Galaxy S II Themes and Apps] spearoid:
This is specifically for 4.2, of which 4.2.2 is a part. Yes. It will work on AOKP.
[Galaxy S II Themes and Apps] racer321:
Thanks for your response. I can finally update my Nexus :D
[Galaxy S II Themes and Apps] danarama:
I just stopped using this app since I know it wont work when I update to 4.2

I started using the mount -o bind command. I assume that works in 4.2?

Edit, yes it does because its in that shell script you're all talking about.

In which case, why make it so complicated?

Use script manager to run a script at boot with root.

mount -o bind /mnt/extSdCard/NewLocation /mnt/sdcard/OldLocation

Then when you install something, just manually move the files first

My script is literally:

#!/system/bin/sh

#Bind special
mount -o bind /mnt/extSdCard/AFlash /mnt/sdcard/AFlash

#Bind images
mount -o bind /mnt/extSdCard/DCIM /mnt/sdcard/DCIM
mount -o bind /mnt/extSdCard/DCIM /mnt/sdcard/Pictures
mount -o bind /mnt/extSdCard/DCIM /mnt/sdcard/PhotoWizard

#Bind downloads
mount -o bind /mnt/extSdCard/Download /mnt/sdcard/Download
mount -o bind /mnt/extSdCard/Download /mnt/sdcard/tapatalk_download

#Bind Audio
mount -o bind /mnt/extSdCard/hullomail /mnt/sdcard/hullomail
mount -o bind /mnt/extSdCard/Zedge /mnt/sdcard/Zedge

#Bind games
mount -o bind /mnt/extSdCard/bind/appdata/MaxPayne /mnt/sdcard/Android/data/com.rockstar.maxpayne
mount -o bind /mnt/extSdCard/bind/appdata/MassEffect /mnt/sdcard/Android/data/com.ea.games.meinfiltrator_row
mount -o bind /mnt/extSdCard/bind/appdata/NOVA /mnt/sdcard/Android/data/com.gameloft.android.ANMP.GloftN3HM
mount -o bind /mnt/extSdCard/bind/appdata/RealRacing /mnt/sdcard/Android/data/com.ea.game.realracing2
mount -o bind /mnt/extSdCard/bind/appdata/ShadowGun /mnt/sdcard/Android/data/com.madfingergames.shadowgun
mount -o bind /mnt/extSdCard/bind/appdata/Asphalt7 /mnt/sdcard/Android/data/com.gameloft.android.SAMSUNG.GloftA7SS
mount -o bind /mnt/extSdCard/bind/appdata/JetSetRadio /mnt/sdcard/Android/Obb/com.sega.jetsetradio
[Galaxy S II Themes and Apps] gelhack:
Is this a script that you have to run from your pc via adb every time you boot your device?
[Galaxy S II Themes and Apps] EarlZ:
Is there some sort of a newbie user guide for this ?

I tried to move around some large game files like 600Mb and it does not really work only writes a file of about 89mb then it stops..
[Galaxy S II Themes and Apps] bsoplinger:
It's so complicated because of the new/additional security feature added with Android 4.2+ where the mount command doesn't persist outside the process/fork that invokes the command.

Sent from my Nexus 7 using Xparent Purple Tapatalk 2

---------- Post added at 11:34 PM ---------- Previous post was at 11:32 PM ----------

The app author hasn't posted for about a year now and never provided source to allow anyone to update and/or fix it.

Sent from my Nexus 7 using Xparent Purple Tapatalk 2
[Galaxy S II Themes and Apps] HMkX2:
You can (and I strongly suggest) put multiple commands in there. I was debating making a temporary program that could parse a file or something to get you guys set for the time being, but got caught up in technical bugs with my other project, trying to teach myself Android GUI, and Life™.

Will post back in a bit with something for you guys so you aren't taking a one-off fix I made for one person and using it on a daily basis.

We aren't just using mount since the script you posted will ONLY work at boot. It is closer to the ideal solution, but still not perfect. What if you eject your card, what will clean up all those leftover mounts? Running at boot is one solution, but what about making it work when the phone is on?

Also, copying files before remounting is just... icky. You could just use a recursive bind (would have to code it yourself) to shift the core directory, then install something.
[Galaxy S II Themes and Apps] danarama:
Oh I see, so you're not just trying to replace this app, you want to make the entire process better.

mount stays in place through "unmount" in menu, its only physical ejection that breaks the bind - which is something I never do.

Since I was moving files first with the app anyway, I'm happy with the solution for me. I'm a terminal guy anyway. It IS a shame that Script manager triggers are pretty poor. I use Tasker too, but that's not a solution for evey one as its not free. Llama doesn't do scripts to my knowledge
[Galaxy S II Themes and Apps] madmack:
So to get this straight, running "mount -o bind /mnt/extSdCard/dir /data/media/0/dir" works if run by root in 4.2 ROMs? Last time I checked this only made the bound directory visible to the process/fork that ran the command and not to the entire OS environment so I guess my questions are:

a) is the adb-smash script necessary; do we have to do the adb connect dance to get the directory mount point to persist across PIDs ?

b) if I just type in these mount -o bind commands and have them execute at boot time. Does that make a difference than running them "not at boot time"?

I'm just not sure whether the "at boot" requirement is necessary and whether that adb connect is needed at all? I tried to mount a directory in my extSdCard, it worked.. but the other apps weren't able to see that mounted point.
[Galaxy S II Themes and Apps] danarama:
No not yet
[Galaxy S II Themes and Apps] blazegunz:
Yes to A or B?
[Galaxy S II Themes and Apps] danarama:
No to A. No to B. You will want to run at boot so your directories bind without human interaction. But there is no detriment to running at boot...

OK so my latest is that I can mount using my script with some modifications. To mount across all applications, we need something with even more elevated permissions than su. People are using the debugger daemon, which is ugly but it works. That;s what StickMount uses too.

So you can simply use the mount commands, but they must be in /system/bin/debuggerd and the process must be started (at boot) or after a new mount is created, for the mounts to be visible.

The problem is, debuggerd is unstable if left as the mount commands. The phone seriously freezes, goes black and goes all kind of crazy, so you have to stop the daemon and put it back as it was. You need to do all this every time.

I've pretty much got it scripted here....

It's still Work in progress, so not everything that must be done, is scripted yet. There are some manual steps...

As already mentioned, you need script manager.

Instructions:

rename your existing /system/bin/debuggerd to debuggerd.bak (exactly this)

from the zip attached to this post, put debuggered.mnt in /system/bin

put the mounter.sh and remount.sh in a directory on your internal SD card somewhere

browse to this directory in script manager and set mounter.sh as "SU" then run it.

Go through the menu (in landscape preferably) and set the defaults (internal lists /data/media - for me in here, I select 0)

Then set up a bind through the menu

The script *should" now run the remount (which takes 14 seconds) but I haven't tested this yet. It can be run manually via Script manager too. Just set it as "SU" but also you want it set at boot.

***NOTE, remember, my script assumes you want to bind FROM /sdcard/Android/data/com.appname You can just manually bind using "mount -o bind /mnt/extSdCard/whereveryouwant /data/media/0/whereverelseyouwant and put it in the debuggerd.mnt then just use the remount.sh to do the necessary starting, stopping and debuggerd binary file management.
[Galaxy S II Themes and Apps] gelhack:
I have been using the debuggerd hijack on my N7 to load up music and video from a USB stick for a while now. My only issue is that in order for gallery and mxplayer to see the new files is to manually run an app that forces a media rescan. Do you know if there is a way to restart the media scanner from a shell script?
[Galaxy S II Themes and Apps] TheRecRuiT89:
That's really one of the reason to root my phone thank you dude.

i want to say something about that app:

i have binded 10 games with this, first that was cool but now i can clearly see that it makes very slow to boot my phone. and sometimes it slows all the process on my phone.

for slow boot problem i had to deactivate the bind on boot option.

for slow and freezes all the processes on my phone, i had to also uncheck all the games, so before i play the game i manually bind it then i play.

could this app made a little bit more stabilizer than now?

and when i look at the list most of the game's path are very long so I can't see which one is which game. could there be an option to give every line a name, it would be so helpful.

thank you again very much for this great app :)
[Galaxy S II Themes and Apps] kenkiller:
With or without DirectoryBind, my SGS2 boots and runs at the same speed. You have other problems. :(
[Galaxy S II Themes and Apps] plotinus:
man it worked great with shadowgun! testing with frontline commando! i have a question, after binding the files, can i erase the ones remaining in the sd card? also, does using this method makes the games slower?? like link2sd... hehe :p

edit* i Have a problem, cant unbind shadowgun's bind, it says cannot unbind this location, and the icon is an green arrow up ... what happenned? i have android 2.3.5, stock rom
[Galaxy S II Themes and Apps] bleuxeon:
Works great here too!:)

On my Galaxy S2 I have linked my sdcard/DCIM/ to emmc/DCIM (external SD on CyanogenMod 9).

Now when I take a film/photo it is stored to my 32gb external SD.

I have had to check "alternate dbase mgmt" since my parameters wasn't saved after a reboot.
[Galaxy S II Themes and Apps] freewind29:
Great application, thanks!
[Galaxy S II Themes and Apps] blueeagle69:
If you run through the wizard to set up a new bind, DirectoryBind will delete files from your internal media card.

But the original empty dir has to remain.

But Directorybind will do this.

So if you haven't done the wizard try removing files left on the internal card and see what happens.

Do this before the bind though. Otherwise you will think tou are removing files on the internal, but will in fact be removing the files from the external instead!

I believe thats how it works mate.
[Galaxy S II Themes and Apps] Harsha Raj:
Can you post a screen shot of the mounting screen buddy where we specify the path please? Because I'm not able to make it work :( I'm getting that red disk icon instead of green.
[Galaxy S II Themes and Apps] bleuxeon:
here you are :

In can't edit allready configured bind so no screen shot for that sorry.
[Galaxy S II Themes and Apps] dadi_pas:
Apps Good

Working On Galaxy S I9000 Running 2.3.6 All Gameloft HD From Samsung Apps awesome
[Galaxy S II Themes and Apps] gwallgofi:
Thanks for making this app - it's what I have been looking for! I use it primarily to put clockworkmod and DCIM folder onto my much larger SD card as those two really eat into all available space, leaving me with just 300Mb left on the 16GB space of Samsung Galaxy S2! :)

Now I have a lot more space available thanks to your app. Any plans to put it into Market (Play Store) so that I can have regular updates via that?

Cheers
[Galaxy S II Themes and Apps] macauf:
Sir, I have followed these instructions, but the entries disappeared after reboot. I intended to divert the /emmc/ folder to /sdcard/external_sd/ as it was in GB rom which is much convenient. Could you advise what I can do? I am running on Dark Knight v3 ICS Rom.
[Galaxy S II Themes and Apps] mzaur:
This works great. Thank you
[Galaxy S II Themes and Apps] JayJ-1974:
Works great on Thebyani ICS 4.0.3, I've just reclaimed over 7 gigs by moving...

GTA3

Deadspace

Shadow Gun

Modern Combat 2

NOVA 2

Asphalt 6

Thanks dev, great work!!

~~~~~~~~~~~~~~~~~~~~~~~~~~

Swyped from a distant star, the other side of the Galaxy on my GT-I9100 powered by Thebyani ICS 4.0.3 using Tapatalk ©
[Galaxy S II Themes and Apps] Zorkman:
Even though we have a workaround in some cases with this app,

I still think, with regards to google music,

it might be useful to star this issue in the android bug tracker:

http://code.google.com/p/android/issues/detail?id=26445
[Galaxy S II Themes and Apps] Batman8:
Slig,

Your app DirectoryBind is EXACTLY what I have been searching for for over 8 months now from back when I first bought my Droid Bionic. Yours is the ONLY one that I could get to work properly (unlike "Folders Plug" which did NOT work) so I can not thank you enough for answering my prayers with this app. Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You!!!!

Now that I have it working and have moved about 4-5 huge data folders over to my external sdcard, I don't see the screen with all the linked folders anymore, so I can't see the links that I've created. If I need to mount the phone to my Macintosh as mass storage, I can't see the links in order to "unmount" them, so how should I do that, and then re-mount them back quickly after finishing with mass storage? Are there any other issues that I need to know about with this app? How about when ICS is released by Google, will I need to do anything special since this should be built into ICS right?

By the way, did I say Thank You?
[Galaxy S II Themes and Apps] blueeagle69:
Wishful thinking :-)

But I can confirm, that it works fine under ICS.

You may just have to change the path name of each entry. Because on my tablet, the external sd was called something else after upgrading from Gingerbread to ICS.

No biggie though.
[Galaxy S II Themes and Apps] Batman8:
Thanks for the reply BlueEagle69. I appreciate you answering my question since the developer of DB created a GREAT APP, but doesn't seem to be very responsive to questions/feedback unfortunately.

From playing with it, I have answered most of my own questions already but I have one other question for you..."how about updates from the market, do they break or affect the links that this app builds, or cause any other problems?" I was just wondering if I'll need to do anything special before updating things from the Market.

Thanks again for your help.
[Galaxy S II Themes and Apps] blueeagle69:
It seems to be OK afaik.

Although I did move Blood and Glory back before I did the update, because I wasn't sure where the updated data was actually going.

Sorry I couldn't be of more help with this. :-(
[Galaxy S II Themes and Apps] Batman8:
Considering that you moved the data back BEFORE taking the update sounds like you have the same concerns that I have about where the data was actually going.

I just hope that it does work WITHOUT having to do that each time because that's going to be a real pain!!

Thanks.