jstaf / onedriver

A native Linux filesystem for Microsoft OneDrive
GNU General Public License v3.0
1.88k stars 92 forks source link

Is it possible to mount Onedriver to an existing Onedrive folder used by Windows? #305

Closed Majinkensword closed 1 year ago

Majinkensword commented 1 year ago

For context, I am currently on Windows and POP OS dual boot.

I have one NTFS-formatted HDD where my OneDrive folder resides.

Question is, is it possible to mount OneDriver using that folder? I tried mounting it but an error saying that the folder needs to be empty in order to mount. I am doing this so I can share the files across OSes.

Hope I was able to explain that properly. Thank you!

jstaf commented 1 year ago

Unfortunately it is not possible to share files between OSes. Onedriver actually doesn't store your files in the mounted directory, it puts downloaded files and their metadata (filenames/etc.) inside a special cache folder in your home directory (by default ~/.cache/onedriver) and then tells Linux that the "files" are present in the mountpoint and lets it access these "files" as if they were normal files on your hard disk. There's more reading about how this process works here: https://en.wikipedia.org/wiki/Filesystem_in_Userspace (onedriver is a FUSE filesystem).