{"id":97,"date":"2020-03-23T02:34:44","date_gmt":"2020-03-23T02:34:44","guid":{"rendered":"https:\/\/edwinsmash.com\/?p=97"},"modified":"2020-03-23T02:37:34","modified_gmt":"2020-03-23T02:37:34","slug":"booting-raspberry-pi-off-usb","status":"publish","type":"post","link":"https:\/\/edwinsmash.com\/?p=97","title":{"rendered":"Booting Raspberry Pi Off USB"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I like Rasperry Pi&#8217;s, but they have one glaring problem:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>There is no way to shut them down.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I run all of mine as servers, so if I can&#8217;t access them over the network you can&#8217;t press a button on them and have them shut down, you have to pull out the power cable. Which in my experience ruins the SD card.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However there is a way to boot off a USB storage device instead. I am linking to the official documentation here <strong>WHICH YOU SHOULD DEFINITELY READ<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.raspberrypi.org\/documentation\/hardware\/raspberrypi\/bootmodes\/msd.md\">https:\/\/www.raspberrypi.org\/documentation\/hardware\/raspberrypi\/bootmodes\/msd.md<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But here are the commands for how to do it for a Raspberry Pi 3B running Raspbian:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Log into Raspberry Pi.<\/li><li>Run this command: <code>echo program_usb_boot_mode=1 | sudo tee -a \/boot\/config.txt<\/code><\/li><li>Then reboot with &#8220;sudo reboot&#8221;.<\/li><li>When it comes back online run this: <code>vcgencmd otp_dump | grep 17:<\/code><\/li><li>If it says &#8220;<code>17:3020000a<\/code>&#8221; you are good to go. <\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I like Rasperry Pi&#8217;s, but they have one glaring problem: There is no way to shut them down. I run all of mine as servers, so if I can&#8217;t access them over the network you can&#8217;t press a button on &hellip; <a href=\"https:\/\/edwinsmash.com\/?p=97\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3],"class_list":["post-97","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-raspberrypi"],"_links":{"self":[{"href":"https:\/\/edwinsmash.com\/index.php?rest_route=\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edwinsmash.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edwinsmash.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edwinsmash.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/edwinsmash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=97"}],"version-history":[{"count":0,"href":"https:\/\/edwinsmash.com\/index.php?rest_route=\/wp\/v2\/posts\/97\/revisions"}],"wp:attachment":[{"href":"https:\/\/edwinsmash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edwinsmash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edwinsmash.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}