yashsingh1/xdaforums huggingface dataset:
[Magisk] Soumy1234:
I tried fbind -m after reverting automount but now my obb file is in data/media/obb which is not my SDcard and not recognized by my game. From the log i found in the terminal I have a feeling fbind thinks my obb folder is in that directory. Is there anyway to change this?

Edit: The more I play around with fbind, the more my internal storage space drops. It went from 1.49 Gb to 1.14 Gb

Edit 2: I realized how big the obb is, deleted it from /data/media/obb and now I got my space back...

Edit 3: Sorry about these edits :silly: After trying fbind -m and rebooting, my phone thought my SDcard was damaged and formatting it didn't work. Uninstalling the module seemed to fix it. What do I do now :confused:
[Magisk] Canceriankc:
When I try to mount an obb folder. The phone reboots and when I get to my home screen it freezes and just restarts. It keeps at that unless the flash the module again to disable it. I am using Xiaomi Redmi Note 3 (Kenzo) with Havoc Os 2.0 (Pie).

Edit: Okay so I made a mistake. I forgot to set the mount name space to global. Setting it to global fixed the bootlooping but the obb is still not mounted. After running "fbind -i", it states the obb folder as "<UNMOUNTED>".
[Magisk] VR25:
[MENTION=1689415]genuino80[/MENTION], I'll get back to you later. I can't access Google drive at the moment.

[MENTION=8489742]Soumy1234[/MENTION], unless the output of "grep fuse /proc/mounts" is null, /data/media/obb is the right path.

