[TOOL] DirectoryBind - move data to external_sd (GameLoft, Shadowgun etc.) ROOT req.

Search This thread

djfreaky

Senior Member
Apr 16, 2011
147
33
39
kolkata
How are you people moving the data files from data/data folder by directorybind?..in s duos only few apps are getting installed in sd card partition rest most are in d oder partition in root data/data and even if i type out d folders even den directorybind cant access dat partition
 

programatix

Senior Member
May 17, 2005
2,275
111
So this tool not work on cm10 right??:confused::(

Sent from my GT-I9000 using xda premium

As long as your busybox is complete, it should work. Please note that post #1 already mentioned what it does, how it does it and what it requires. Basically, it requires mount, umount and 2 other commands usually found in the busybox package.

Also, as mentioned before by me, this app is a frontend to ease the calling of mount and umount manually. Please also note that some version of mount does not support binding directory (linking a directory to a virtual path). If this is the case, try installing BusyBox by Stephen Erickson from Google Play and install it.

Sent from my GT-N7100 using Tapatalk 2
 
Last edited:

nohan2008

New member
Jul 23, 2012
1
0
anyway wanna ask..where I can find a backupfile path of DirectoryBind,I was already save the patch,so wanna backup the file before I swap my phone in order to easy restore it after install new base room..thx in advance
 

-PM-

Member
Nov 12, 2004
13
0
Quote:
it doesnt work on exfat cards so suggested to format the 64gb card to fat32 before doing so

If this is going to be like, we can never use Directory Bind with a 64 GB card because it only can be formatted in NTFS and ExtFAT but can't in FAT32 for it size limit of 32 GB.
Is it true?
 
Last edited:

shaolin95

Senior Member
Apr 5, 2010
6,189
1,026
Utah
In my experience, the data directory has to be written exactly as it is. For example android/obb would he "exsSdCard/ Android/obb".

Also, I noticed if you long hold the directoty address when typing the directoy, a little browser pops up, allowing yoi to select files folders through it much easier. I only figured this out today lol.

Last but not least. Your cusrom directoy must not have any spaces, I find I receive a red icon then. E.g my folder "Android external data" had to be names "AndroidExternalData".


Sent from my GT-N7100
Ok I did this and now the disk icon becomes green when I select it after it copied the files but why didnt it delete the files from the main card? I assume I can delete those since the idea is to use the external not have duplicates :D



UPDATE: I was able to get this working with my 32GB card which is class 4 and likely formatted FAT32. I am thinking the 64GB card may be formatted some other way thus the issues I am having.
With the 32GB it moved the data perfectly to the new location and runs great.
 
Last edited:

MohJee

Senior Member
Nov 3, 2012
645
252
1- I'm using a 64gb formatted exfat and it works fine with directory bind

2- you can actually format it to fat32 using windows I guess or if windows doesn't work there are programs that can do that.

Sent from my GT-N7100 using xda premium
 

codington

Senior Member
Sep 12, 2009
312
25
KunShan, JiangSu, PRC
Quote:
it doesnt work on exfat cards so suggested to format the 64gb card to fat32 before doing so

If this is going to be like, we can never use Directory Bind with a 64 GB card because it only can be formatted in NTFS and ExtFAT but can't in FAT32 for it size limit of 32 GB.
Is it true?

64GB cards work fine. Originally, I had to format the sdcard on my phone in order for my tablet to recognize it. Card is formatted as FAT32. As far as I know, FAT32 refers to 32 bit - not defining the format limit. I think FAT32 can handle up to 2 TB. 64GB cards work fine with with Directory Bind.

viewed when the tablet is plugged in:
vtv15v8wopdi7fmvl4z3


viewed when the sdcard is mounted on the PC:
wqy6zsa3444gns700h4r
 

Attachments

  • Snap1.gif
    Snap1.gif
    16.3 KB · Views: 563
  • Snap2.png
    Snap2.png
    40.4 KB · Views: 553

theunborn

Member
May 21, 2009
35
0
anyone know where the spacetime studio games data is stored? I cant find it in android/data

Sent from my GT-N7100 using xda premium
 

lambstone

Senior Member
Mar 27, 2008
1,693
300
Huawei P20 Pro
Redmi K20 Pro
does anyone know if i could do this?

I wish to bind the directories as follows

INTERNAL/Android/data ---> EXTERNAL/Android/data
INTERNAL/Android/obb ---> EXTERNAL/Android/obb

Such that when I installed new apps the obb data files automatically are stored on the external sd card instead.
 

Magissia

Senior Member
May 9, 2012
1,151
270
127.0.0.1
does anyone know if i could do this?

I wish to bind the directories as follows

INTERNAL/Android/data ---> EXTERNAL/Android/data
INTERNAL/Android/obb ---> EXTERNAL/Android/obb

Such that when I installed new apps the obb data files automatically are stored on the external sd card instead.

Yes it is possible and did it on my TF101 on a 32gb microSD.
Also with the music folder.
 

MohJee

Senior Member
Nov 3, 2012
645
252
Why not just do Android/

This way both obb and data go to sd with only one entry.

Sent from my GT-N7100 using xda premium
 
  • Like
Reactions: tagus81

aszteroid

New member
Nov 17, 2012
2
0
missing directories and files

Hi!

This progrm sounds great, just doesn't work for me. The problem is, that when I want to add the source and target directory, the program doesn't see all the directories (which are on the sdcard, I know), and when I select the source dir., it says 0 files 0 subfolders (but there are several files there, I'm sure).
What am I doing wrong?

Thanks,
A.
 

programatix

Senior Member
May 17, 2005
2,275
111
Hm. Really? That works? You can bind the directory and its 'daughter' folders without having to bind the specific folders individually?

You can bind OBB folder but I would not recommend binding Android folder. This is because some apps that uses the Android folder might start before DirectoryBind starts up and handle the binding. When this happen, those apps would initialize some data and fill the Android folder, causing failure in binding as the target must be an empty directory.
 

Accorat

Member
Oct 30, 2012
37
7
Trouble with 4.2

So, Stickmount is working again, but somehow Directy Bind still doesn't work? I tried to play Bard's Tale again, the binding didn't change or anything. But it prompts the data download when I start BT. Does Directory Bind also need a 4.2 fix?

Regards
 

chenaou

Senior Member
Nov 16, 2012
55
14
Medellin
Thanks But..

WOW!!!! :good::good::good:

BUT !! the app crashes and then evertything is unlinked and then the app doesnt really do the job :crying::crying::crying:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 694
    Hi all !

    This is my application to bind directories located on external_sd to directories on internal memory (/sdcard/). This way You can transfer large application data directories to external_sd. Could be usefull with ex.: games from Gameloft, other like Shadowgun, applications like CamScanner.

    screenshot:
    SC20111225-111214.png
    SC20120105-183116.png


    SC20120105-183406.png
    SC20120105-183427.png


    Features:
    * Requires ROOT !
    * Aimed at specific functionality and features (not idiot-proof)
    * You can create any number of Data -> Target directory pairs, mount them manually or choose to mount them on system boot (checkbox does that).
    * On/Off switch controls whole mount-on-boot function.
    * Diskette icon indicates if mount operation was successful, by taping it You can mount/umount entry.
    * Icon changes if application is using mounted entry
    * DirectoryBind can tell what application is using this entry (tap at entry in use)
    * Long tap on entry (disabled) brings edit/delete window
    * App auto umount all entries on USB connected and remount after USB disconnected (for now via BroadcardReceiver UMS_CONNECTED / UMS_DISCONNECTED)
    * App shows notification and vibrates if auto umount on USB fails
    * If mounting all checked entries (ex. on boot) app is waiting specified time (def. 60 sec) if data directory is not available (happens sometimes at boot)
    * Tested sucessfully with Asphalt 6, Shadowgun, DeadSpace, CamScanner

    Color statuses:
    * GRAY - entry disabled
    * RED - mount failed
    * BLUE - waiting for data availability
    * GREEN - mounted OK

    version 0.2.0k
    * fixed FC if screen orientation changes during copy/delete
    * more extensive logging

    version 0.2.0m
    * ?? fixed problem with entries marked green on boot, but not mounted (repotred by stone_ship)
    * ?? fixed problem with random FC on ICS (reported by Thomas)

    version 0.2.0n
    * auto create target directory action moved from "bind" action to "add/edit entry" action due to possible problems when data outside "/sdcard"

    version 0.2.0o
    * added option to control if mount service is run as sticky

    *** for now older version kept in case I broke something ***

    please do not test data transfer files features on sensitive data they seem to work OK but are not throughly tested

    Compiled using API android 2.3.3. Attached as self-signed development apk package. No market link for now.

    important info
    * Remember ! All entries must be umounted before attempting to use MASS STORAGE MODE. Application will try to do it automatically on USB CONNECT. If it fails and You'll use MASS STORAGE MODE sdcard partition WILL CRASH and reboot will be required to restore normal operations ! Main cause of that is appplication using mounted folder. You have to close that application and retry to umount entry.

    * This application requires *root privileges* so it has full control over entire system! Uses root privileges to invoke "mount", "umount", "lsof" and "grep" shell commands via su and it DOES NOT write anything on system partitions.
    It DOES NOT apply any permanent changes to the OS, however I cannot guarantee it does not contain BUGS and security issues. I'm not responsible to any damage it can cause. Use it AT YOUT OWN RISK !

    application permissions explained
    WRITE_EXTERNAL_STORAGE - application automatically creates target path, copy existing files from target to data
    RECEIVE_BOOT_COMPLETED - application can perform automatic bind on boot
    VIBRATE - application creates notification alert with vibrations when cannot umount all locations on USB connect
    READ_LOGS - dump own logcat to file
    *ROOT* - invoking "mount", "umount", "lsof" and "grep" commands via su

    BUGS REPORTING
    As every program can contain bugs so this one too. I'm very grateful if someone find and report a bug. No report will go unattended and I'll look into each case. There is just one thing, often report even very detailed is not enough so application has built in logging (logcat) capability - it can be enabled in Preferences.

    Logcat can be dumped to file from main app window: menu -> dump logcat to file
    So when reporting bug please attach that file to Your post :)

    Regards !
    Slig

    !!! IF YOU HAVE ISSUE WITH ENTRIES DISAPPEARING AFTER REBOOT !!!
    1. In preferences check "alternate dbase mgmt" and try again
    2. Report in this thread with informations
    - does "alternate dbase mgmt" help ?
    - are you using any taskkiller
    - what ROM are you using

    I need to know how many people have this issue, maybe it would be good to make "alternate dbase mgmt" default mechanism.
    Sorry for that but I'm still learning and doing by best to make this app as much compatible and usable as possible. This is my first public app for android ;)
    29
    Moved to "Themes and Apps" section.
    15
    How do we get this to work? I've moved my game files to my sd card on my otg cable for my nexus 7 and I've tried to mount the obb folder using this http://xdaforums.com/showthread.php?t=2155363 but my games such as Asphalt still tell me to download data :/

    I haven't tested it with obb folders tbh. I just added my bind commands to the debugger.mnt file then executed remount.sh.

    (I think I'm going to release an app to make everyone's life easier. It'll have a modern GUI, intuitive layout, and compatible with 4.2.2). I'll post a link to it here once it's all finished. :good:
    7
    Later posts seems to sound like the posters are blaming or are angry with the author of the app. This is really sad.

    Anyway, I would like to answer some questions and hope that people would be more polite in the future as the author wrote the app for free and saved a lot of people time and effort. Without the app, people like me usually wrote script to mount the links and now we have nice GUI to do that. I am most thankful for the auto unmount feature. Previously when using script, I must make sure that I unmount the link before unmounting the external card (to mount to pc). If I forgot that, then the external card would later fail to bind anymore until I restart my device.

    On the version, the higher the number, the newer it is. If the number is the same, then the later alphabet is newer, meaning "b" is newer than "a".

    On the app itself, it is a frontend to perform mount/unmount, while allowing moving files automatically. So, whatever limitation you are facing is on the OS, not the app. The app helps you to move files (when creating the link), helps you mount the link (on every reboot), helps you unmount the link when your external card is unmounted (and remount it), and helps you move back the files when you delete the link. It uses mount and umount to perform the linking/unlinking process. They are commands that come with the busybox.

    On why source is the external card and the target is the original path, the author uses the parameter naming used by mount and umount. When mounting, the source is where the data is, while the target is where you want it to appear. Mount also requires that the target directory must exists and empty. If it does not exists, the mounting process would fail.

    For installing app, as long as there are sufficient space to where the OS is installing it to, it will install successfully. If it complains that there are insufficient space while there is plenty, then it has something to do with what you have done, such as rogue odex file (normally caused by cracking apps with Lucky Patcher). There are also cases where the app to be installed is at fault. This would normally be solved when the app is updated.

    So, I hope I clear up some confusion with this post and please, if you can't get any apps developed freely by generous developers to work while others have no problem, try to understand how they work and do some research before bashing the authors.

    Thanks.

    Sent from my GT-N7100 using Tapatalk 2
    6
    ...I've been living the dream ever since a ... scripter produced a solution to the FAT32 limitation on AOSP.
    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.