{"id":52,"date":"2018-01-21T04:13:46","date_gmt":"2018-01-21T04:13:46","guid":{"rendered":"http:\/\/labiol.xyz\/?p=52"},"modified":"2018-02-24T12:25:55","modified_gmt":"2018-02-24T12:25:55","slug":"systemctl-montowanie-cifs-a","status":"publish","type":"post","link":"https:\/\/www.labiol.xyz\/index.php\/2018\/01\/21\/systemctl-montowanie-cifs-a\/","title":{"rendered":"systemctl \u2013 montowanie cifs-a"},"content":{"rendered":"<p>Zasoby wystawione z cifs, nfs nie s\u0105 ZAWSZE dost\u0119pne. Je\u015bli kto\u015b z Was u\u017cywa linuksa na laptopie i<br \/>\nskon gurowa\u0142 go tak, \u017ceby super dzia\u0142a\u0142 w sieci domowej &#8230; to po wyj\u015bciu ze swoim cackiem na dw\u00f3r(:P)<br \/>\nmo\u017ce popa\u015b\u0107 w problemy.<br \/>\nSystem d\u0142uuugo startuje, nie wy\u0142\u0105cza sie poprawnie, manager okienek ma niespodziewane lagi.<br \/>\nTo wszystko mo\u017ce by\u0107 skutkiem nieodpowiednich wpis\u00f3w w pliku \/etc\/fstab, gdzie \u015bcie\u017cki do zasob\u00f3w<br \/>\nzosta\u0142y wpisane permanentnie.<br \/>\nLinux posiada mechanizmy do radzenia sobie z taki problemami:<\/p>\n<ul>\n<li>autofs (<a href=\"http:\/\/3.127.215.50\/2017\/02\/04\/autofs-automontowanie-w-linuksie\/\">http:\/\/3.127.215.50\/2017\/02\/04\/autofs-automontowanie-w-linuksie\/<\/a>)<\/li>\n<li>systemctl\n<ul>\n<li>nie ma potrzeby konigurowania autofs (instalowania dodatkowych pakiet\u00f3w)<\/li>\n<li>wbudowany mechanizm w ka\u017cd\u0105 &#8220;now\u0105&#8221; dystrybucj\u0119<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<pre>\/\/stor1\/USB_Storage \/cifs\/stor1\r\n cifs\r\n noauto,x-systemd.automount,rw,guest,ioc\r\n harset=utf8,file_mode=0777,dir_mode=0777,noperm,uid=1000,gid=1000 0 0<\/pre>\n<p>Po utworzeniu nowych wpis\u00f3w w fstab, nale\u017cy od\u015bwie\u017cy\u0107 systemctl:<\/p>\n<p>&nbsp;<\/p>\n<pre>sudo systemctl daemon-reload\r\nsudo systemctl restart remote-fs.target<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Zasoby wystawione z cifs, nfs nie s\u0105 ZAWSZE dost\u0119pne. Je\u015bli kto\u015b z Was u\u017cywa linuksa na laptopie i skon gurowa\u0142 go tak, \u017ceby super dzia\u0142a\u0142 w sieci domowej &#8230; to po wyj\u015bciu ze swoim cackiem na dw\u00f3r(:P) mo\u017ce popa\u015b\u0107 w problemy. System d\u0142uuugo startuje, nie wy\u0142\u0105cza sie poprawnie, manager okienek &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":2,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":318,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/52\/revisions\/318"}],"wp:attachment":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}