{"id":1037,"date":"2022-12-02T11:34:26","date_gmt":"2022-12-02T11:34:26","guid":{"rendered":"https:\/\/thomas.w-p.me.uk\/blog\/?p=1037"},"modified":"2022-12-02T11:37:25","modified_gmt":"2022-12-02T11:37:25","slug":"openhabian-as-nas","status":"publish","type":"post","link":"https:\/\/thomas.w-p.me.uk\/blog\/2022\/12\/openhabian-as-nas\/","title":{"rendered":"OpenHabian as NAS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In my quest to reduce energy I decided to make openhabian my NAS. I can shut down an old ASUS wifi router I have been lazily using for that purpose with an external disk attached. I pulled the PCIe3 USB stick from the TV that is 1TB and never used (I upgraded to Freesat) and shoved it in the Openhabian.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Got it all set up, then used the teminal program <strong>screen <\/strong>to set the copying in motion. <strong>ctrl+a , d<\/strong> to leave, <strong>screen -r<\/strong> to go back in to it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I always forget the working settings so here are the pages I used and the final critical lines of text in smb and fstab.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.techwalla.com\/articles\/how-to-mount-an-external-usb-drive-in-debian-linux\">https:\/\/www.techwalla.com\/articles\/how-to-mount-an-external-usb-drive-in-debian-linux<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cyberpratibha.com\/use-of-fstab-option-for-mounting-disk-in-linux-permanent\/\">https:\/\/www.cyberpratibha.com\/use-of-fstab-option-for-mounting-disk-in-linux-permanent\/<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\/etc\/fstab<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>UUID=82A2524DA2524637 \/mnt\/nas ntfs rw 0 0<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\/etc\/samba\/smb.conf<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;NAS]\n  comment=PCIe3 NAS\n  path=\/mnt\/nas\n  writeable=yes\n  public=no\n  create mask=0664\n  directory mask=0775\n  veto files = \/Thumbs.db\/.DS_Store\/._.DS_Store\/.apdisk\/._*\/\n  delete veto files = yes<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In my quest to reduce energy I decided to make openhabian my NAS. I can shut down an old ASUS wifi router I have been lazily using for that purpose with an external disk attached. I pulled the PCIe3 USB stick from the TV that is 1TB and never used (I upgraded to Freesat) and &hellip; <a href=\"https:\/\/thomas.w-p.me.uk\/blog\/2022\/12\/openhabian-as-nas\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">OpenHabian as NAS<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,104],"tags":[],"class_list":["post-1037","post","type-post","status-publish","format-standard","hentry","category-geekiness","category-openhab"],"_links":{"self":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/1037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/comments?post=1037"}],"version-history":[{"count":4,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/1037\/revisions"}],"predecessor-version":[{"id":1041,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/1037\/revisions\/1041"}],"wp:attachment":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=1037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=1037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=1037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}