{"id":550,"date":"2022-09-09T20:42:34","date_gmt":"2022-09-09T18:42:34","guid":{"rendered":"http:\/\/cln.io\/blog\/?p=550"},"modified":"2023-01-19T10:38:33","modified_gmt":"2023-01-19T08:38:33","slug":"migrating-home-assistant-from-sd-card-to-ssd","status":"publish","type":"post","link":"https:\/\/cln.io\/blog\/migrating-home-assistant-from-sd-card-to-ssd\/","title":{"rendered":"Migrating Home Assistant from SD card to SSD on a raspberry pi 4"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Moving an SD card install to SSD for Home Assistant on a raspberry pi 4<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Steps to take<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Updating the Raspberry PI 4&#8217;s bootloader to the latest version<\/li>\n\n\n\n<li>Flashing Home Assistant Operating System to the SSD<\/li>\n\n\n\n<li>Making a complete system backup<\/li>\n\n\n\n<li>Removing the SD card from the PI<\/li>\n\n\n\n<li>Adding the SSD to the PI <\/li>\n\n\n\n<li>Rebooting the PI<\/li>\n\n\n\n<li>Restoring the backup <\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">On this page<\/p>\n\n\n\n<nav aria-label=\"Table of Contents\" class=\"wp-block-table-of-contents\"><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/migrating-home-assistant-from-sd-card-to-ssd\/#before-we-start-make-sure-you-have-a-working-adapter-for-your-ssd-to-usb\">Before we start: Make sure you have a working adapter for your SSD to USB<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/migrating-home-assistant-from-sd-card-to-ssd\/#updating-the-bootloader-from-an-sd-card-no-os-required-with-the-raspberry-pi-imager\">Updating the bootloader from an SD card (no OS required) with the Raspberry\u00a0Pi\u00a0Imager<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/migrating-home-assistant-from-sd-card-to-ssd\/#making-a-full-backup-of-home-assistant\">Making a full backup of home assistant<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/migrating-home-assistant-from-sd-card-to-ssd\/#flashing-home-assistant-onto-the-ssd\">Flashing Home Assistant onto the SSD<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/migrating-home-assistant-from-sd-card-to-ssd\/#booting-from-the-ssd-restoring-a-backup\">Booting from the SSD &amp; restoring a backup<\/a><\/li><\/ol><\/nav>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"before-we-start-make-sure-you-have-a-working-adapter-for-your-ssd-to-usb\">Before we start: Make sure you have a working adapter for your SSD to USB<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/jamesachambers.com\/new-raspberry-pi-4-bootloader-usb-network-boot-guide\/\" target=\"_blank\" rel=\"noreferrer noopener\">Please visit James A. Chambers&#8217;s resource for a crowdsourced list of adapters that work!<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"updating-the-bootloader-from-an-sd-card-no-os-required-with-the-raspberry-pi-imager\">Updating the bootloader from an SD card (no OS required) with the Raspberry&nbsp;Pi&nbsp;Imager<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/cln.io\/blog\/rpi-update-bootloader-with-sd-card\/\" target=\"_blank\" rel=\"noreferrer noopener\">You don&#8217;t need to run a full OS to update the bootloader, it can be done by putting an SD card in with the latest bootloader, follow my guide here on how to do that!<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"making-a-full-backup-of-home-assistant\">Making a full backup of home assistant<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Head over to &#8220;Settings &gt; System &gt; Backups &gt; Create Backup&#8221;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"375\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-7.png\" alt=\"\" class=\"wp-image-579\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-7.png 623w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-7-300x181.png 300w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"413\" height=\"347\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-9.png\" alt=\"\" class=\"wp-image-583\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-9.png 413w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-9-300x252.png 300w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><figcaption class=\"wp-element-caption\">create a full backup, depending on how big your home assistant is, it could take a while<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"410\" height=\"232\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-10.png\" alt=\"\" class=\"wp-image-584\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-10.png 410w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-10-300x170.png 300w\" sizes=\"auto, (max-width: 410px) 100vw, 410px\" \/><figcaption class=\"wp-element-caption\">wait for the backup to complete<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"362\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-11.png\" alt=\"\" class=\"wp-image-586\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-11.png 580w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-11-300x187.png 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><figcaption class=\"wp-element-caption\">locate the backup in the list and download it.<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"flashing-home-assistant-onto-the-ssd\">Flashing Home Assistant onto the SSD<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Head over to <a href=\"https:\/\/www.home-assistant.io\/installation\/\" target=\"_blank\" rel=\"noreferrer noopener\">home assistant<\/a> and download the raspberry pi (64 bit) image <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"712\" height=\"529\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-14.png\" alt=\"\" class=\"wp-image-590\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-14.png 712w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-14-300x223.png 300w\" sizes=\"auto, (max-width: 712px) 100vw, 712px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">I suggest to browse to the URL and download the image directly as opposed to copy paste it into Belena Etcher<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Head over to <a href=\"https:\/\/www.balena.io\/etcher\/\" target=\"_blank\" rel=\"noreferrer noopener\">Belena Etcher<\/a> and download your OS&#8217;s version, install &amp; run it<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"451\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-13.png\" alt=\"\" class=\"wp-image-589\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-13.png 655w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-13-300x207.png 300w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"507\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-15.png\" alt=\"\" class=\"wp-image-591\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-15.png 802w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-15-300x190.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-15-768x486.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><figcaption class=\"wp-element-caption\">Select flash from the file and grab the OS we just downloaded<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"507\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-16.png\" alt=\"\" class=\"wp-image-592\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-16.png 802w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-16-300x190.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-16-768x486.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><figcaption class=\"wp-element-caption\">Select the SSD and hit flash!<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"booting-from-the-ssd-restoring-a-backup\">Booting from the SSD &amp; restoring a backup<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure your bootloader of the RPI is up to date! (<a href=\"https:\/\/cln.io\/blog\/rpi-update-bootloader-with-sd-card\/\" target=\"_blank\" rel=\"noreferrer noopener\">my guide on how to do this here<\/a>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Plug in the SSD (pick the blue USB ports) they are USB 3 as opposed to USB 2.<br>Power up the PI and wait a couple of minutes for it to boot \/ unpack \/ install HassOS \/ Hass.io \/ Home Assistant Operating System<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Connect to the fresh install of home assistant, depending on how you have it set up, in my case I have DHCP reservations on the MAC Address of my Raspberry Pi<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"458\" height=\"576\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-17.png\" alt=\"\" class=\"wp-image-595\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-17.png 458w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-17-239x300.png 239w\" sizes=\"auto, (max-width: 458px) 100vw, 458px\" \/><figcaption class=\"wp-element-caption\">Select &#8220;Alternatively you can restore from a previous backup.&#8221;<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"418\" height=\"193\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-18.png\" alt=\"\" class=\"wp-image-598\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-18.png 418w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-18-300x139.png 300w\" sizes=\"auto, (max-width: 418px) 100vw, 418px\" \/><figcaption class=\"wp-element-caption\">select the backup on your storage<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"501\" height=\"307\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-19.png\" alt=\"\" class=\"wp-image-600\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-19.png 501w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-19-300x184.png 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><figcaption class=\"wp-element-caption\">select full backup and hit restore<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">It will restore the backup, reboot and come back online!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There we go! we migrated from an SD card to an SSD!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/jainath-ponnala-9wWX_jwDHeM-unsplash-1024x683.jpg\" alt=\"\" class=\"wp-image-755\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/jainath-ponnala-9wWX_jwDHeM-unsplash-1024x683.jpg 1024w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/jainath-ponnala-9wWX_jwDHeM-unsplash-300x200.jpg 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/jainath-ponnala-9wWX_jwDHeM-unsplash-768x512.jpg 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/jainath-ponnala-9wWX_jwDHeM-unsplash-1536x1024.jpg 1536w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/jainath-ponnala-9wWX_jwDHeM-unsplash-2048x1365.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Photo by&nbsp;<a href=\"https:\/\/unsplash.com\/@jainath?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noreferrer noopener\">Jainath Ponnala<\/a>&nbsp;on&nbsp;<a href=\"https:\/\/unsplash.com\/s\/photos\/raspberry-pi?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noreferrer noopener\">Unsplash<\/a><\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Moving an SD card install to SSD for Home Assistant on a raspberry pi 4 Steps to take On this page Before we start: Make sure you have a working adapter for your SSD to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":601,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,26,36],"tags":[],"class_list":["post-550","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automation","category-homeassistant","category-it","category-raspberry"],"_links":{"self":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/comments?post=550"}],"version-history":[{"count":26,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/550\/revisions"}],"predecessor-version":[{"id":1285,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/550\/revisions\/1285"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/media\/601"}],"wp:attachment":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/media?parent=550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/categories?post=550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/tags?post=550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}