{"id":751,"date":"2015-08-10T21:10:04","date_gmt":"2015-08-10T19:10:04","guid":{"rendered":"http:\/\/www.hauweele.net\/~gawen\/blog\/?p=751"},"modified":"2015-08-10T23:45:46","modified_gmt":"2015-08-10T21:45:46","slug":"constant-sd-card-corruption-on-the-rpi","status":"publish","type":"post","link":"https:\/\/hauweele.net\/~gawen\/blog\/?p=751","title":{"rendered":"Constant SD-Card corruption on the RPi"},"content":{"rendered":"<p>Our home servers broke. Here we are again.<\/p>\n<p>I spent weeks of my time, countless evenings up to 4AM, entire weekends since months trying to design and configure our reborn\u00a0home-servers and gateways.<\/p>\n<p>And it was neat.<\/p>\n<ul>\n<li>DNSSEC all the way down<\/li>\n<li>RPC accross the nodes<\/li>\n<li>Easy configuration<\/li>\n<li>Caching and stuff<\/li>\n<li>Automatic tests<\/li>\n<li>&#8230;<\/li>\n<\/ul>\n<p>It took me a lot of time to assemble all of this in something that I liked. And to document everything so that we could easily install a new node from scratch.<\/p>\n<p>I installed two nodes and it worked well for several weeks. Until a week ago or so I started to see corruption on the first node. And by corruption I mean random garbage in a lot of binaries and libraries. Exec format error at every corner. At this point it was completely broken and useless so the only option was to reinstall it.<\/p>\n<p>So I used a new SD-Card, changed the power supply and reinstalled everything last weekend. Just finished today and also fixed bugs in some of our scripts. Had to search for a package on the second node which at this point was still in a pretty good shape.<\/p>\n<pre>$ apt-cache\r\nzsh: exec format error: apt-cache\r\n$ su\r\nzsh: exec format error: su\r\n<\/pre>\n<p>Dang! So there goes another weekend I will spend to reinstall the thing. And who knows how long until the first node gets corrupted again.<\/p>\n<p>Checked the TP1-TP2 voltage, 4.65V, probably because of the second USB Ethernet adapter. I tried to limit the amount of writes on the SD-Card. No heavy writers, no swapping, no overclocking.<\/p>\n<p>So I must be doing something wrong, right? Right?! The RaspberryPi can be that unreliable.\u00a0I wonder how many power supplies and SD-Cards I will have to buy and try until, by sheer luck, I do not have to reinstall everything\u00a0in the following\u00a0three months or so.<\/p>\n<p>I ran into this problem years ago. And now it seems that I will run in the same problem over and over again.\u00a0Any recommendation is welcome of course. Though to be honest, for now, I just want\u00a0to fly the damn thing across the room.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Our home servers broke. Here we are again. I spent weeks of my time, countless evenings up to 4AM, entire weekends since months trying to design and configure our reborn\u00a0home-servers and gateways. And it was neat. DNSSEC all the way &hellip; <a href=\"https:\/\/hauweele.net\/~gawen\/blog\/?p=751\">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":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[593,87,594,6,159,591,595,162,592,596],"class_list":["post-751","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-corruption","tag-gateway","tag-home-server","tag-linux","tag-raspberry","tag-raspberrypi","tag-raspbian","tag-rpi","tag-sdcard","tag-sisyphus"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=751"}],"version-history":[{"count":0,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/751\/revisions"}],"wp:attachment":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}