{"id":1725,"date":"2020-03-22T16:45:46","date_gmt":"2020-03-22T20:45:46","guid":{"rendered":"http:\/\/matthannan.net\/blog\/?p=1725"},"modified":"2020-03-22T21:39:05","modified_gmt":"2020-03-23T01:39:05","slug":"onedrive-on-linux-take-3","status":"publish","type":"post","link":"https:\/\/matthannan.net\/blog\/onedrive-on-linux-take-3\/","title":{"rendered":"OneDrive on Linux: Take 3"},"content":{"rendered":"\n<p>I wrote about rclone yesterday, which claims to sync your OneDrive files to your Linux host. This is something that Microsoft has failed to provide to the Linux community. I was hoping to gather all of my files, and then Jenny&#8217;s files, to one main source in the house, and have that sync with OneDrive in order to get the whole cloud thing sorted finally. I think this is still possible, but not with rclone.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>Take a look at this: <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"441\" height=\"234\" data-attachment-id=\"1726\" data-permalink=\"https:\/\/matthannan.net\/blog\/onedrive-on-linux-take-3\/image-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/03\/image-1.png?fit=441%2C234&amp;ssl=1\" data-orig-size=\"441,234\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/03\/image-1.png?fit=441%2C234&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/03\/image-1.png?resize=441%2C234&#038;ssl=1\" alt=\"\" class=\"wp-image-1726\" srcset=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/03\/image-1.png?w=441&amp;ssl=1 441w, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/03\/image-1.png?resize=300%2C159&amp;ssl=1 300w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><\/figure><\/div>\n<\/div><\/div>\n\n\n\n<p>See that \/dev\/sdb1 ? That is the physical 1TB external drive.<br>See that onedrive: ? That is the onedrive folder &#8220;on&#8221; that 1TB drive.<br>How is it possible that the \/dev\/sdb1 shows 916G total and only 1% usage, but a folder on that device is 1.1TB with 63% usage? Answer: it can&#8217;t be. <\/p>\n\n\n\n<p>What we are looking at is not a sync, but rather a FUSE overlay. I could probably have popped in a 1GB USB thumbdrive, mapped the &#8220;onedrive&#8221; on to that, and it would have worked (961GB &lt; 1.1TB).<\/p>\n\n\n\n<p>In my testing, I did open nano and write a test file &#8220;on&#8221; this onedrive folder. It was instantly synced to my Windows 10 desktop. So that works great. It is just that I am looking to have the files housed locally, as well as synced to OneDrive in the cloud. The reason I need them locally is to be able to set up a SAMBA share to them and have them available even if the Internet is down.<\/p>\n\n\n\n<p>I say that I think this is possible because I already have seen it in action. That is why this is &#8220;Take 3&#8221;. The first time I did it was on Manjaro. I verified the files were on the laptop hard drive before I blew away Manjaro and installed Mint. The problem is that I wasn&#8217;t 100% sure if it was fully working or not, which is why I even bothered looking at rclone. I found <a rel=\"noreferrer noopener\" aria-label=\"this site (opens in a new tab)\" href=\"https:\/\/linuxnewbieguide.org\/onedrive-client-linux\/\" target=\"_blank\">this site<\/a>, which has a table of the possible OneDrive for Linux solutions on it. The fourth option down is what I used on Manjaro, and, specifically, the <a rel=\"noreferrer noopener\" aria-label=\"abraun fork (opens in a new tab)\" href=\"https:\/\/github.com\/abraunegg\/onedrive\" target=\"_blank\">abraun fork<\/a> of that. So that is what I am going to try and get going on my Pi now.<\/p>\n\n\n\n<p>rclone is a worthy project. If they could get the writes to actually take place, I would probably switch back to it. I have other files trapped out in the other clouds that I would like to gain access to without having to install their Windows client software. In the early days, I had like six different &#8220;clouds&#8221; that I was saving files to, and that was just crushing my machine.<\/p>\n\n\n\n<p>This is a follow-up. Debian has onedrive in the repos!<br><code>sudo apt install onedrive<\/code><br>and then configure it and do an initial sync to download the files.<br>Follow the examples in <a rel=\"noreferrer noopener\" aria-label=\"USAGE.md (opens in a new tab)\" href=\"https:\/\/github.com\/abraunegg\/onedrive\/blob\/master\/docs\/USAGE.md\" target=\"_blank\">USAGE.md<\/a>.<\/p>\n\n\n\n<p>Follow-up to the follow-up. Things are going great! The initial sync needs some babysitting, as it craps out after a large copy for some reason, but I&#8217;ve looked at the SAMBA share and have actually mapped a drive to it! This is is roughly what I am looking to accomplish, if you&#8217;ll take my meaning. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"577\" height=\"508\" data-attachment-id=\"1729\" data-permalink=\"https:\/\/matthannan.net\/blog\/onedrive-on-linux-take-3\/image-2-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/03\/image-2.png?fit=577%2C508&amp;ssl=1\" data-orig-size=\"577,508\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/03\/image-2.png?fit=577%2C508&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/03\/image-2.png?resize=577%2C508&#038;ssl=1\" alt=\"\" class=\"wp-image-1729\" srcset=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/03\/image-2.png?w=577&amp;ssl=1 577w, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/03\/image-2.png?resize=300%2C264&amp;ssl=1 300w\" sizes=\"auto, (max-width: 577px) 100vw, 577px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wrote about rclone yesterday, which claims to sync your OneDrive files to your Linux host. This is something that Microsoft has failed to provide to the Linux community. I was hoping to gather all of my files, and then &hellip; <a href=\"https:\/\/matthannan.net\/blog\/onedrive-on-linux-take-3\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[162,229,435,89],"class_list":["post-1725","post","type-post","status-publish","format-standard","hentry","category-geek","tag-cloud","tag-onedrive","tag-rclone","tag-samba"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2NxlE-rP","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1704,"url":"https:\/\/matthannan.net\/blog\/rclone-cloud-storage-glue-for-linux\/","url_meta":{"origin":1725,"position":0},"title":"rclone: Cloud Storage Glue for Linux","author":"matthannan","date":"21 March 2020","format":false,"excerpt":"Man! My last post was in November!?!?! I have been on quite the ride since then. Someday, I will get you caught up. What I want to document today is a new toy that I just discovered, called rclone. Basically, it runs on Linux boxes and allows syncing with Cloud\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2162,"url":"https:\/\/matthannan.net\/blog\/onedrive-on-linux-revisited\/","url_meta":{"origin":1725,"position":1},"title":"OneDrive on Linux, Revisited","author":"matthannan","date":"6 January 2021","format":false,"excerpt":"You may recall that I managed to get OneDrive running on my main Pi with the goal of uninstalling the OneDrive client from the Windows machines and just running everything via a mapped drive to a SAMBA share. This has been...mostly working. Certainly not well enough to uninstall OneDrive on\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2086,"url":"https:\/\/matthannan.net\/blog\/revisiting-plex-and-nfs\/","url_meta":{"origin":1725,"position":2},"title":"Revisiting Plex and NFS","author":"matthannan","date":"22 October 2020","format":false,"excerpt":"The Raspberry Pi 3B is just a bit too weak to provide quick transcoding of HD files. But it has been working great for photos, podcasts, and music. I have long wanted to get the Atomic Pi back in the mix. For too long now, it has been sitting on\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":502,"url":"https:\/\/matthannan.net\/blog\/dropbox-sugarsync-skydrive-google-drive-build-a-cloud-nest-donnanakki\/","url_meta":{"origin":1725,"position":3},"title":"Dropbox, Sugarsync, SkyDrive, Google Drive \u2013 Build a Cloud Nest!! | Donnanakki","author":"matthannan","date":"14 June 2014","format":false,"excerpt":"Dropbox, Sugarsync, SkyDrive, Google Drive \u2013 Build a Cloud Nest!! | Donnanakki. That is just one of many articles you will find on nesting cloud storage folders within each other. There are plusses and minuses to all of them. I am trying this out with nesting Dropbox (5.6GB total) inside\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2216,"url":"https:\/\/matthannan.net\/blog\/the-tale-of-the-two-nas-boxes\/","url_meta":{"origin":1725,"position":4},"title":"The Tale of the Two NAS Boxes","author":"matthannan","date":"2 April 2021","format":false,"excerpt":"Wow, what a run this was! I got tired of waiting for the WD MyBook or whatever it was called to be back in stock, so I started looking for better solutions. OpenMediaVault was not really getting things done for me. It seemed to be getting in the way more\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2021\/04\/synology_drive_client.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2014,"url":"https:\/\/matthannan.net\/blog\/how-to-connect-to-smb-shares-from-iphone-ipad-with-files-app\/","url_meta":{"origin":1725,"position":5},"title":"How to Connect to SMB Shares from iPhone &#038; iPad with Files App","author":"matthannan","date":"22 August 2020","format":false,"excerpt":"Have you ever wished you could connect to an SMB share from an iPhone or iPad? If you work with file servers, be it for work or pleasure, you\u2019ll be excited to learn that connecting to SMB sha\u2026 Source: How to Connect to SMB Shares from iPhone & iPad with\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/posts\/1725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/comments?post=1725"}],"version-history":[{"count":4,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/posts\/1725\/revisions"}],"predecessor-version":[{"id":1731,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/posts\/1725\/revisions\/1731"}],"wp:attachment":[{"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/media?parent=1725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/categories?post=1725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/tags?post=1725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}