***** This is one of the very best and most complete presentations I have seen in my 20 years on Linux. Many thanks not just for the OneDrive but also for the introduction to 'rclone', it looks interesting! *****
Wow, someone who gets straight to the point without all the rubbish of link like subscribe and their life story, thank you so much, one of the best I have used.
Just a line to say THANK YOU for the most practical, informative and easy to follow tutorial about this much needed topic. Keep up the good work, you got yourself a subscriber here! 🙂
Makasih banyak pak, akhirnya saya bisa menjalankan sinkronisasi OneDrive di Ubuntu, manjaro, mint,endeavourOs, windows10, dan android. Tidak terbatas di 3 device.😀😀 Salam hangat dari Indonesia, 🙏🙏
Absolutely phenomenal work, I've been struggling to make the default "onedrive" package work for so long, and this alternative solution is excellent, thanks so much!
Thank you so Much!!! I'm a complete beginner to Ubuntu so it took me a few minutes to realise I have to write "sudo apt" rather than "pacman -S"... but after that it was super easy and I have Obsidian backed up to Onedrive now!!
I have an older PC that is not capable of running current Windows versions but does work great with Linux. This helps me a lot to access my shared files on OneDrive. Thanks so much!
Thanks for that. it actually worked. For some time, I have been using OneDrive between different computers, and now I can use these files on Linux. Great job. I had a problem at the beginning with pacman. I am using Linux Mint and it installed the game pacman. I went to Software Manager to install rclone. That then worked in Terminal. And thanks for including the steps on your website. I only just saw that. I just rebooted the computer, and it works, as you said. Thanks.
Thank you so much for this tutorial. Got a little stacked at the end. Since I'm using Gnome I couldn't see the option to add custom commands to run in the start up. This worked for me: Create a file called "onedrive.desktop" (or whatever you want to name it) in /config/autostart . The file should look like this: [Desktop Entry] Name=Mount OneDrive (or whatever you want) Comment=Mount OneDrive in file system in Fedora (or whatever you want) Terminal=false Exec=sh -c "rclone --vfs-cache-mode writes mount onedrive: ~/OneDrive" (or the name of your folder) Type=Application Voila
Thank you so much for the excellent presentation! With this I was able to include my second OneDrive account that I created from Android. It also worked on Lubuntu 18.04.
Excellent presentation by someone who clearly knows what they are doing. These instructions work. One 'glitchette' when using Libre office however, when a document is selected from the onedrive view, it will initially fail with an I/O error - however, when the same document is immediately selected again, then it works fine. Beware however when using Libre Office with Onedrive on Linux when using documents with links to other documents. I'm sure between them that Libre Office and Rclone will sort this out.
thank you very much for your video! Beeing not too experienced in Linux Mint I even managed to sync GoogleDrive as well - and installed pacman ;-) . I also like the style of your presentation which is understandable even for me as non native speaker. Applaus aus Deutschland !!
This is awesome, thanks. If anyone's having trouble running the pacman command like I did, you can download rclone via the rclone.org website and follow their instructions, then come back to this vid once it's installed.
Thanks a lot man! I had already installed rclone from some other tutorials but they didn't have the mounting part. This is the first complete tutorial I watched.
There's a slight issue that is kind of a dealbreaker for methough..:/ I cannot run my executables on that drive because I don't have such permissions. How can I mount my OneDrive so that I can run executables on it? Thanks in advance!
If you do this on July 28th, 2022 it will go a little different. For example selecting (22) for Microsoft Onedrive Personal was (32) when I did it. There are more differences. I'm commenting more than 2 years after he made this video.
I am writing this comment as a NOTE to my future me who is trying to figure out how to execute C/C++ programs from the mounted directory. So basically I have just added "-dir-perms 0775 --file-perms 0775" at the end of the command. The whole command that you specify as a start-up application should be: sh -c "rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive --dir-perms 0775 --file-perms 0775"
Great work mate! been looking for this tutorial for almost a week now for my linux setup, this is the one that only works! just a question, Does this work aswell for google drive? an answer would be so much appreciated. Thanks!
Hello Fairly Basic Tech. Thank so much for your clear step-by-step video. I have just successful completed your instructions on a RaspBerry Pi4 running Ubuntu 21.04. Only a suggestion to make this video even better. You know Pi4 have small amounts of "Hard Disk Space" so you should also address questions on how to config on-demand files/directories so that we do not run out of space if one drive decides to sync all 1T content we have on cloud.
Oi Guilherme, I was also concerned about this because I know that some other tools work like this. But rclone is accessing OneDrive online. It is not syncing the files to the disk. So this will work for you.
Great presentation - worked right away for me. Just one issue: - with ubuntu 20.04 or 22.04 when I issue the command: rclone --vfs-cache-mode writes mount onedrive: ~/onedrive it hangs and the command line does not return. However, I just put the command in the background and things work fine.
This procedure worked fine. Thank you very much. A side note. Eventually, I have problems after closing the command. Example. After executing the command and closing it after use, some times the folder becomes unavailable and if you execute it again, it shows: "fatal error: can not open: /path/to/folder open /path/to/folder: Transport endpoint is not connected" Which I could only solve until now by rebooting. Thanks.
Why is recommended to put onedrive on start up applications? (Sorry for the question and thanks for the tutorial, you have saved my academic year today)
It makes it easier to access when the drive is automatically mounted at startup, but it's certainly not required. If you'd rather not have it automount, you'd just need to manually mount the drive before using it after each reboot.
I tested this application for a while and I found it very slow in navigation and opening the documents. I was frustrated until I discovered Onedrive GUI. This sw it’s based on onedrive but all the configuration is made over gui which it’s very similar to Microsoft’s. This method is more fast and the navigation it much more fluid.
after using ubuntu, i still prefer windows, as windows is so much easier to use and worry free. i only use my linux pc for very light job, like watching movies or youtube.
Very good video but I am having a problem. Followed your steps without any issues until I get to 3:07 in your video. After you select 0 for for onedrive it says "Found Drive" when I select y for ok get this error: 2020/03/28 17:11:33 Failed to save config after 10 tries: Failed to create temp file for new config: open /home/dell/.config/rclone/rclone.conf370680895: permission denied I obviously have a permission wrong as I am getting back into to Linux Any suggestions?
Hmm...definitely a permission issue. That could be caused by a few things. Try the solution here: stackoverflow.com/questions/60445517/installing-rclone-according-to-the-official-instructions-but-permission-denied .
Fairly Basic Tech I will give that a try when I get a chance. Typed the error message into Google and this error has been around for awhile. As far back as ver. 1.38 based on what I was able to get on line.
I have a query, I arrive at the moment that you give me the link and in your video I see that the website to log in appears alone but in mine it does not open, what can be done to solve the problem?
iam facing this: mpsc@mpsc-Lenovo-G500:~$ rclone --vfs-cache-mode writes mount onedrive: ~/onedrive Fatal error: failed to mount FUSE fs: cannot get mounts: open /proc/self/mountinfo: permission denied
I'm not seeing the startup applications in manjaro kde. how do i add the auto mount? would editing fstabs work if i cant get it? i just switch today and ive been excited, but im gonna need onedrive for school
Looks great, though I haven't tried it yet. Some questions: 1) Are the install and setup commands the same for Linux Mint 20.2 ? Will it auto sync with my existing One Drive Directory in Win 10, if they are on the same Microsoft account? Or 3) do I have to transfer existing files manually..if so what is the best method for about 200 folders & files?
is this method always rewriting back to your mounted drive? once you run the command once it will not re download all the data again ? i have a 1 terabyte of data
Thx, I was looking for something like this for so long. Basically one tool that can mount different cloud-services and it is so easy to setup, even though it doesnt has a GUI. Only thing Iam concerned, are the files that are mounted stored on the hard drive, so are they constantly taking space? Or can you choose to download/keep specific files just like in the native clients (e.g. for windows)?
Thanks! By default, this method does not make a local copy of the files, so no additional storage space is taken up on your computer. If you want a local copy, Rclone has further options that can do that. See rclone.org/commands/rclone_copy/ . Just be careful using this functionality because it's awful easy to accidentally delete something online when syncing this way.
HI, thank you for the video. I already have a folder OneDrive that I copied from another laptop. The command rclone --vfs-cache-mode etc.. does not work since the folder is not empty and I get the message to use "--allow-non-empty" option, but where should that command go?
i have a problem.. this worked when I first tried it, but when I rebooted, the `rclone --vfs-cache-mode writes mount onedrive: ~/OneDrive` command didn't mount OneDrive in the folder edit: also, is it ok to shut the terminal when the command is running? doesn't that affect future runs? update: I deleted and recreated the onedrive remote and it worked again. I think if I reboot I will have to do this over again. might create a script that does this every reboot update #2: it fully worked this time. high expectations set to work with this!
I used this to set up OneDrive in Linux Mint Cinnamon 20.1. Soon I may upgrade to 20.2. Will the upgrade preserve this setup? Or will I have to do it all over again?
Please i need some help: I install rclone with "sudo apt install rclone", cause when i try with that "pacman -S rclone" sentence dosnt work. Then i follow the steps exactly as in the video but after loging on microsoft step, the terminal show me "got code" and access token with all those chain caracter, but then never show me the option of choose "one drive personal or busines" where he intro "1" and then to personal "0". After the login and "got code" the terminal give me the "Yes this is ok" option and then quit config. Then when i keep the tutorial like in the video i create the folder in home and then put in the terminal "rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive" and the terminal answer me "Fatal error: unknown flag: --vfs-cache-mode". Why? =( PS: Both "OneDrive" are well written, im on Linux Mint 19.3 cinnamon
Your video was truly inspiring and even a live saver for me. Does it work with OneDrive Business as well? Thank you again for pointing me in the right direction here!!
So every time you start up you're running that command that setups the onedrive mount. Does that mean that every time you start up you're downloading all your files or are they already stored on your machine from the last session and they're just sorta "being made visible" ?
Yes. It essentially works like mounting a network drive. Anything you put in the folder is uploaded to the cloud, and anything put in your cloud storage from another device will show in your OneDrive folder. The only catch in setting it up this way is that you have to be online to access the OneDrive share. This method does not create a local copy that will be accessible offline.
***** This is one of the very best and most complete presentations I have seen in my 20 years on Linux. Many thanks not just for the OneDrive but also for the introduction to 'rclone', it looks interesting! *****
Thank you so much! That really means a lot to me!
you exagerate, but it's a good video!
Wow, someone who gets straight to the point without all the rubbish of link like subscribe and their life story, thank you so much, one of the best I have used.
Just a line to say THANK YOU for the most practical, informative and easy to follow tutorial about this much needed topic. Keep up the good work, you got yourself a subscriber here! 🙂
Makasih banyak pak, akhirnya saya bisa menjalankan sinkronisasi OneDrive di Ubuntu, manjaro, mint,endeavourOs, windows10, dan android.
Tidak terbatas di 3 device.😀😀
Salam hangat dari Indonesia, 🙏🙏
Absolutely phenomenal work, I've been struggling to make the default "onedrive" package work for so long, and this alternative solution is excellent, thanks so much!
Thank you so Much!!!
I'm a complete beginner to Ubuntu so it took me a few minutes to realise I have to write "sudo apt" rather than "pacman -S"... but after that it was super easy and I have Obsidian backed up to Onedrive now!!
Thank you so much!! People like you make switching to linux soooo much easier!
Thanks so much for this. I've just gone from Windows to Linux and I didn't want to cancel my office 365. Really appreciate this
I'm glad it helped!
The best solution. Thank you for solving the problem for me
I have an older PC that is not capable of running current Windows versions but does work great with Linux. This helps me a lot to access my shared files on OneDrive. Thanks so much!
Thanks for that. it actually worked. For some time, I have been using OneDrive between different computers, and now I can use these files on Linux. Great job. I had a problem at the beginning with pacman. I am using Linux Mint and it installed the game pacman. I went to Software Manager to install rclone. That then worked in Terminal. And thanks for including the steps on your website. I only just saw that. I just rebooted the computer, and it works, as you said. Thanks.
same here :)
Thank you so much for this tutorial. Got a little stacked at the end. Since I'm using Gnome I couldn't see the option to add custom commands to run in the start up.
This worked for me:
Create a file called "onedrive.desktop" (or whatever you want to name it) in /config/autostart . The file should look like this:
[Desktop Entry]
Name=Mount OneDrive (or whatever you want)
Comment=Mount OneDrive in file system in Fedora (or whatever you want)
Terminal=false
Exec=sh -c "rclone --vfs-cache-mode writes mount onedrive: ~/OneDrive" (or the name of your folder)
Type=Application
Voila
Thank you so much for the excellent presentation! With this I was able to include my second OneDrive account that I created from Android. It also worked on Lubuntu 18.04.
Thx Loads this is the thing ive been waiting for to finish my migration to Linux
Thank you! Worked perfectly the first time thanks to your instruction.
dude I love you please don't stop making videos
Excellent presentation by someone who clearly knows what they are doing. These instructions work. One 'glitchette' when using Libre office however, when a document is selected from the onedrive view, it will initially fail with an I/O error - however, when the same document is immediately selected again, then it works fine. Beware however when using Libre Office with Onedrive on Linux when using documents with links to other documents. I'm sure between them that Libre Office and Rclone will sort this out.
good tutorial , concise and to the point
Just what I was looking for. Beautifully presented. Thank you for your help.
10/10 Worked first time which is a rare thing for me :D
gracias viejo! es justo lo que estaba buscando,, soy nuevo en linux
So incredibly helpful, I didn't know it was this easy to get one drive set up on manjaro!
thank you so much. I'm new to Linux, this is much easier to follow than google with multiple sources
I just installed Linux on another computer and did it again. Thanks.
Finally I could set up OneDrive, Thanks a lot (only one thing, Manjaro KDE, startup app is different)
Thank you man... This is the best tutorial I've ever seen!!! It just changed my live! Now my Linux Mint is perfect!!!! THANK YOU VERY MUCH
thank you very much for your video! Beeing not too experienced in Linux Mint I even managed to sync GoogleDrive as well - and installed pacman ;-) . I also like the style of your presentation which is understandable even for me as non native speaker. Applaus aus Deutschland !!
I am just a beginner in Linux, and I am using Linux mint 20.1 and I really want to try it by myself thanks to your video HowTo do it.Greetings
This is awesome, thanks. If anyone's having trouble running the pacman command like I did, you can download rclone via the rclone.org website and follow their instructions, then come back to this vid once it's installed.
Thanks a lot man! I had already installed rclone from some other tutorials but they didn't have the mounting part. This is the first complete tutorial I watched.
There's a slight issue that is kind of a dealbreaker for methough..:/ I cannot run my executables on that drive because I don't have such permissions. How can I mount my OneDrive so that I can run executables on it? Thanks in advance!
Thank you so much for sharing the useful tip. I was able to successfully install and mount it on Ubuntu 18.04.
Glad it helped!
Thank you it works its alive lol, great presentation
Thank you very much for such informative video! Awesome work! It worked perfectly in Ubuntu 20 LTS
Great video, great channel, great work!
Thanks for the upload, found exactly what I was looking for here \o/ cheers
Hello from India....Thank you very much for this helpful and easy to understand tutorial....appreciated.
You are welcome! Thanks for the kind words.
Thanks for info, it was extremely helpful for a linux beginner :)
If you do this on July 28th, 2022 it will go a little different. For example selecting (22) for Microsoft Onedrive Personal was (32) when I did it. There are more differences. I'm commenting more than 2 years after he made this video.
Just subbed for this informative content. And thanks for keeping it real and to the point.
This is tremendously helpful. Thanks!
I am writing this comment as a NOTE to my future me who is trying to figure out how to execute C/C++ programs from the mounted directory. So basically I have just added "-dir-perms 0775 --file-perms 0775" at the end of the command. The whole command that you specify as a start-up application should be:
sh -c "rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive --dir-perms 0775 --file-perms 0775"
Very helpful - Thank you!!
Hi,
thanks so much for this great tutorial. It works for me fine with Linux Mint 20
Great work mate! been looking for this tutorial for almost a week now for my linux setup, this is the one that only works! just a question, Does this work aswell for google drive? an answer would be so much appreciated. Thanks!
Hello Fairly Basic Tech. Thank so much for your clear step-by-step video. I have just successful completed your instructions on a RaspBerry Pi4 running Ubuntu 21.04. Only a suggestion to make this video even better. You know Pi4 have small amounts of "Hard Disk Space" so you should also address questions on how to config on-demand files/directories so that we do not run out of space if one drive decides to sync all 1T content we have on cloud.
Oi Guilherme,
I was also concerned about this because I know that some other tools work like this.
But rclone is accessing OneDrive online. It is not syncing the files to the disk. So this will work for you.
So easy, thx a lot!
works great..!.thanks for the video
Tank you so much! Really helpful video👍
Thank you very much. It was pleasant to follow your instruction. Best regards, Amga
Thank you too
That was a very informative and well designed video! Now Iḿ going to find out whethetr the program itself matches the quality of your video -:)
Thank you so much!
You save my life
Great presentation - worked right away for me. Just one issue: - with ubuntu 20.04 or 22.04 when I issue the command: rclone --vfs-cache-mode writes mount onedrive: ~/onedrive it hangs and the command line does not return. However, I just put the command in the background and things work fine.
Cheers for this.
Thanks for your help! It worked well..
This procedure worked fine. Thank you very much.
A side note. Eventually, I have problems after closing the command.
Example. After executing the command and closing it after use, some times the folder becomes unavailable and if you execute it again, it shows:
"fatal error: can not open: /path/to/folder open /path/to/folder: Transport endpoint is not connected"
Which I could only solve until now by rebooting.
Thanks.
Thank you! It is works.
Really good explained, thx.
Do you have an Idea how to mount also the shared folders?
worked fine! Many Thanks!!!
Thanks for the great advice, just made my life a little easier :-)
Happy to help!
Why is recommended to put onedrive on start up applications? (Sorry for the question and thanks for the tutorial, you have saved my academic year today)
It makes it easier to access when the drive is automatically mounted at startup, but it's certainly not required. If you'd rather not have it automount, you'd just need to manually mount the drive before using it after each reboot.
Thanks! Got it to work on Lubuntu 16.04.
You're welcome!
I tested this application for a while and I found it very slow in navigation and opening the documents. I was frustrated until I discovered Onedrive GUI. This sw it’s based on onedrive but all the configuration is made over gui which it’s very similar to Microsoft’s. This method is more fast and the navigation it much more fluid.
after using ubuntu, i still prefer windows, as windows is so much easier to use and worry free.
i only use my linux pc for very light job, like watching movies or youtube.
same here bro, all you have to do just to install a simple app on Linux
Thank you so much.
Command works fine, but autostartup not on Manjaro Gnome :/
the autostartup is not working for me either and I'm on Pop!_OS 20.10, did you ever solve this?
Very good video but I am having a problem. Followed your steps without any issues until I get to 3:07 in your video. After you select 0 for for onedrive it says "Found Drive" when I select y for ok get this error:
2020/03/28 17:11:33 Failed to save config after 10 tries: Failed to create temp file for new config: open /home/dell/.config/rclone/rclone.conf370680895: permission denied
I obviously have a permission wrong as I am getting back into to Linux
Any suggestions?
Hmm...definitely a permission issue. That could be caused by a few things. Try the solution here: stackoverflow.com/questions/60445517/installing-rclone-according-to-the-official-instructions-but-permission-denied .
Fairly Basic Tech I will give that a try when I get a chance. Typed the error message into Google and this error has been around for awhile. As far back as ver. 1.38 based on what I was able to get on line.
Thank you!
Thank you very very very very much!
thankyou very much
Legend
That was too easy. Worked flawlessly.
Thanks!
I have a query, I arrive at the moment that you give me the link and in your video I see that the website to log in appears alone but in mine it does not open, what can be done to solve the problem?
What can I say? Perfect and complete tutorial, nice voice, a "follow along"-type tutorial... +1sub, +1like, +1 everything xD
Thanks! 😀
wonderful
Fatal error: unknown flag: --vfs-cache-mode in Elementary OS. How to fix it?
iam facing this: mpsc@mpsc-Lenovo-G500:~$ rclone --vfs-cache-mode writes mount onedrive: ~/onedrive
Fatal error: failed to mount FUSE fs: cannot get mounts: open /proc/self/mountinfo: permission denied
I'm not seeing the startup applications in manjaro kde. how do i add the auto mount? would editing fstabs work if i cant get it? i just switch today and ive been excited, but im gonna need onedrive for school
Thank you very much!!!!
Looks great, though I haven't tried it yet. Some questions: 1) Are the install and setup commands the same for Linux Mint 20.2 ? Will it auto sync with my existing One Drive Directory in Win 10, if they are on the same Microsoft account? Or 3) do I have to transfer existing files manually..if so what is the best method for about 200 folders & files?
is this method always rewriting back to your mounted drive? once you run the command once it will not re download all the data again ? i have a 1 terabyte of data
Thx, I was looking for something like this for so long. Basically one tool that can mount different cloud-services and it is so easy to setup, even though it doesnt has a GUI. Only thing Iam concerned, are the files that are mounted stored on the hard drive, so are they constantly taking space? Or can you choose to download/keep specific files just like in the native clients (e.g. for windows)?
Thanks! By default, this method does not make a local copy of the files, so no additional storage space is taken up on your computer. If you want a local copy, Rclone has further options that can do that. See rclone.org/commands/rclone_copy/ . Just be careful using this functionality because it's awful easy to accidentally delete something online when syncing this way.
hello. I lost the pattern when you say press return. 1:44
Thank's a lot!!
when I select onedrive I dont get "Client ID" it just asks for my username and password...
HI, thank you for the video. I already have a folder OneDrive that I copied from another laptop. The command rclone --vfs-cache-mode etc.. does not work since the folder is not empty and I get the message to use "--allow-non-empty" option, but where should that command go?
i have a problem.. this worked when I first tried it, but when I rebooted, the `rclone --vfs-cache-mode writes mount onedrive: ~/OneDrive` command didn't mount OneDrive in the folder
edit: also, is it ok to shut the terminal when the command is running? doesn't that affect future runs?
update: I deleted and recreated the onedrive remote and it worked again. I think if I reboot I will have to do this over again. might create a script that does this every reboot
update #2: it fully worked this time. high expectations set to work with this!
I used this to set up OneDrive in Linux Mint Cinnamon 20.1. Soon I may upgrade to 20.2. Will the upgrade preserve this setup? Or will I have to do it all over again?
Please i need some help:
I install rclone with "sudo apt install rclone", cause when i try with that "pacman -S rclone" sentence dosnt work. Then i follow the steps exactly as in the video but after loging on microsoft step, the terminal show me "got code" and access token with all those chain caracter, but then never show me the option of choose "one drive personal or busines" where he intro "1" and then to personal "0".
After the login and "got code" the terminal give me the "Yes this is ok" option and then quit config. Then when i keep the tutorial like in the video i create the folder in home and then put in the terminal "rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive" and the terminal answer me "Fatal error: unknown flag: --vfs-cache-mode". Why? =(
PS: Both "OneDrive" are well written, im on Linux Mint 19.3 cinnamon
Your video was truly inspiring and even a live saver for me. Does it work with OneDrive Business as well? Thank you again for pointing me in the right direction here!!
I haven't tested it, but I believe it will work. :)
So every time you start up you're running that command that setups the onedrive mount. Does that mean that every time you start up you're downloading all your files or are they already stored on your machine from the last session and they're just sorta "being made visible" ?
thanks
. what is the upload speed files? different from the original?
Hello bro, one question its possible mount One Drive + rclone + Plex ?
Cheers
Thanks
Once you added it to your startup applications and it starts after boot, will it stay running if you open the folder, close it and open it again?
Muito Obrigado pela ajuda
How can I ad 5. (Optional) Mount OneDrive on system startup under KDE? thx
can you put files in there? like if you put some document on the folder will it get uploaded on my onedrive account?
Yes. It essentially works like mounting a network drive. Anything you put in the folder is uploaded to the cloud, and anything put in your cloud storage from another device will show in your OneDrive folder. The only catch in setting it up this way is that you have to be online to access the OneDrive share. This method does not create a local copy that will be accessible offline.
Just trying to configure this on Ubuntu 18.04 and it returns "Fatal error: unknown flag: --vfs-cache-mode". What am I doing wrong?
Hello, who could tell me how to automount onedrive on startup with a raspberry pi with raspbian os.