Can't Reformat SD Card for Hass.Io

I tried to update to latest version and HassIO won’t boot. I’m trying to reformat the SD card but diskpart, disk management, nor mini partition wizard allows me to delete partitions and reset the SD card to blank state.

Anyone have any ideas? Thanks!

Write protected?
The card could be faulty - I had one like that once…

For the first time in like one year the same thing happened to me when updating to the latest x.1 update, it failed to boot, what I did was re-format the card with sd formatter, pretty much one button click, always worked with restoring cards to a blank state etc, and it worked flawlessly afterwards when flashing hassio, have you tried it just in case?

If it still fails, it could be a write protected/faulty card as mentioned.

Yup tried it all and failed. So weird. This is a fairly new card.

have you tried diskpart (run as admin)

diskpart

list disk

select disk X

replace X with the number of your disk from list disk

clean

create partition primary

From there you should be able click on the disk in explorer and it will ask to format. Format it and then try to put the image on it. I had an issue recently where I couldn’t clean disks like I used to and it turned out to be a Win10 permissions issue.

3 Likes

Having the same issue on MacOS.

I first also thought it would be a defect of the SD card, but now the second card has the same issue. Neither Etcher nor DS Card Formatter from sdcard.org can format the MicroSD cards. The cards get mounted correctly and the partition tables are also there. I’m using an MicroSD card reader, so there’s no write protection knob on an adapter.

Any suggestions?

I know this is old, but I’m having the same problem. This is my second card that now seems to be locked and or corrupt. I’m using a RPI with hassio. Windows can see the drive and boot partition, but I cannot format the card. I tried disk partition, SD card formatter, but no luck.
DISKPART> list partition

Partition ### Type Size Offset


Partition 2 Primary 1023 KB 512 B
Partition 1 Primary 32 MB 1024 KB

DISKPART>

Thanks,

Rob

Did you try this?

This worked well for me in the past.

1 Like

Yes I did, it just fails. Thanks.

What step does it fail at?

DISKPART> select disk 4

Disk 4 is now the selected disk.

DISKPART> list disk

Disk ### Status Size Free Dyn Gpt


Disk 0 Online 119 GB 1024 KB
Disk 1 Online 931 GB 1024 KB
Disk 2 Online 931 GB 0 B
Disk 3 Online 931 GB 0 B

  • Disk 4 Online 14 GB 14 GB
    DISKPART> clean
    DiskPart succeeded in cleaning the disk.
    DISKPART> create partition primary
    Virtual Disk Service error:
    The operation timed out.
    DiskPart has referenced an object which is not up-to-date.
    Refresh the object by using the RESCAN command.
    If the problem persists exit DiskPart, then restart DiskPart or restart the
    computer.
    DISKPART>

I haven’t tried rebooting yet.

Great it works! :smiley:

Have the same problem and when I run DISKPART, It fails at the same part. Not sure how else to get passed this. Also my second sdcard too :frowning:

Did someone of you solve the problem? I have this issue with two SD cards…

Here as well. 2 sd cards bricked and pi not booting on both of them. One 128gb

So far, no one has solved the problem. All those who give solutions with diskpart or other software, have have not recovered an sd card with hassio.
I think this is really a reason why i will move away from hassio.

I threw it away, couldn’t save it.