[APP][ROOT] FolderMount - Link folders from internal SD to external to free space

Search This thread

Gravemind2015

Senior Member
Dec 1, 2015
1,846
861
i went to ts-binds thread in xda and it says there it isn't compatible with android pie at the moment
:(

---------- Post added at 12:21 PM ---------- Previous post was at 11:58 AM ----------



btw does ts-binds create a copy of the data of an app for example obb of a game to internal from sd card? because if so it just makes copies of them and doesn't save any space on internal.

Sorry to hear about the support on pie, I actually had thought it works.
No, it doesn't copy the files over, it just links the two folder so the same content is visible (and accessible) from both the folders. However, the files are only stored in the external storage. You can check this by unbinding a folder, the internal storage one would be empty with the files stored in sdcard.
This might confuse the file manager apps that calculate free space (even the settings app), but no content is actually copied over to the internal storage.

The only caution that has to be exercised is to not copy a file/folder between two linked folders, it'll delete the data permanently. So if you've linked two whatsapp folders (say), don't copy files from internal storage/WhatsApp to external storage/WhatsApp or vice versa.
 

seijuro572

Senior Member
Jul 23, 2018
402
63
Sorry to hear about the support on pie, I actually had thought it works.
No, it doesn't copy the files over, it just links the two folder so the same content is visible (and accessible) from both the folders. However, the files are only stored in the external storage. You can check this by unbinding a folder, the internal storage one would be empty with the files stored in sdcard.
This might confuse the file manager apps that calculate free space (even the settings app), but no content is actually copied over to the internal storage.

The only caution that has to be exercised is to not copy a file/folder between two linked folders, it'll delete the data permanently. So if you've linked two whatsapp folders (say), don't copy files from internal storage/WhatsApp to external storage/WhatsApp or vice versa.

wow so it does work like xinternalsd thanks for the info i hope in the future it becomes compatible with pie .
 

lohtse

Senior Member
Apr 1, 2009
1,708
146
Where ever they send Me!!
Made the mistake of installing this on a note 4 with android 6 stock rooted rom...Got boot loop..fix boot loop using info here in thread but now phone doesnt see sdcard and says its corrupt...yet card works fine in another device and on my windows laptop..... So what is the issue and how do I fix it???

regards
Lohtse
 

evildog1

Senior Member
May 2, 2012
1,634
861
FolderMount doesn't work with Magisk. It just won't mount. I have given it permission to write SDcard and it move files successfully.
Device is XZ1 running Oreo with Magisk 17.1
Logcat in attachment
Also is ther any alternative that works for Magisk?
 

Attachments

  • 2018-10-26-13-54-15.txt
    25.6 KB · Views: 53

Gravemind2015

Senior Member
Dec 1, 2015
1,846
861
FolderMount doesn't work with Magisk. It just won't mount. I have given it permission to write SDcard and it move files successfully.
Device is XZ1 running Oreo with Magisk 17.1
Logcat in attachment
Also is ther any alternative that works for Magisk?
You can look into ts-binds. It's simple to use. You can bind any number of folders you want. (Tap the module name to see it's description in magisk download section)

After installing and rebooting to enable it, you'll see a config file named ts-binds-folderlist.txt in your internal storage. Open it with any text editor; add your internal and external folders (example is given), save the file.

I recommend you to save a copy of that file somewhere else or have a copy renamed to .txt.bak and put there in the internal storage. The thing is, if you ever disable the module or if for some reason magisk gets deactivated, the next time you enable the module, the file will be replaced with a blank one. So it'll save you time to just replace it instead of typing your config all over again.

After saving it, install a terminal emulator (I use termux), type in:
Code:
su
tsbinds reinit

You can type tsbinds to get all the supported commands.

It'll then sync data from your config file with it's internal database and mount the relevant folders from external sdcard to the internal storage (or link them, whatever term is correct :D).

It'll automatically link them at every startup so if you don't enable/disable magisk or this module (which'll reset the config file), it's set-and-forget. Once configured, you can uninstall the terminal app.

If it gets reset, just replace the file and run those commands again. Just check the internal storage folders and make sure that they're blank, otherwise you won't be able to access the files after linking, obviously.

Also, as a fair piece of warning, don't copy/move files between two folders *linked with each other*. Not only it doesn't make sense (the files will already be available at both locations), but they will override to oblivion, basically delete themselves. This applies not just for this module but for potentially any such apps which link folders, just to be safe.

I've been using it for a few months. I'm currently on stock rooted oreo 8.1, Nokia 7 plus. Also used it on Moto G3 on Oreo custom ROMs.

I hope it helps.

Broadcasted from Zeta Reticuli
 
Last edited:

cybersev3n

Member
Sep 23, 2018
30
5
Cape town
Foldermount fix

Hie and i have a problem with my samsung galazy grand prime plus..i have tried to use foldermount and link2sd but all have failed. FM tries to fix the troublesome modules on my phone but the phone ends up in a bootloop and even link2sd does the same thing can anyone help me i need to use foldermount..i have tried lucky patcher (directory bind feature) but it wont swith on its like the phone cant bind directory at all..Any help would be appreciated plzz:(
 

sieger007

Senior Member
Jul 4, 2008
302
31
Dublin
Hie and i have a problem with my samsung galazy grand prime plus..i have tried to use foldermount and link2sd but all have failed. FM tries to fix the troublesome modules on my phone but the phone ends up in a bootloop and even link2sd does the same thing can anyone help me i need to use foldermount..i have tried lucky patcher (directory bind feature) but it wont swith on its like the phone cant bind directory at all..Any help would be appreciated plzz:(
you can try using app 2 SD earlier they used to have a pro moduleafterwards when Google stop supporting that is put restrictions on its app I am not sure why Google restricted it but then they stop developing it and the pro version can be found free on Google play store where is a folder mount feature there
 

[email protected]

New member
Mar 27, 2020
1
0
cuando se estaba iniciando la operacion me dijo algo fallo y la desinstale y despues mi tarjeta sd decia 0bytes y no me permite descargar nada y probe reiniciandolo a ajuste de fabrica pero sigye lo mismo

¿que puedo hacer,
 

Sven74Muc

Member
Jul 3, 2018
36
0
I have an Galaxy A3 2017 with Oreo and Magisk installed, FoulderMount is version 2.9.13
When I start Folder Mount I need to grant root access, which I did. hen I'm asked to install SuperSu, which Ii don't did, because I have Magisk installed.

When I want to setup a new pair I click on + , then chose a name. hen I need to chose the internal folder. I see this filder '/storage/emulated/0' which s the internak storage. Unlukily the folder is empty. When I use an root explorer there are still folders and files in. Back in FolderMount I thry to add a folder WhatsApp and get an permission error. When I add a folder 123 it is working. Folder mount still shows that there are now folders in the '/storage/emulated/0' folder... but switching to my root explorer I see the folder 123.

Any idea how to solve it?
 

ArmagedFoxer

Member
Dec 6, 2020
11
1
Hello! I really need your help!!!!
I have Samsung J5 2015 (j500h)
I always refused to patch the sdcard and vold files at the beginning, but one day I accidentally agreed ... the phone rebooted .. I thought it was okay and decided to install one of the games and transfer it to the sd card, but I got an error. I did everything as in the guide, returned files from backups, renamed them and now it shows "sdcard - damaged" in my memory.
Through the root of the explorer, you can see that the sdcard is mounted in the root directory of the device and this is the internal memory folder and formatting it is scary.

Other SD cards also see the same. In TWRP, the card is mounted and working ...
I decided that I had a broken vold and sdcard .. I downloaded the firmware image from the Internet, unpacked it and found these 2 files there .. their hash amount is the same as mine and nothing has changed when replacing it ..

Maybe some config or something somewhere and can not mount the sd .... what to do ??? I really don’t want to reflash ... I really want to fix it, but I don’t know how
 

Top Liked Posts

  • There are no posts matching your filters.
  • 541
    Features of FolderMount:

    • Root is an absolute MUST. No root, no access to app.
    • Mount internal SD card folders to external SD folders.
    • Move content from internal to external when a pair is added. (Dialog prompt)
    • Support for Android 2.3 - 6.*.
    • Holo themed throughout and an intuitive GUI design.
    • It will check SDCARD mount status and remount if necessary.

    Why would you need this app?

    Today some apps store big files over the internal SD card (e.g. Games, Podcasts, Offline RSS feeds, Pictures, Offline navigation software). Typically users have a small internal sd card size (~16GB) while the external SD is a lot bigger (~32-64GB). Most of these apps don't have an option to use the external SD card to store data so they starve your internal SD card memory. I'm bringing this solution to fix this issue. In my case, I use this app to mount offline navigation software and some GameLoft games (NFS anyone?).

    Doesn't this do the same thing as previous apps?

    There are a few apps that already do this. However, my app differs in that:

    a) Some of the existing apps aren't maintained anymore. FolderMount will be maintained by me as we go forward.
    b) While most of the previous apps work properly in most cases, I found them not very intuitive to setup initially and were lacking some necessary "sanity checks" before linking folders. I intend to keep this app as intuitive and bug free as possible.
    c) Support for Android 4.2.2! No app will currently do that for you, so here it is. (dev talk: this uses the debuggerd service trick to get it to work).

    Users that buy the premium key will get:
    • Unlimited folder pairs (free version has a limit of 3).
    • Ability to mount any subfolder in the internal sdcard. (free version has restrictions on Android obb and data folders)
    • Get to see the folder sizes in root explorer
    • Support the developer and make him very happy :D

    Mini how to
    1. Click add to add a folder pair
    2. Select a source directory that you want to move files from. This should be somewhere in your internal sdcard. Usually located at /mnt/sdcard
    3. Select a destination directory that you want to move files to. This should be some folder in your external sdcard or OTG drive.
    4. FolderMount will offer to move the files to the destination. Click yes.
    5. After the moving process is done, click on the pin. If the pin is green, you're all set.
      Note: The files will appear in both the source and destination after pinning them. This is normal as the files that you see in your internal sdcard are actually located on your external sdcard. This is how FolderMount "tricks" apps that don't have the ability to save explicitly to the external sdcard.

    FAQ

    Please do read the FAQ before asking questions in this thread. If your question is ignored, it is most likely because the answer to it already exists in the FAQ.

    Note to users complaining about FM not working in KitKat with custom ROMs. Before asking any questions or complaining that FM does not work, have your kernel dev (or ROM cooker) look HERE


    Screenshots:

    1-small.png
    2-small.png
    3-small.png
    4-small.png
    5-small.png
    6-small.png
    7-small.png


    Video tutorial(s):

    1. by KiaTheKing

    Translations:

    Want to have FolderMount in your language? Help us by joining our crowdin project. More information here: http://www.devasque.com/foldermount/translations.html

    Bug reports:

    FolderMount version 2.2 and up support an integrated bug report and submission capability. Use the feature in the Settings menu to submit bug reports.

    Changelog:

    v2.9.11 (6/26/2016)
    • Broader compatibility with Samsung M devices

    v2.9.9 (6/7/2016)
    • Added Android Marshmallow compatibility
    • Android M support for Moto devices (disable sdcardfs module)
    • Cosmetic changes to copy notification (no more white text on white BG)
    • Root dialog has a clear check mark (or x mark if root was not granted)
    • Destination is sometimes not there, FM doesn't ask you to move files back when you delete that pair
    • Ask permissions to write to external sdcard using Storage Access Framework. Copy operations should work now in Android M
    • Initial support for Samsung devices running android M. A patch will be offered to replace two files. If your /data partition is encrypted, you will lose all data on it! There is no way around that at the moment. Once you factory reset, FM should work fine and you'll have AOSP encryption which TWRP can decrypt
    • Migration to new Android M permission granting model. FM will ask you for permission only when it needs these permissions


    Rest of changelog



    Disclaimer: This app does not guarantee functionality in any way, shape, or form. It is not my responsibility if this app does not work, breaks your sdcard or eats your kittens. User discretion is advised.
    23
    OK guys. Here is your first beta for MM. Please test it out thoroughly and report back ! It seems to work fine on my device for now.

    Warning: The copy/paste functionality is not thoroughly tested. Please do not use the FM copy/paste operation (from source to target, when offered) on your precious family photos/sensitive data. This warning is only for users running Android M. The rest of you should be ok.

    1. FM will ask you to kindly grant it access to the root path of your external sdcard on first launch. Do that.
    2. SuperSU by Chainfire is a must

    If you fulfill these two requirements, everything should work. I also added some minor cosmetic changes to users on Android M. The notification's "moving files" text shouldn't appear as white anymore.

    Enjoy and don't forget to report back on your experience.
    17
    Sorry guys it's been a while since I wrote (two months?). That is really because I am get swamped with work/life that I have very little time to dedicate to FM. Unfortunately the changes that Marshmallow requires are not a few lines of code. This is especially true given Samsung's recent mess with their M firmwares. Anyway, I have been working over the last week in whatever little time I have in my days to fix these issues and v2.9.3b is the result of this work. Change log is as following:

    • FolderMount copy operation has been improved immensely. Copying the entire Whatsapp folder (2.9G) in my device took about ~7 m instead of 2 days ! The reason why FM was so slow copying was because of the recent migration to SAF (Storage Access Framework) which Google is enforcing in android M. This new framework has many bugs, some of the methods they supply are extremely slow and inefficient so I took my time profiling these methods and optimizing them. I think this is acceptable at the moment. The only "slow" thing in my framework is the initial population of folder content. If you have a folder of 1000+ files, this operation might take ~10s but everything else is relatively acceptable.
    • Samsung ! You are killing me. This version is tested and working with Android M on the S7 edge. The previous beta version shipped with arm x64 binaries, hence why it didn't work on some of the earlier samsung phones. This one ships with the correct arm binaries so in theory it should work correctly with all Samsung ARM based devices 32/64bit.
    • Samsung: here is a big fat warning and there is very little I can do about it: If you accept the patches that FM proposes and your /data partition is encrypted (which is the default) then all your data and settings will be lost and you'll have to reformat your internal sdcard! Why you might ask? Well, I need to get rid of the custom fuse module that Samsung implements. Their fuse model is linked with the proprietary encryption tool they use. If I want to replace their proprietary encryption algorithm, I need to restore the AOSP encryption tools and there you go. Once you format your /data partition (either in recovery, or by simply rebooting), everything should work fine from that point on. You will end up with the AOSP encryption which, by the way, TWRP can decrypt.
    • exFAT ? No problem ! The new binaries support exFAT so at least your external sdcard don't have to be formatted too !

    Please test. Sorry if I didn't reply to any of your posts. I barely had time to put this in.

    I'll look at feedback on this beta in case something terrible happens ! So please keep posting your feedback in any case.
    14
    I actually did have a bit of time today and I got most issues worked out:
    • App now uses DocumentFile APIs to access external sdcard. Basically FM can now write to your external sdcard in MM. A lot of changes to the framework had to be incorporated here. I still have to "clean up" some of the code and make the write-access granting scheme a little more intuitive. Yes, you will have to explicitly grant access to the root directory of the ext_sdcard to FM.
    • Some commands changed in MM: Tools like "mount" have moved from "toolbox" to "toybox" (Thanks Google!!) so FM correctly adapts to this new change.
    • Mounting and unmounting works as long as you have SuperSU and not any other root app.

    One issue remains. Although the folders are mounted correctly, non-rooted apps aren't able to write into the target. The reason is the newly set permission (umasks) on these external sdcard mount points. It could be an issue that is local to CM-13.0, which is what I'm basing my work on, or the NTFS filesystem which is what my sdcard is formatted to. I need a bit more time to debug these problems and will post a beta APK once these issues are worked out.

    As always, no ETA. Just stay tuned.
    14
    Newly baked version is out. v2.9.4b addresses some of your comments so thanks for your invaluable feedback !

    • Fixed the ugly switch. No ugly artifacts anymore.
    • More optimizations to the SAF (Storage Access Framework). Copy operations should flow smoothly now.
    • Fixed a bug were if destination folder doesn't exist and you delete the pair, FM asks you to move files back to source. It now doesn't.
    • Android M? FolderMount will now not let you use the app unless it has the proper access rights to the external sdcard root path. If you give FM any other folder, it'll just keep popping the same dialog again until you do so. This is critical because a lot of the functionality of the app -such as the file browser- depends on this critical step being done correctly.

    As always, your feedback is very important. I am particularly worried about these versions breaking compatibility with pre-M releases of Android. I haven't tested that at all in these beta releases given that all my devices now have Android M. :cool: