yashsingh1/xdaforums huggingface dataset:
[Magisk] zdoe:
back slashes?

thanks, [MENTION=4970217]pat357[/MENTION].

ok - played with a backslash - no jive. and yes, the folders do exist, don't know if i did them manually or with fbind.

this does make me think, though:

mkdir: can't create directory '/mnt/media_rw/CC6E-7680/.fbind/download
': Invalid argument

the "invalid argument" goes to 2nd line, as if there was a line feed after .../download in the target.

i simplified things for troubleshooting:

config.txt

from_to Download \download

debug.log

Sun Apr 1 11:44:26 GMT 2018

<Storage Information>

/dev/block/vold/public:179,65 /mnt/media_rw/CC6E-7680 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /mnt/runtime/default/CC6E-7680 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/CC6E-7680 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/read/CC6E-7680 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/write/CC6E-7680 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

Filesystem Size Used Available Use% Mounted on
/dev/block/vold/public:179,65
56.4G 42.2G 14.3G 75% /mnt/media_rw/CC6E-7680

Filesystem Size Used Available Use% Mounted on
/dev/block/bootdevice/by-name/userdata
10.0G 5.5G 4.5G 55% /data

<Bind-mount>
mkdir: can't create directory '/mnt/media_rw/CC6E-7680/download
': Invalid argument
[/data/media/0/Download] <--> [/mnt/media_rw/CC6E-7680/download
]
mount: mounting /mnt/media_rw/CC6E-7680/download
on /data/media/0/Download failed: No such file or directory
- Done.

<Cleanup>
- Nothing to clean
[Magisk] pat357:
I'm sorry it didn't work for you.

It was worth a try as someone had success by using this trick.

I don't think so :

mkdir: can't create directory '/mnt/media_rw/CC6E-7680/.fbind/download

The error is clearly because it can't create a folder with the name starting with the single quote.

You could ry this in a shell terminal :

mkdir '/mnt/media_rw/CC6E-7680/.fbind/download
or just
mkdir 'test

You will get the same error !

So, the same errors remain there....

What happens if all folders on extSD are there and all data is moved to extSD and you just do

fbind -u

fbind -b

In case you have already tried this, I have one idea left to make the mkdir command succeed :

As we know,

mkdir '/mnt/media_rw/CC6E-7680/.fbind/download

, fails, but

mkdir '/mnt/media_rw/CC6E-7680/.fbind/download'

will succeed.

(notice the extra single quote as the last character to close the first single quote.)

This means adapting your config.txt as follows :

from_to download .fbind/download'

Notice the following :

download is case sensitive :

if you have a directory Download on your intSD, you have to write from_to Download .....

Put a single quote at the end of every line in config.txt

In case it doesnt work immediately, make sure to look again after rebooting.

I really hope this one will work, because for the moment I'm out of ideas.

We really need VR25 to solve this problem in his code.

It used to work extremely well, but due changes in Magisk/Busybox/Fbind code or maybe even something else, it stopped working for most people.

It would be sad that more and more people would stop using it and look for alternatives, while this powerful module would silently die.

Please [MENTION=5228676]VR25[/MENTION] come and try to fix this problem !

I'll be beta-tester if that's the problem, but I think more people are willing to test to get the fbind-module back and 100% working !
[Magisk] zdoe:
yes:

cedric:/ # mkdir 'test
mkdir 'test
> '
'
mkdir: 'test
': Read-only file system
1|cedric:/ #

1|cedric:/ # fbind -u
fbind -u

Unmounting...
[intsd/bcr/imgs]
[intsd/Download]
- Done.

cedric:/ # fbind -b
fbind -b

Bind-mounting...

': Invalid argument directory '/mnt/media_rw/CC6E-7680/imgs
]intsd/bcr/imgs] <--> [extsd/imgs
on /data/media/0/bcr/imgs failed: No such file or directory

[intsd/Download] <--> [extsd/Download]

- Done.

e.g. - bingo! binding the Download folder did succeed! on a limb, i tried config sys with no return at the end of the file, and it works. then i tried config.txt with

two lines - and only the last line succeeds (it has no return). i have written config.txt with notepad+ on a windows computer, and copied it over.

and now - if i use notepad+'s EOL conversion to unix, it does work, and the two binds succeed.

e.g. my problem the whole time was that i had windows returns where fbind needs unix ones. now, i'm a noob on unix/linux/android - but i've never seen this problem before when manipulating config files on other programs with windows, and thus didn't expect it.

in any case - i'm in business, and trust all will work now if/when i use EOL conversion. on retrospect - the sample config files should mention about this - in case i'm not the only user who hates typing command lines on a phone, or moto 5G is not the only phone that behaves this way.

thanks for your patience, [MENTION=4970217]pat357[/MENTION], and thanks [MENTION=5228676]VR25[/MENTION] for a great utility. and shame [MENTION=8108625]Google f[/MENTION]or trying to make my hard drive accessible to only you not me.
[Magisk] Balteck:
Hello, I've installed fbind from magisk manager 5 (magisk 16 installed) on Huawei P10 Emui8 / Oreo

I did a simple config:

from_to WhatsApp .bind/WhatsApp

from_to TitaniumBackup .bind/TitaniumBackup

fbind mount without errors and also I got the folders mounted at boot.

If I use TotalCommander and I go to /data/media/0/WhatsApp I switch from internal storage to external SD

BUT if I go to /storage/emulated/0/WhatsApp I stay on internal storage (infact the content is different form which one is in SD)

Unluckly WhatsApp looks at /storage/emulated/0/WhatsApp and not at /data/media/0/WhatsApp.

The same behavior I got with TitaniumBackup

I've tried to put in config intsd_path /storage/emulated/0, but nothing happened and I was need to uninstall magisk and fbind because in terminal fbind didn't work anymore
[Magisk] shin_chan:
Lost my data - Be Careful!

Somehow lost all my data with "fbind -mb"

If I check the fbind folders there is just this data, just one image from thousands that were supposed to be moved (screenshot).

WhatsApp is not working properly anymore, any received media can't be opened. So I tried fbind rollback, but it doesn't work.

It start to execute after a while the terminal is closed, but I can go to the terminal "fbind -l" and it's all there...
[Magisk] zdoe:
i'm a happy camper as this now works, but...

can i use it to bind a folder on the extSD to another folder on the extSD? if so, how?

(k9 mail (and i guess some other apps as well) can only write to a specific, convolutedly named folder on the extSD)
[Magisk] DonYayo:
work perfectly, thank you so much Dev.

I'm trying on an S7 edge with Batman rom, it works well
[Magisk] Balteck:
Some Devs may help me, please?
[Magisk] daddylonglegs:
I apologize if this is an incredibly stupid question. I am pretty sure this module does what I need, but the OP seems very tech-heavy and I am not really a programmer or anything.

I have a USB-C microSD adapter and a lot of my apps in Android cannot see it (for example, a PS1 emulator). It will navigate to storage/emulated/ with no issue, but that's it. Does this module make it so that my microSD card would show up in there that folder?

If so, I tried to both flash the module and install it within Magisk but no matter what it causes my phone to get stuck at the Google logo (it's a Google Pixel 2016).

Is there something I am doing wrong? Is there something else I can try? Sorry for all these questions!
[Magisk] Hans_Werner:
Same behavior. Phone stuck at boot logo. Flash fbind via magisk and / or via Recovery.

I am on Carbon Rom 6.1 Sony z2 (Android 8.1).

With Android 7.1 No issues so far.
[Magisk] jemail:
If I install this module Magisk Manager fails to remember it's settings and always starts as though it is running for the first time. I have not touched Android folder at all.

Anyone experiencing this?
[Magisk] Deus.:
I have something similar. Every time I restart my phone, Magisk modules (the Venced YouTube, My Charging Controller, Xposed) cannot be found. I have to restart into recovery and install Magisk again, otherwise I can't use them.

Altough the fbind works like a charm and mounts everything that's in the config file.
[Magisk] Mikami15:
Will this works on Android oreo?
[Magisk] pat357:
The fact that you can't see some modules besides the one from fbind, is probably caused by the fbind module.

You can easily test this by first disabling the fbind module and reboot your phone : if all modules show up now

(and are working !) you know for sure that fbind is the culprit wrt your reboot problems.

Please let me know how the test turns out.

BTW : what version of Magisk do you have ?
[Magisk] Deus.:
I just tested it and if fbind is disabled everything works as expected.

Magisk's version is 16.3.
[Magisk] hinguparth23:
My files have moved whatsapp data to sd card but now i m unable to access my images on whatsapp.

How can i access images which i have moved to sd card from whatsapp. Please help me
[Magisk] Deus.:
You just moved WhatsApp data or you bound the WhatsApp directory to the SD-card directory? Edit the config file amd add a similar entry to this:

from_to WhatsApp path/to-the/WhatsApp-onSDcard
[Magisk] hinguparth23:
I had written from_to WhatsApp \.fbind/WhatsApp

Okay now i have written what u said. What next should i do? What command should i write in terminal to make things work?
[Magisk] Deus.:
fbind - b

But read the help, it is documented there :)
[Magisk] hinguparth23:
Thanks for the help but doing this creates data on int & extremely as well and still i m unable to fetch data in my app.

What should I do?
[Magisk] Deus.:
First of all, read the documentation, everything is written there what you need. I hope you didn't copy-paste what I wrote earlier, the "from_to" part, because the 3rd column must be changed based on the location of your WhatsApp directory.

How your configuration file looks like right now? Did you bind the data directory somewhere on your SD card?
[Magisk] hinguparth23:
Yes i read the document but unfortunately I am newbie in this scripting, have knowledge related to apps but i am unable to comprehend in this case. Your guidance will truly help me in understanding this case.

But now I have written from_to WhatsApp \.fbind/WhatsApp

And then "fbind - b" in terminal
[Magisk] Deus.:
That mounted your internal WhatsApp folder into the WhatsApp folder in a hidden folder, called ".fbind". What you need is:

from_to WhatsApp WhatsApp

So, steps to take: copy everything that is WhatsApp related from everywhere into the WhatsApp directory on your SDcard and restart your phone.
[Magisk] hinguparth23:
Thanks it did work but now there is duplication of data.Same Data is on int and sd as well so wht to do?
[Magisk] Deus.:
Dude, please use your phone or PC or notebook and Google it. Here you go: http://lmgtfy.com/?q=hide+media+android
[Magisk] pat357:
The data will show on both int memory and extSD card, that is perfectly normal and means that the binding has worked.

But in reality, the data is only present on extSD, and does not consume any space on your phone memory.
[Magisk] hinguparth23:
Oh.. Thank you ☺
[Magisk] Deus.:
Hi again,

Is there any workaround for the issue that I have to install Magisk with every restart otherwise only fbind will be active, but the other modules not?
[Magisk] pat357:
What version from Magisk/fbind-module ? Have you tried an older fbind version ? (I still use fbind v2017.9.10 with Magisk 16.2)

Do you use loop devices in fbind ?

Can you post your config.txt file for fbind ?

PS.

If VR25 (author fbind-module) does not release an updated version before or short after the next Magisk stable release, we will have to choose between staying on an older Magisk and use fbind or updating Magisk and loosing the fbind-module.

The next stable Magisk no longer has a post-fs-data mode, which is needed by all fbind versions and other things like MinMagisk=1500.
[Magisk] Deus.:
I'm not 100% sure what is a loop device in this context, if an SD card is, then yes.

My config is the following:

from_to DCIM Kepek/DCIM

from_to Pictures Kepek/Pictures

from_to MagiskManager ROM/Magisk/Modules

from_to Download Download

from_to Music Music
[Magisk] The_Walking_Playground:
Hi,

This is incorrect. The next version of Magisk will be removing post-fs mode, not post-fs-data mode. The fbind module will be unaffected.

TWP
[Magisk] pat357:
I must have it interpreted the statement incorrect then.

Can there still be a post-fs-data mode when post-fs mode will be dropped ?

And by post-fs-data I don't mean just some mounting, but things like resetting ro.props and running scripts.

But you're right, I do not have Magisk 1640 installed yet, while you might have it installed and tested already.
[Magisk] Didgeridoohan:
Boot stages explained here:

https://github.com/topjohnwu/Magisk/blob/master/docs/details.md#boot-stages

It's post-fs that's been removed in v16.4.
[Magisk] seancyril:
Hi there, can anyone give me a walk through on the correct way to bind my internal obb folder to an obb folder on my external sd card. I have tried following the instructions but am not having any success.

When i run the obb command do I need to specify exactly where my internal and external obb folders are?

I tried editing the config file with

obb--> obb/*

but it just said no such files or directory as obb/*

I also tried

obb--> /mnt/extSdCard/Android/obb/*

as I think this is where my sd card is in the file structure but again it said no such directory. [I do have an obb folder under /Android/ on my sd card]

Any advice much appreciated
[Magisk] Savek:
Installation fail with Magisk v16 and LineageOS v15.1

Ok - tried installing / re-installing; manual checking for 2h now - but to no avail:

Tried to install fbind to a phone with Magisk v16.0 on LineageOS 15.1; log attached. Busybox was installed before as documented.

Missing fbind binary in /system/xbin; probably also missing more stuff as seen in the log.

What am I doing wrong?

P.S.: regarding the first losetup error:

UPDATE: did a clean re-flash of LOS 15.1, installed Magisk 16.4 Beta - works now.

Solved.
[Magisk] Savek:
Ok - new problem ;)

I did a link from_to "WhatsApp/Media" ".fbind/WhatsApp/Media" after moving all data to the new location.

After starting WhatsApp, I can see and open all the existing media items - so reading from the bound directory apparently works.

When trying to send or download a new media object, it fails though (starts download and then gives me the "retry" button) as if it is unable to write to the directory.

Any ideas?

Solution: Linking the complete WhatsApp folder (instead of just the WhatsApp/Media) does work though.
[Magisk] R324D:
Just add line "obb" (without quote). Thats it, you are good to go..
[Magisk] Termi93:
Meh... because FolderMount doesnt work under RessurrectionRemix 6 i gave Magisk and this module a try...

But i can't even run a command. Having the recommended BusyBox installed but no fbind files in system/bin and system/xbin.

The fbind folder in media was created with the dummy config.txt though.

Would there be an option to rebind the old FolderMount folders without having to put them onto the internal storage first and move files & mount?

Flashed it with TWRP and got the file in system/xbin but system/bin is still missing it's fbind script.
[Magisk] Harlock1978:
Probably a bug

I think I found a bug.

I wanted to bind the Media directory of GBWhatsApp from the internal storage to the SD Card so I run the following command:

The directory contained 1700 Files occupying 980 Mbyte, but on the SD there wer only 480 Files occupying 147 Mbyte. Luckily I did a backup of the original media directory and I noticed that almost all the recent files were missing.

Even copying the missing files change nothing, GBWhatsApp was still complaining that all the video and Photos were missing.

I noticed also that the Media directory I was binding is missing in the original location.

I cannot access the binded directory on the SDCard from PC and some files in the root of the SDcard are showed as 0 byte on the PC while Root explorer see it well and can open them on the Phone. When I revert Config.txt to the original this problem disappear.

P.S.

I have Magisk 16 on P10lite with Stock ROM
[Magisk] 0LDST4R:
CarbonROM 6.1 is very special in combination with the great fbind module, but fbind is working. CarbonROM 6.1 has no /system/xbin dir. To make the module work, extract it, goto system dir, rename xbin to bin, zip the module, flash it. No more bootloops.
[Magisk] reckfield:
followed every steps, I already installed magisk and the magic folder binder, but i'm still very green on this, could anyone tell me a example how to "bind whatsaap folder", its seems that i have to introduce via command lines, but i dont know how to proceed.

PS: Also check the xda magisk folder binder official thread, it sounds double dutch to me
[Magisk] MorpheusKiller:
Hi,

i've a problem with this modul.

When i install it all my other moduls aren't working anymore and even mgaisk manager is not working like it should (it's "forgetting" the setting for the updatechannel and is always showing the changelog when starting).

At the moment i only have fbind and youtube vanced as modules installed. I've tried it with 16.0 and 16.4, always with the same outcome. When i deinstall fbind the other models and magisk manger are working witout problems. As soon as i install fbind (even without binding any folders, what is working btw!) the problems starting.

I'm running [ROM][TW Official OREO 8.0] CivZ-G935F/FD-G930F/FD Multi CSC on Galaxy S7Edge

If any Logs are needed, pleas tell me wht you need
[Magisk] reckfield:
I have sony xz1 compact g441

All this comes from "luminoso" user , (I don't know whether responsable or irresponsible explained) Who explain us we can move Storage app to SD card via magisk module folder binder, because I have a big issue with Whatsapp, so far I have 10GB in the folder.

To truth is after reviewing the steps, I follow strictly the process, first paying 20 euros to xperifix, and after magisk installation and folder finder.

I execute the module via emulator :

Fbind -a

And I add this lines

from_to WhatsApp WhatsApp

It does not Work!

Also I installed Exsdcard access enabler

It does not work

Any expert from here can help me out

Thanks

!!
[Magisk] kishd:
Solved the problem by commenting out this section in post-fs-data.sh

# Set Magisk SU's Mount Namespace to Global

cd /data/data/com.topjohnwu.magisk/shared_prefs || exxit 1

target=com.topjohnwu.magisk_preferences.xml

target_owner="$(ls -l $target | awk '{print $3}')"

target_Scon="$(ls -Z $target | awk '{print $1}')"

if ! grep -q 'mnt_ns">0' $target; then

sed -i '/mnt_ns/s/[0-9]/0/' $target

chown $target_owner:$target_owner $target

chcon $target_Scon $target

chmod 660 $target

fi

Instead just set the global namespace manually in the settings.

All the settings now stick across reboots
[Magisk] der_Kief:
[MENTION=4313092]kishd[/MENTION]

may you please give a detailed description what to do ?

How to set the global namespace manually ?
[Magisk] kishd:
I edited the file /magisk/fbind/post-fs-data.sh

delete the lines in my post above.

The global namespace setting is in magisk settings under "mount namespace mode"

I have attached a modded zip with the changes that I made. I also removed the part that changes selinux to permissive mode. It works for me.
[Magisk] Hans_Werner:
Many thanks.

Changing /system/xbin to /system/bin works great.

No more bootloops
[Magisk] 0LDST4R:
No problem, glad to help, but be careful when you update your ROM, i noticed that you must flash the modified zip after each update. I linked the whole intsd to extsd and had a totally crash after an update, many fc's, because the modified fbind module did not survive.
[Magisk] kishd:
[MENTION=5228676]VR25[/MENTION]

Fbind

I noticed that the code to alter the magisk settings to enable global namespace causes magisk itself to be unable to write to the settings file resulting in changes to the settings in magisk not sticking. Could you look into this.
[Magisk] shyvanna:
Hello, i just installed fbind through MM. I have the latest magisk installed which is 16.4. My kernel is also set to permissive by default because i use viper4android.

Steps taken so far:

- set extsd_path to /mnt/media_rw/extSdCard

- fbind -b is successful but accessing it through Solid Explorer shows nothing, downloading from OGInsta shows cross-device link error

- set intsd_path to /data/media/0, /mnt/sdcard, /storage/legacy/0 but still nothing

-set mount namespace in magisk to global, now fbind -b shows cross-device link error on some but not all. Like Pictures and DCIM show success but accessing it fails.

I have Touchwiz 5.1.1 btw

Any thoughts? What have i missed?

Edit: Solved. Had to disable sdcardfs using another app.

time fbind -b shows 10m34.05s, is this natural?
[Magisk] Hienz:
Sorry for being stupid but I'm stuck at step 4 what does it mean? I mean how do I add lines? and what lines should I add?

EDIT: Nevermind, I figure it out works perfectly now. However when I try to delete lines from /data/media/fbind config.txt it keeps coming back. Any help?
[Magisk] vfkkdamp:
Can confirm. Lost data as well and just left with few files. Everything is still working, just lost data. Forgot to save logs before doing rollback and uninstalling module.
[Magisk] solifice:
Thanks bro u saved me from going hell
[Magisk] vboechat:
Im trying this on my xz1 compact (used xperifix to enable magisk/root)

but i need to get deeper into this because i never did it before

but, in general lines, is it possible to merge internal and external storage, right? I mean, to enable "adaptive storage"
[Magisk] Mase_sanchez:
HI Bud!

can you share the name of the app you used? im facing the same issue (process seems to complete but moving to the folder with total commander shows nothing and game redowloading data) i have a J7 Prime so i have touchwiz.

thanks for the reply
[Magisk] tetzlav:
lost alle my WhatsApp-data...

after "bind -a" ---> "from_to WhatsApp .fbind/WhatsApp" ---> "fbind -mb" with "success" (but the mv goes very fast, too fast...) and now 5GB of WhatsApp data are in hell...

:(
[Magisk] kishd:
[MENTION=1893948]wstephen[/MENTION]

I had to add a backslash to comment out the . in the path statements to get it working.

from_to DCIM .fbind/DCIM was edited to

from_to DCIM \.fbind/DCIM

I have attached my config file that works quite well.