{"id":27116,"date":"2023-01-17T18:42:56","date_gmt":"2023-01-17T17:42:56","guid":{"rendered":"https:\/\/ekiwi-blog.de\/?p=27116"},"modified":"2023-01-19T15:21:07","modified_gmt":"2023-01-19T14:21:07","slug":"mount-onedrive-in-windows-with-rclone","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/27116\/mount-onedrive-in-windows-with-rclone\/","title":{"rendered":"Mount OneDrive in Windows with Rclone"},"content":{"rendered":"<p>Mount OneDrive as a drive in Windows with Rclone.<\/p>\n<p><!--more--><\/p>\n<p>Rclone allows us to mount cloud storage in our system, either as a drive or in a folder. This way we can access the cloud storage like a network drive, without the official client and without synchronisation. Rclone is available for different operating systems, so for example <a href=\"https:\/\/ekiwi-blog.de\/25801\/onedrive-zugriff-in-linux-einbinden-mit-rclone\/\" target=\"_blank\" rel=\"noopener\">OneDrive can be used in Linux<\/a>.<\/p>\n<p>In this article, we will look at how we can use Rclone on Windows as well.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of content<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekiwi-blog.de\/en\/27116\/mount-onedrive-in-windows-with-rclone\/#Video_description\" >Video description<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekiwi-blog.de\/en\/27116\/mount-onedrive-in-windows-with-rclone\/#Download_Rclone\" >Download Rclone<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ekiwi-blog.de\/en\/27116\/mount-onedrive-in-windows-with-rclone\/#Configuring_cloud_storage_in_Rclone\" >Configuring cloud storage in Rclone<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ekiwi-blog.de\/en\/27116\/mount-onedrive-in-windows-with-rclone\/#Integrating_OneDrive_into_Windows_with_Rclone\" >Integrating OneDrive into Windows with Rclone<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ekiwi-blog.de\/en\/27116\/mount-onedrive-in-windows-with-rclone\/#Mount_OneDrive_in_folder\" >Mount OneDrive in folder<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ekiwi-blog.de\/en\/27116\/mount-onedrive-in-windows-with-rclone\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Video_description\"><\/span>Video description<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/v9xBC5GauYI\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Download_Rclone\"><\/span>Download Rclone<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Let&#8217;s start with <a href=\"https:\/\/rclone.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">the download<\/a>. The Windows version comes as a ZIP archive, which we simply have to unpack. In the folder we then find the &#8220;rclone.exe&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_1.png\" alt=\"\" width=\"663\" height=\"456\" class=\"aligncenter size-full wp-image-27092\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_1.png 663w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_1-300x206.png 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Configuring_cloud_storage_in_Rclone\"><\/span>Configuring cloud storage in Rclone<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We type &#8220;cmd&#8221; in the Explorer address bar. This opens a command prompt, using &#8220;rclone.exe&#8221; we start Rclone. A text menu appears. Here we select &#8220;n&#8221; for &#8220;New remote&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_2.png\" alt=\"\" width=\"631\" height=\"200\" class=\"aligncenter size-full wp-image-27094\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_2.png 631w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_2-300x95.png 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/p>\n<p>In the first step we enter a name, e.g. &#8220;onedrive&#8221;. We will need this name later for access and integration into the system.<\/p>\n<p>A long list of supported cloud storages follows. In principle, we can access all cloud storages with rank and name, also Google Drive, Seafile, HiDrive and other cloud services are supported. The basic procedure is the same.<\/p>\n<p>We enter &#8220;31&#8221;, for &#8220;Microsoft OneDrive&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_3.png\" alt=\"\" width=\"661\" height=\"263\" class=\"aligncenter size-full wp-image-27096\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_3.png 661w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_3-300x119.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/p>\n<p>This is followed by a query for the &#8220;client_id&#8221; and the &#8220;client_secret&#8221;. Good for us, we don&#8217;t have to enter anything here and confirm both with Enter.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_4.png\" alt=\"\" width=\"429\" height=\"221\" class=\"aligncenter size-full wp-image-27098\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_4.png 429w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_4-300x155.png 300w\" sizes=\"auto, (max-width: 429px) 100vw, 429px\" \/><\/p>\n<p>We are then asked where our data is clouded. Here, we simply enter &#8220;1&#8221; for the region.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_4_1.png\" alt=\"\" width=\"596\" height=\"200\" class=\"aligncenter size-full wp-image-27112\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_4_1.png 596w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_4_1-300x101.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/p>\n<p>Fortunately, we can also simply answer the query for the advanced configuration with &#8220;n&#8221;, i.e. No. Then the authentication takes place, here we confirm with &#8220;Yes&#8221;. This opens a browser window. Here we may have to log in to OneDrive to authorise Rclone access.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_5.png\" alt=\"\" width=\"712\" height=\"264\" class=\"aligncenter size-full wp-image-27100\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_5.png 712w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_5-300x111.png 300w\" sizes=\"auto, (max-width: 712px) 100vw, 712px\" \/><\/p>\n<p>Once this is done, we enter a &#8220;1&#8221; for &#8220;OneDrive Personal or Business&#8221; in &#8220;config_type&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_6.png\" alt=\"\" width=\"627\" height=\"357\" class=\"aligncenter size-full wp-image-27102\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_6.png 627w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_6-300x171.png 300w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><\/p>\n<p>Rclone now suggests the &#8220;drives&#8221; it has found. Only one entry should appear here, which we confirm with &#8220;1&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_6_1.png\" alt=\"\" width=\"596\" height=\"163\" class=\"aligncenter size-full wp-image-27114\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_6_1.png 596w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_6_1-300x82.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/p>\n<p>Two more confirmations follow, which we confirm twice with &#8220;Yes&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_7.png\" alt=\"\" width=\"535\" height=\"384\" class=\"aligncenter size-full wp-image-27104\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_7.png 535w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_7-300x215.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_7-350x250.png 350w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_7-420x300.png 420w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\" \/><\/p>\n<p>Done! The configuration is now created and appears under &#8220;Current remotes&#8221; when &#8220;rclone.exe&#8221; is started.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_8.png\" alt=\"\" width=\"336\" height=\"188\" class=\"aligncenter size-full wp-image-27106\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_8.png 336w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_8-300x168.png 300w\" sizes=\"auto, (max-width: 336px) 100vw, 336px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Integrating_OneDrive_into_Windows_with_Rclone\"><\/span>Integrating OneDrive into Windows with Rclone<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The configuration is now created, for access we now need to mount OneDrive. This can be done with one of the following commands:<\/p>\n<pre>\r\nrclone --vfs-cache-mode writes mount onedrive: *\r\nrclone --vfs-cache-mode writes mount onedrive: X:\r\n<\/pre>\n<p>The first variant mounts the cloud storage under a free drive letter. The second variant under the default. In this case, &#8220;onedrive&#8221; is the name we assigned in the configuration.<\/p>\n<p>OneDrive is then available in the new drive. With CTRL-C we can cancel the command in the command prompt, the drive is then disconnected.<\/p>\n<p>It is best to put the command in a batch file so that the long command does not have to be entered each time.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_9.png\" alt=\"\" width=\"939\" height=\"335\" class=\"aligncenter size-full wp-image-27108\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_9.png 939w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_9-300x107.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_9-768x274.png 768w\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Mount_OneDrive_in_folder\"><\/span>Mount OneDrive in folder<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Besides mounting it as a drive, we can also specify a folder:<\/p>\n<pre>\r\nrclone --vfs-cache-mode writes mount onedrive: C:\\_temp\\\r\n<\/pre>\n<p>In this case, OneDrive is mounted below the specified folder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_10.png\" alt=\"\" width=\"794\" height=\"284\" class=\"aligncenter size-full wp-image-27110\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_10.png 794w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_10-300x107.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/rclone_win_10-768x275.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>As we have seen, Rclone is a perfect way to integrate cloud storage into the system. In principle, we don&#8217;t need a client. Local storage is also not used, as no files are synchronised locally. Of course, this only works if we also have internet.<\/p>\n<p>The method also works with other cloud systems, only the configuration steps differ slightly.<\/p>","protected":false},"excerpt":{"rendered":"<p>Mount OneDrive as a drive in Windows with Rclone.<\/p>\n","protected":false},"author":1,"featured_media":15249,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1555],"tags":[1558],"class_list":["post-27116","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-en","tag-windows-en"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/27116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=27116"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/27116\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/15249"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=27116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=27116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=27116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}