Did you move (fbind -M) obb/* to extsd/Android/data/obb/ before running fbind -m?

[MENTION=7812837]Canceriankc[/MENTION], weird behavior...

Setting mount namespace to global shouldn't be needed, since fbind always mounts under the global mount namespace (/sbin/su -Mc mount).

You can try two things at the moment:

1) Unmount obb (fbind -u obb); add noWriteRemount to your config and remount obb (fbind -m obb).

2) Use FUSE instead of SDcardFS (fbind -f).
[Magisk] Canceriankc:
I tried the first one and it work. It mounted the file and it's working. I did not need have to force FUSE. Thank you for helping me out and for making such a great module.
[Magisk] Soumy1234:
No I don't think I tried that. I'll see what happens, thank you for your time! Before I do any of this, though, do I have my obb in its original place or in my SD card?

Edit: Starting from scratch with a new rom. Edit the config.txt then ran fbind -m. Obb file is still in /data/media/obb where my game doesn't recognize and not in my SD card. Here is my config:

extsd_path=/mnt/media_rw/5046-022F

obbf co.yakand.agentaapuzzleindisguise

Also, is my altExtsd supposed to be false?

Edit: I erased the config and used the wizard (should've tried it from the start) and it works! Thank you so much!
[Magisk] otyg:
Add to config.txt

noWriteRemount

Should fix reboot issue
[Magisk] Canceriankc:
Already did. Thanks. :)
[Magisk] VR25:
**2019.1.5 (201901050)**

- Fixed auto-mount toggle (fbind -a) inverted output.

- Forcing FUSE mode (fbind -f) causes bootloop if the system doesn't support that. When this happens, changes are automatically reverted.

- General optimizations

- Under SDcardFS, remounting /mnt/runtime/write/... may cause a system reboot. If this happens, fbind remembers to skip that next times (noWriteRemount).

- Updated building tools

- Wizard has a "troubleshooting" option.

___
[MENTION=8816592]_Tille_[/MENTION], /proc/mounts suggests that your SDcardFS implementation doesn't play nice with non-default mask and gid values. While I take a closer look at these, try forcing FUSE (fbind -f).
[Magisk] orientalsniper:
Hello, I'm having issues with write permissions too, I'm binding WhatsApp folder and it can't download anything, but I can see old images, tried to create a new file a file editor in bind path and it was denied too. Already tried "fbind -f".
[Magisk] VR25:
Does the problem persist after adding noWriteRemount (case sensitive) to the config and rebooting?
[Magisk] JupiterApple96:
Hi, I'm new here, I installed fbind on my lollipop 5.1.1 stock of Samsung j2 TV (J200BT) 2015, but it's not working, I do not know if it's my sd card, I formatted it on ext4, and also ext3, but mine cell does not recognize, only the vfat, making it clear that I did not test in ext2, I read the tutorial but anyway I could not mount my game, could you help me ??? Sorry for my english and thank you.:laugh:

Edit: does recognize ext2, just vfat and exfat.
[Magisk] orientalsniper:
Added "noWriteRemount" to config (with fbind -c), restarted and problem still persits, I can create a file in SD card with file manager and I can see it in mounted folder, but I'm getting write error when creating it from mount point.
[Magisk] Abomb:
I also have the permission problem. I noticed that the actual permissions of the folder are set to 755, other "normal" folders have 770.

Edit: attached/proc/mounts output and fbind_debug.txt - I'm also on Pie.
[Magisk] MrMmmkay:
[MENTION=5228676]VR25[/MENTION]

Same here, everything worked fine under Oreo, today I upgraded to Pie, now the old whatsapp pictures are there, but no new pictures can be downloaded, logs to follow.

Edit: logs addet

Forgot, I tried fbind -f and addet noWriteRemount, no change
[Magisk] orientalsniper:
Is that it? I updated to Pie recently (Moto X4), was fine on Oreo.
[Magisk] VR25:
So, we have a new problem with SDcardFS on Pie. This needs further investigation.

FUSE is lacking, that's why fbind -f has no effect.

Oh, Google, what have you done...

I've been working on a replacement for both. Right now, it works for internal storage only (not very useful).

Anyway, the most important file I need from you is /proc/mounts. I'm studying what I already have.

Which config lines are you using?

part /dev/block/mmcblk1p# /data/media/0/.sdext

bind_mount /data/media/0/.sdext/gameFolder /data/data/gameFolder
[Magisk] MrMmmkay:
Here you go.
[Magisk] JupiterApple96:
My config is simple,

obbf com.spilgames.OperateNow2

target Android/data/com.spilgames.OperateNow2
[Magisk] VR25:
You should've known that if your system can't mount the EXT4 partition, these standard functions (obbf, target) won't work out of the box.

You have to tell fbind to mount the SDcard and use it:

part /dev/block/mmcblk1p1 /mnt/sdext "e2fsck -fy"

extsd_path /mnt/sdext

obbf com.spilgames.OperateNow2

target Android/data/com.spilgames.OperateNow2
[Magisk] JupiterApple96:
This text is to be placed in the config.txt ?
[Magisk] orientalsniper:
Use "fbind -c" in your phone I had problem when editing config.txt with text editors.
[Magisk] JupiterApple96:
I made the commands, edited by terminal: fbind -c, then the following command: fbind -m, but gave error, and I am not able to send my log on the forum.

Why:confused:
[Magisk] cLeAv0:
Anybody having issues regarding Spotify creating a data folder for each mounted folder? I don't know how this happens but also spotify detects multiple internal storage because of this i think. And previously storage keeps changing from sdcard to internal.
[Magisk] VR25:
Do you know how to use Vim/Vi?

Which Android version are you on?

Is FUSE enabled? (grep fuse /proc/mounts)

Are these folders created within an "Android" folder?
[Magisk] JupiterApple96:
Yes, I know how to use it, so much that, my notebook had kali linux, but that's not the case, the problem happens when I put the command fbind -b or fbind -m to mount, and is giving error, I wanted to send the log.txt here in the topic, but the xda application application app is bugged.
[Magisk] JupiterApple96:
The error that is giving

Edit: obs: I was able to send!:D

Edit 2: I send to log in txt:)
[Magisk] cLeAv0:
Im on android 9.

Nothing appears on running the command.

Yes its Android/data/com.spotify.music all mounted folders has this.
[Magisk] VR25:
It seems your partition has already been mounted before fbind tried to mount it. Is that it?

Edit your config again. This time, replace all instances of /mnt/sdext with /data/media/0/.sdext. See whether that works.

Do these folders disappear after running fbind -R?
[Magisk] cLeAv0:
It does get removed, but a reboot recreates these folders. And just to add i didn't mount Spotify specifically since it has own settings to store to SD. But i have an Android/data folder mounted for a game which is working fine.
[Magisk] jamronk:
Just wait another module like a simple xintersd or wait Xposed for pie ?
[Magisk] Rom:
I think u will have to wait a very very very long time :angel:
[Magisk] panda822:
Hi,

Can someone help me because I'm very noob at scripts.

I have my Adopted SD Card in /mnt/expand/4a088cba-b5a1-47de-8db4-b92cb171d304

DiskInfo shows that my sdcard is mounted from /dev/block/dm-0

Can someone make for me the script to mount my adopted storage as sdcard or as folder because I can't write on it in that folder (4a088cba-b5a1-47de-8db4-b92cb171d304) and I've tried many examples and other apps without success .

Thank you!
[Magisk] Rom:
Hello,

it's strange that your sdcard is mounted from /dev/block/dm-0, can you enter in a terminal emulator app and run this following command and screenshoot the output:

blkid

It will show us your mounted drives with few other infos.
[Magisk] panda822:
Thanks for helping me. Here is the pic:
[Magisk] jamronk:
EDXposed experimental for pie release bro,, not wait very very long time ?
[Magisk] tau.gi.mo:
Hi,

I use latest fbind together with latest magisk on Android 9 to mount my WhatsApp folder which is stored on SD-Card. This is the command; mount_bind /WhatsApp /. WhatsApp

Now I have the problem that every photo is shown twice in gallery apps like Google photos. The information shows one the path on internal storage which is correct and the other's path is just it's filename. Is there any way to fix this?

Enviado desde mi Redmi Note 5 Pro mediante Tapatalk
[Magisk] VR25:
That's a system issue then. Have you tried mounting Spotify yet?

First, why would you want to mount adopted storage as SDcard? Doesn't this defeat the purpose of adopted storage in the first place?

Anyway, you can use the config line bind_mount <target> <mount point> to mirror a folder.

e.g., bind_mount /mnt/expand/4a088cba-b5a1-47de-8db4-b92cb171d304 /mnt/runtime/default/emulated/0/.adopted

Since that's a media folder, the mount point must be hidden (e.g., ".Whatsapp"). If you used the wizard, you wouldn't be facing this issue.

Here's how to fix it:

1) fbind --unmount WhatsApp

2) Rename the mount point in config to .WhatsApp (mind the dot)

3) Rename the actual folder

3) fbind --mount
[Magisk] tau.gi.mo:
Thanks for your quick response!

Sorry I was confused with the different words for storage, I don't want to mount something as SD-Card, I want to mount a folder on my SD-Card to my internal storage. It is working fine (except for the gallery issue) .

If you check the command I'm using you can see that I already have this dot to hide the folder on my SD-Card. I was using App2SD before and it was working too...

As you can see on the screenshots, one of the images has its path on the internal storage as it should. The other one doesn't have any path, just the file name...

Edit: Just noticed it just happens sometimes after a reboot, right now it's all fine [emoji848]

Enviado desde mi Redmi Note 5 Pro mediante Tapatalk
[Magisk] pat357:
After doing the above, autobind upon booting is finally working !

But now I still have an issue : the "binded folders" on my phones internal memory are not writable : properties says permissions are 755, while normal folders are 770.

As you know, 755 means only root can write, but everybody can read and execute.

Any clue why this is ?

I'm still on Android 7.0 (Nougat) and didn't update yet to Oreo.

Everything is FUSE based as I have sdcardfs=force_off

I include my logs in attachment.
[Magisk] VR25:
According to the log, you seem to be using SDcardFS still. Did you run fbind -f to toggle FUSE? What's the output of <egrep 'fuse|sdcardfs' /proc/mounts>?

Without toggling FUSE, unmount all folders (fbind -u), add noWriteRemount (case sensitive) to your config, mount (fbind -m) and see whether you gain write access to the folders.
[Magisk] Abomb:
Any news if fbind will work again for android 9.0? Not asking for an ETA, just wanted to know if it will be possible to use it again at some point or if pie broke something completely.
[Magisk] VR25:
Pie itself is not the problem. Rather, it's the different SDcardFS versions/implementations. Many people (including myself) have reported success on Pie.

The tricky thing is getting fbind to bypass all the SDcardFS restrictions related to bind mounts. I've been working on that for a while now. This includes an SDcardFS replacement.
[Magisk] VR25:
[MENTION=4970217]pat357[/MENTION], +1 for your insistence on this and for providing the output of <egrep 'fuse|sdcardfs'>!

It all makes sense now.

The nasty Knox surprise is the problem! Because of it, fbind thinks SDcardFS is being used globally. You're indeed using FUSE as stated. But even if you were using SDcardFS, it would probably be working still.

This is a major issue and chances are many users are facing it.

I'll push an update within the next 24 hours.

___

**2019.1.23 (201901230)**

- General optimizations

- More accurate SDcardFS and encrypted data detection

- New command: fbind --remount

- Note on SDcardFS: remounting /mnt/runtime/write/... may cause a system reboot. If this happens, fbind remembers to skip that next times. There's a catch, though! If your system reboots for a reason other than this, fbind will mistakenly add `noWriteRemount` to config. If you stumble across broken bind mounts, remove that line and remount all folders (fbind -um).

[MENTION=4970217]pat357[/MENTION], test this and auto-mount on boot. If the latter still fails, I'll add a secondary mount script. By the way, have you found out why Magisk isn't executing service.sh? (e.g., conflicting module, Magisk's own issue) Does this apply to any other module?
[Magisk] VR25:
I'll enable both.

service.sh will only run if post-fs-data.sh fails.

There's nothing wrong with the variable LATESTARTSERVICE. The problem seems to be related to Magisk itself, as I have no such issue.

I faced this same problem sometime last year, though. It had nothing to do with fbind. It disappeared out of the blue... or perhaps after upgrading/reinstalling Magisk.
[Magisk] bc1977:
Hi,

Is it possible to mount a remote folder (on my Synology NAS) to internal storage?

Thanks in advance.
[Magisk] VR25:
This kind of question is pushing me towards adding native support for all these binaries. The problem is that fbind zips will get significantly bigger/inefficient. Perhaps fbind modules (plug-ins) are the answer.

If you have the proper binaries/app to handle NAS, you may not need fbind. You can mount your remote folder to /mnt/runtime/default/emulated/0/remoteFolder. Alternatively (with FUSE), use /data/media/0/remoteFolder.
[Magisk] Hans_Werner:
After last update 2019.1.23 my gallery doesn't show my pictures anymore.

I transfer all my files with "from_to folder" to ".fbind/folder"

Befor the update gallery shows me all my pictures stored on the device.

Any suggestions?

Thanks'
[Magisk] bc1977:
Thanks for your answer.

Can you point me to something to get it done with FUSE?
[Magisk] VR25:
Are you really using the correct syntax? I see a misleading "to" there. :rolleyes:

Examples:

- from_to DCIM .fbind/DCIM

- from_to Pictures .fbind/Pictures

If the syntax is fine, post the outputs of fbind --log grep DCIM and grep DCIM /proc/mounts , respectively.

I gave you the mount point. Now you need binaries or an app to mount NAS folders. A quick search on Play store only shows apps that can access these folders but not mount globally. I'll experiment with SMBNetFS binary during my off hours.
[Magisk] Hans_Werner:
Thanks' for quick response. Please See attached the txt from grep command.

Regards
[Magisk] VR25:
Have you switched ROMs?

Do you have read and write access to the mounted Pictures folder with a regular file manager?

If you have only read access, run fbind -u, add noWriteRemount to config, run fbind -m and see whether everything is fine. If this doesn't work, try enabling FUSE (fbind -f).
[Magisk] Hans_Werner:
Yes, I have read and write access to the mounted Pictures folder via file manager. (Stock file manager and total commander)

It worked flewessly before update.

No Rom switch.

The fbind config file hasn't changed by me since a while.

I only updated Fbind via MagiskManager.

---------- Post added at 11:45 AM ---------- Previous post was at 11:39 AM ----------

Yes, read and write access still exists (via Stock file manager and total commander)

Never had problems since befor.

I havent' changed my config file since my inital setup month ago.

I also didn't update my Rom since a while.

The only update I did was the fbind update via MagiskManger.

Best
[Magisk] newziim:
help me :/

Is it possible to mount the termux $HOME folder? /data/data/com.termux/
[Magisk] VR25:
[MENTION=6856636]Hans_Werner[/MENTION], that's puzzling. Have tried mounting other folders? Were these recognized by respective apps?

Yes, but what exactly do you want to do with it?

A couple opinions...

- Mount it to internal storage for easy access.

- Move it somewhere else. The best place to store it is /data/media/termux_home or <externalStorage/termux_ext4.img>.

The first can be accomplished with bind_mount /data/data/com.termux/files/home $intsd/.termux_home.

For the latter option, first you have to create an EXT4 image (/sbin/imgtool create <path> <size in MB>). Second, mount that image (loop <image> <mountPoint>). Third, move the data (fbind -M termux). Finally, bind-mount the target folder (bind_mount <imageMountPoint> /data/data/com.termux/files/home).
[Magisk] Hans_Werner:
Found a solution.

I deleted the media storage and cache.

Now the media database are build new and all media files are back.

Thanks' to all
[Magisk] Goranius:
I have some problems with this module and Android Pie in moto x4 (Android One) the module was working very good in Android Oreo and moto x4 but now it doesnt work because it cant create a files in internal memory but it can create folders it is very strange.

I dont know how to send log or what I have to do to send more information

thank you
[Magisk] ghst7:
Hey there folks, can someone help me a bit?

I'm trying to bind a 'data' folder of a game(Star Ocean if that matters), to my sd card, I've tried 3 different ways but without success.

Here's what I tried on my config file:

this didn't work.

also didn't work

this actually worked, when browsing with root explorer the internal folder correctly mount the SD card folder in it's place, but the game doens't launch this way.

So what am I missing? or is not possible to mount a folder from the /data folder?

I'm, running Oreo with magisk 17.1
[Magisk] VR25:
Unfortunately, that's most likely an issue related to SDcardFS. To make matters worse, generally, Pie systems don't support FUSE, unlike Oreo and below. Some users reported success using fbind on Pie (including myself). Your system may have a more recent and more restrictive SDcardFS version. I'm working on a replacement.

Meanwhile, you can try switching to FUSE (fbind -f). If it fails, fbind will automatically revert the change.

[MENTION=5585095]ghst7[/MENTION], that didn't work because your SDcard filesystem is most likely not a Linux filesystem (i.e., EXT[2-4], F2FS). To go around that, you have to create an EXT4 image and save the game/app data there. Refer to https://xdaforums.com/showpost.php?p=78333057&postcount=1275

Feel free to contact me again if you don't fully understand that post and want simpler explanation.
[Magisk] ghst7:
Thank you for replying.

I have followed the instructions and created an img file on my sd card called StarOcean.img(with 3gb), then I added the following line to my config file:

But still it didn't work, apparently it can't mount the StarOcean.img file

This is what is shown on the log:

Even thought it says the file doesn't exist, there is indeed a StarOcean.img file on my sd card when I navigate with a file explorer. Any Idea on what this could be now? Anyway thanks for your reply again.
[Magisk] VR25:
Hmm... ?

I may have missed something in the loop algorithm.

Try /mnt/media*/*/StarOcean.img instead of $extsd. If that fails, try the full path.
[Magisk] ghst7:
Hey thanks again, I did try with full path instead of $extsd but the results are the same:

