{"id":114,"date":"2013-11-12T21:45:48","date_gmt":"2013-11-12T21:45:48","guid":{"rendered":"http:\/\/interactingobjects.com\/?p=114"},"modified":"2013-11-17T10:07:15","modified_gmt":"2013-11-17T10:07:15","slug":"raspberry-pi-sd-card-reliability","status":"publish","type":"post","link":"https:\/\/interactingobjects.com\/?p=114","title":{"rendered":"Raspberry Pi &#038; SD card reliability"},"content":{"rendered":"<p>As described in a previous post, I use a Raspberry Pi as an <a href=\"http:\/\/emoncms.org\/\">emoncms server<\/a>. And as it seems to occur for quite a number of users, SD card eventually gets corrupted after a week or so and Pi would crash and never reboots until I re-installed the OS.<\/p>\n<p>First thing that came to mind was : &#8220;ok&#8230; the only thing that is quite write intensive is the mySQL database&#8230;&#8221; so I moved it to my Synology NAS. Now, emoncms barely writes anything onto the SD card.\u00a0Did not last much longer&#8230;<\/p>\n<p>So my second thought was &#8220;ok&#8230; SD card is not good enough, lets try another one&#8230;&#8221; My Pi worked for a while&#8230; a month or so&#8230; and finally crashed.<\/p>\n<p>I came to the conclusion that I could not use a Pi for a reliable 24&#215;7 system, and more specifically my emoncms setup&#8230; until I stumbled across this blog post :\u00a0<a href=\"http:\/\/harizanov.com\/2013\/08\/rock-solid-rfm2pi-gateway-solution\/\">Rock-solid RFM2Pi gateway solution<\/a>. The idea is quite simple but clever : set the file system as read only, using this version of Raspbian : <a href=\"http:\/\/nutcom.hu\/?page_id=108\">IPE<\/a>. But&#8230; hey&#8230; (almost) any apps needs some place to write to&#8230; Even if, in my case, I already setup an external database, apache probably won&#8217;t work on a read only file system out of the box. And worse, emoncms code probably writes some stuff on the file system (like traces or logs.)<\/p>\n<p>So I thought I could mount the root file system from an NFS share that I created on my NAS. I will then have R\/W capability on root file system but a read only SD card.\u00a0I also had a look at iSCSI instead of NFS&#8230; but it way more complex and probably an overkill for a Raspberry Pi.<\/p>\n<p>Stay tuned&#8230; I will try that soon !<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As described in a previous post, I use a Raspberry Pi as an emoncms server. And as it seems to occur for quite a number of users, SD card eventually gets corrupted after a week or so and Pi would &hellip; <a href=\"https:\/\/interactingobjects.com\/?p=114\">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":{"footnotes":""},"categories":[24],"tags":[26,37],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-raspberrypi","tag-nfs","tag-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":4,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions\/182"}],"wp:attachment":[{"href":"https:\/\/interactingobjects.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}