Home Assistant on Docker, Move to Home Assistant OS

Hi

I’m brand new to both Raspberry Pi and Home Assistant. I successfully installed Raspberry OS lite , docker and then HA to a container… Learnt quite a bit on the way but found a few things too much of a challenge. Namely getting a container to install with Docker Compose of the Conbee 2 stick I purchased for the project. Although I really do like the idea of making the most out of the Pi, I did get it for HA primarily. With this in mind, I’ve decided to scrap the install and start again but this time install HA OS. I hit an issue straight away. When I try to write the new HA OS image to the same SSD, I get an error saying the SD card is write protected… I can only assume the Raspberry OS image on it already has protected the disk. Is this an easy one to solve? Can I use Windows to reinitialise the disk some how?

Found it. fixed it like this in win10

  1. Hit Windows Key + X on your keyboard, and select Command Prompt (Admin) from the menu.

  2. Type diskpart and press Enter.

  3. Type list disk and press Enter.

  4. Type select disk #(ex: Disk 1) to select the disk which is write protected and press Enter.

  5. Type attributes disk clear readonly to change the disk’s properties so that it is no longer read-only and press Enter.

  6. Type exit and press Enter twice to exit Diskpart and Command Prompt continuously. Re-plug your USB flash drive to check if the write protection error is solved.