{"id":458,"date":"2011-01-28T00:30:38","date_gmt":"2011-11-21T13:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/readonly-etcfstab\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-11-21T13:51:50","slug":"readonly-etcfstab","status":"publish","type":"post","link":"\/blog\/index.php\/readonly-etcfstab\/","title":{"rendered":"readonly \/etc\/fstab"},"content":{"rendered":"<p>If you&#8217;re trying to save your \/etc\/fstab and you get:<br \/>\n&#8220;fstab&#8221; E212: Can&#8217;t open file for writing<br \/>\nAnd you know you can write any other file in &#8220;\/&#8221;, then it&#8217;s not a readonly FS.<br \/>\nYou need to check the file&#8217;s attributes.<br \/>\n[root@myserver etc]# lsattr \/etc\/fstab<br \/>\n&#8212;-i&#8212;&#8212;&#8211; \/etc\/fstab<br \/>\nif it has a &#8220;i&#8221; then it&#8217;s write protected, so change it<br \/>\n[root@myserver etc]# chattr -i \/etc\/fstab<br \/>\n[root@myserver etc]# lsattr \/etc\/fstab<br \/>\n&#8212;&#8212;&#8212;&#8212;- \/etc\/fstab<br \/>\nThen you can edit the file<br \/>\n75\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re trying to save your \/etc\/fstab and you get: &#8220;fstab&#8221; E212: Can&#8217;t open file for writing And you know you can write any other file in &#8220;\/&#8221;, then it&#8217;s not a readonly FS. You need to check the file&#8217;s attributes. [root@myserver etc]# lsattr \/etc\/fstab &#8212;-i&#8212;&#8212;&#8211; \/etc\/fstab if it has a &#8220;i&#8221; then it&#8217;s write [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-458","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=458"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/458\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}