{"id":495,"date":"2012-12-12T09:42:55","date_gmt":"2012-12-12T17:42:55","guid":{"rendered":"http:\/\/blt.homenet.org\/wordpress\/?p=495"},"modified":"2017-08-01T21:22:34","modified_gmt":"2017-08-02T04:22:34","slug":"ww-drt-automount-issue-resolved","status":"publish","type":"post","link":"https:\/\/bt.beerprojects.com\/wordpress\/?p=495","title":{"rendered":"WW-DRT Automount Issue Resolved"},"content":{"rendered":"<p>Well shortly after posting about how I got my router loaded with DD-WRT and had all my USB drives working I discovered that my USB drives were no longer working.<\/p>\n<p>After poking around a bit I found there were errors generated when the automount script was executing. In particular I was seeing:<\/p>\n<pre>root@BLT_ROUTER:\/opt\/etc# service automount status\r\ncannot touch `\/opt\/etc\/nomount': Input\/output error\r\nS35automount: Create \/opt\/etc\/automount\r\ncannot touch `\/opt\/etc\/automount': Input\/output error\r\nI can not write \/opt\/etc\/automount, abort<\/pre>\n<p>When I went to the directory I saw the following (most files removed to keep the list short)<\/p>\n<pre>root@BLT_ROUTER:\/tmp# ls -al \/opt\/etc\r\ntotal 1608\r\ndrwxr-xr-x 16 root root    4096 Dec 12 18:20 .\r\ndrwxr-xr-x 23 root root    4096 Nov 15 08:15 ..\r\ndrwxr-xr-x  3 root root    4096 May  5  2011 asterisk\r\n??????????  ? ?    ?          ?            ? automount\r\n...\r\n??????????  ? ?    ?          ?            ? nomount\r\n-rw-r--r--  1 root root   35782 May  5  2011 nzbget.conf\r\n-rw-r--r--  1 root root     104 May  5  2011 p910nd\r\ndrwxr-xr-x  2 root root    4096 Feb 23  2012 php.d<\/pre>\n<p>A quick search found <a href=\"http:\/\/www.dd-wrt.com\/phpBB2\/viewtopic.php?p=691806\" target=\"_blank\">this forum post<\/a> where it was suggested to Stop automount (service automount stop) and then delete the two files.<\/p>\n<p>This worked to delete the files, but when I rebooted the router only the \/opt share came up. I messed around with this for quite a while and realized that something wasn&#8217;t right with the USB drives. So I disconnected them from the router and rebooted the router. Next I unplugged the USB drives power cord (where I noticed that one of the drives was unplugged, probably from when I was adding setting up my <a title=\"Installing Ubuntu 12.10 on Dell XPS M1730 Laptop\" href=\"http:\/\/bt.beerprojects.com\/wordpress\/?p=476\">media server<\/a>). After a short while I plugged in the drives power cord and the USB cable back into the router.<\/p>\n<p>After another reboot the automount script came up correctly, however it lost my custom mounting assignments. So I edited the \/opt\/etc\/automount file in the <a title=\"Belkin PlayMax 600HD Router Flashed\" href=\"http:\/\/bt.beerprojects.com\/wordpress\/?p=193\">same manner that I posted<\/a> earlier. Next I did restarted the automount and samba services<\/p>\n<pre>service automount stop\r\nservice automount start\r\nservice samba stop\r\nservice samba start<\/pre>\n<p>Finally, I&#8217;m backup and running.<\/p>\n<p style=\"text-align: center;\">\n","protected":false},"excerpt":{"rendered":"<p>Well shortly after posting about how I got my router loaded with DD-WRT and had all my USB drives working I discovered that my USB drives were no longer working. After poking around a bit I found there were errors generated when the automount script was executing. In particular I was seeing: root@BLT_ROUTER:\/opt\/etc# service automount [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[82,75,83],"class_list":["post-495","post","type-post","status-publish","format-standard","hentry","category-tech-talk","tag-automount","tag-dd-wrt","tag-inputoutput-error"],"_links":{"self":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=495"}],"version-history":[{"count":5,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/495\/revisions"}],"predecessor-version":[{"id":1731,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/495\/revisions\/1731"}],"wp:attachment":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}