This whole time and I forgot to mention, but my SD card is formatted as exfat if that matters, maybe the tool '/sbin/imgtool create' have created an invalid/incompatible img?
[Magisk] VR25:
[MENTION=5585095]ghst7[/MENTION], the full path should start with /mnt/media_rw instead of /storage.

This is why you had to create the EXT4 image in the first place! If the filesystem were EXT[2-4] or F2FS, you wouldn't need that. ;)
[Magisk] DumbKing@letthemeatspam:
Will this app allow me to mount a filesystem that can be viewed by all apps instead of just apps that have root (like ES File Explorer).

I'm using the "Mount Namespace Mode" in Magisk but I need other non-root apps to be able to see my custom mounts wondering how that's possible thanks so much great stuff please help me

edit -- I installed fbind onto my nvidia shield thru magisk and rebooted but in Termux it says "No command 'fbind' found, did you mean:" any help here? Seems like it's not detecting fbind but it's in /data/adb/

fbind is not in /sbin/.magisk/

is install on shield supported? here is log:
[Magisk] VR25:
You can mount a filesystem on /mnt/runtime/emulated/0/someFolder or (only if that doesn't work) /data/media/0/someFolder. Refer to the documentation for details.

The log says it's installed and working.

Try reinstalling.

Did you run "su" first or "su -c fbind"?
[Magisk] DumbKing@letthemeatspam:
ah thanks mounting a folder on /data/media/0/someFolder worked

I was using "tsu" instead of su, thank you!
[Magisk] DumbKing@letthemeatspam:
Is there any way to get the mount to show up to non-root processes on an external drive? I'm struggling through that right now. I don't have enough data on internal storage to make mounting on /data/media/0/someFolder a long-term solution
[Magisk] Kungfu73:
Hi [MENTION=5228676]VR25[/MENTION]

for my phone, this module was working great! But after the updates in 2019, it stopped working and whenever I typed fbind (with su), it did nothing.

Before reporting the issue, I debugged the module (ver 2019.1.23) with " bash -x fbind " and found that it stops at line 201 of core.sh.

So here I found that the condition written there, doesn't apply to my phone! because there is nothing in my "/data/media/0" and both my internal and external storages are in /mnt/media_rw/ so it waits forever! (wasn't it better to refer to intsd here!?) I simply wrote "/mnt/media_rw/my_intsd_name " and it worked great (like before) for me :) and it will be amazing if you fix it for us ;)

I hope my info would be useful for you.

Thanks in advance.

------------------------------------------

Edit: Sorry, I didn't se the info at line 199 of core.sh (# wait until data is decrypted). So forget my opinion in changing the condition value to intsd. (So maybe you can create that foder for first time if it doesn't exist after boot.)