How to swap/change the existing uSD card in HA to a larger card?

Hello,
HA was installed on a 32GB uSD card (RPi 4).
Subsequently in HA installed programs and set up integrations.
Now system is working.

How can I quickly and easily swap an existing 32GB uSD card (standard) to a new 64GB uSD card (durable)?
Is there a possibility to swap the uSD on the RPi4 and replace e.g. the SSD?

Thanks.

2 Likes

I use Hassio and have done a complete backup and moved from micro SD to ssd. Then I moved from pi 3 and ssd to a Dell nuc. Most recently I just moved from the dell nuc to a better Intel nuc.

1 Like

Second what Chris said - if you’re on HAOS or Supervised this is an easy exercise. FULL backup the installation. Install a new copy of HA / HAOS on your media of choice - make sure it boots, restore backup.

If you’re on core only / docker, I know it involves getting a copy of everything in your configuration folder but I will leave you to folks who know those installation types better than I.

1 Like

Just do a clean shutdown, take your 32gb sd card and create a image of it with the help of usbimager (need to get the full version from gitlab and not the “write only” lite version from the website). :point_left:

Then just write the image back to your 64gb sd card. :writing_hand:

Last step is probably (if Ha doesn’t do that automagically? :mage:) to raise the the data partition to the full size of the sd card (but technically there is actually no need if you don’t need the space). As we are on flash storage the internal controller decides which cells to be written so you will benefit from the over provisioning in any way. :twisted_rightwards_arrows:

And for your new “durable” sd card you probably were successfully tricked by the industry. Often they just repeat what is true for other (including “standard”) sd cards too, like being shockproof, waterproof and x-ray proof. :radioactive:

Some sd card manufactures that give 10/15 years or even life time (limited) guarantees usually exclude use cases not described and that typically always includes scenarios with a high random IO with little sequential writes (for example running HaOS) :warning:

The label you are gonna aiming for on your sd card is “A2” - the rest is normally of no importance (including the marketing labels “pro endurance” etc.). Beside over provisioning (aka buy bigger cards then you need) can prolong the life of your card. :older_woman:

For more information on that topic you can consult this posts/thread :point_down:

1 Like

Also consider Macrium Reflect Free. Great program, still free. Works a treat.

Any particular reason to prefer a share/freeware which is not open source and only available in exchange for personal data (need to provide a email to get the download link and license from the official site)? :slot_machine:

Just asking because USBImager comes as a open source program which is not only available for windows but linux and mac as well. The whole program is not even :one: mb and doesn’t phone home like other solutions like the >500MB etcher spyware :ghost: