{"id":838,"date":"2020-03-18T15:43:54","date_gmt":"2020-03-18T19:43:54","guid":{"rendered":"https:\/\/www.andersknelson.com\/blog\/?p=838"},"modified":"2023-11-01T00:17:03","modified_gmt":"2023-11-01T04:17:03","slug":"freeing-emmc-space-on-the-beaglebone","status":"publish","type":"post","link":"https:\/\/www.andersknelson.com\/blog\/?p=838","title":{"rendered":"Freeing eMMC space on the Beaglebone"},"content":{"rendered":"\n<p>After installing the LXQt Debian image from eLinux.org, then Pi-Hole, then Docker in order to run Home Assistant, I quickly ran out of space on the onboard 4GB eMMC.<\/p>\n\n\n\n<p>Freeing eMMC Space<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Backed up the eMMC using this script &lt;<a href=\"https:\/\/elinux.org\/BeagleBone_Black_Extracting_eMMC_contents\">link<\/a>&gt;. Saved the SD card image in OSX using Disk Utility. Then compressed it into a zip file.<\/li>\n\n\n\n<li>Installed the Debian Stretch Console Snapshot image from eLinux.org &lt;<a href=\"https:\/\/elinux.org\/Beagleboard:BeagleBoneBlack_Debian#Debian_Releases\">link<\/a>&gt;.<\/li>\n\n\n\n<li>Made a static IP by reserving a static DHCP assignment in my router configuration. I tried to assign a static IP for eth0 on the BBB &lt;<a href=\"https:\/\/elinux.org\/Beagleboard:Terminal_Shells#SSH:_BeagleBone.27s_IP_Address\">link<\/a>> but it didn&#8217;t take, not sure why. Maybe I should do this? &lt;<a href=\"https:\/\/serverfault.com\/questions\/568809\/why-is-debian-ignoring-my-static-configuration-in-etc-network-interfaces\">link<\/a>><\/li>\n\n\n\n<li>Checking the drive free space using &#8220;df&#8221; &lt;<a href=\"https:\/\/www.tecmint.com\/how-to-check-disk-space-in-linux\/\">link<\/a>&gt;, I now have 2.9GB of space free, an enormous improvement from before.<\/li>\n\n\n\n<li>Debian kept complaining about locales, so i updated them &lt;<a href=\"https:\/\/people.debian.org\/~schultmc\/locales.html\">link<\/a>&gt;.<\/li>\n\n\n\n<li>Fought with \/etc\/init.d to get the LED disable script to run on startup; the symlink worked when named &#8220;S99rc_local.sh&#8221; using a script named &#8220;rc_local.sh&#8221;. Seems the naming convention must start greater than &#8220;S01&#8221; and the name after this must match the script name exactly.<\/li>\n<\/ol>\n\n\n\n<p>Installing Pi Hole<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Had to install curl &lt;sudo apt-get install curl&gt;.<\/li>\n\n\n\n<li>Ran the online installer &lt;<a href=\"https:\/\/github.com\/pi-hole\/pi-hole\/#one-step-automated-install\">link<\/a>&gt;.<\/li>\n\n\n\n<li>Updated Gravity, the Pi-Hole blocklist (it installs empty).<\/li>\n\n\n\n<li>Did all the things in my Pi-Hole on BBB post &lt;<a href=\"https:\/\/www.andersknelson.com\/blog\/?p=559\">link<\/a>&gt;.<\/li>\n<\/ol>\n\n\n\n<p>Installing Docker ** Did not finish, installed Home Assistant on a spare RPi 3B+ and called it a day. **<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Installed Docker CE (Community Edition) &lt;<a href=\"https:\/\/docs.docker.com\/install\/linux\/docker-ce\/debian\/\">link<\/a>&gt; NOTE: for BBB you must use the repo under the &#8220;armhf&#8221; tab. Configured Docker to run on boot &lt;<a href=\"https:\/\/docs.docker.com\/install\/linux\/linux-postinstall\/\">link<\/a>&gt;. <\/li>\n\n\n\n<li>Cleared\/formatted my 8GB SD card with FAT32 &lt;<a href=\"https:\/\/apotonick.wordpress.com\/2016\/10\/05\/formatting-an-sd-card-to-vfat-on-linux\/\">link<\/a>&gt;. Added boot-time auto mount &lt;<a href=\"https:\/\/hifiduino.wordpress.com\/2014\/03\/19\/beaglebone-black-accessing-usd-and-usb-storage\/\">link<\/a>&gt; &lt;<a href=\"https:\/\/wiki.debian.org\/fstab\">link2<\/a>&gt;. Changed the default path for Docker images to be on the SD card at \/docker_configs by way of a new JSON daemon config file &lt;<a href=\"https:\/\/docs.docker.com\/config\/daemon\/\">link<\/a>&gt; &lt;<a href=\"https:\/\/medium.com\/developer-space\/how-to-change-docker-data-folder-configuration-33d372669056\">link2<\/a>&gt;.<\/li>\n\n\n\n<li>Fun fact, aufs requires an ext4 filesystem so I reformatted as ext4.<\/li>\n\n\n\n<li>TBD?<\/li>\n<\/ol>\n\n\n\n<p>Disabling the USB mass-storage gadget<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/groups.google.com\/forum\/#!topic\/beagleboard\/El1i9h7UzjQ\">https:\/\/groups.google.com\/forum\/#!topic\/beagleboard\/El1i9h7UzjQ<\/a><\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After installing the LXQt Debian image from eLinux.org, then Pi-Hole, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":858,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[10],"class_list":["post-838","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects","tag-beaglebone"],"_links":{"self":[{"href":"https:\/\/www.andersknelson.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.andersknelson.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.andersknelson.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.andersknelson.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.andersknelson.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=838"}],"version-history":[{"count":18,"href":"https:\/\/www.andersknelson.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/838\/revisions"}],"predecessor-version":[{"id":1102,"href":"https:\/\/www.andersknelson.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/838\/revisions\/1102"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.andersknelson.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/858"}],"wp:attachment":[{"href":"https:\/\/www.andersknelson.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.andersknelson.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.andersknelson.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}