Hassio and corrupted cards after flash

So, Is my 3rd sd card that is not showing the real size, after I flash hassio ( * Raspberry Pi 3 Model B and B+ 64bit) (balena etcher and Win32 Disk Imager). 8 Gb, 32 Gb and 64 Gb sd card, from different brands, stop working properly after I flash hassio. I’ve tried already 4-5 times each and almost the same problem over and over again. I fix every time the sd card with diskpart and after this all of my sd cards are showing the real size. I don’t know why and what cause this problem, but I know that something is not working allright. I’ve tried on different pc, and make the same. After I flash hassio, my sd card size is 31.9 Mb, from 8 Gb. Anyone had the same problem? Any ideea what to do?

You need to understand how partitions works and find a program or OS that can view all the partitions.

I’m guessing in diskpart you are cleaning and creating a new primary partition which can then be formatted by windows or in diskpart.

This isn’t unique to Hassio, I have seen it on many other projects where removable media is used as a boot drive.

diskpart -> list disk -> select disk N (N = the disk number) -> clean ->creater partition primary -> select partition 1 -> active -> format fs=fat32.

This is the opperation. I don’t understand whay I need to understand how partitions works, If I have just one.

Another flash, another sd card that is not showing the real size.bonus_dublu

I believe after flashing Hassio (HassOs) image you need to increase the partition to occupy the full card.

https://elinux.org/RPi_Resize_Flash_Partitions

It’s not going to show the real size because WINDOWS cannot read Linux partitions.

This isn’t a bug, the SDCard isn’t getting corrupt, and there isn’t a SINGLE partition on the SDcard. You are only seeing a single partition because that is all Windows can READ on it.

2 Likes

This helped me, thanks! Fixed small typo below:

diskpart -> list disk -> select disk N (N = the disk number) -> clean ->creat partition primary -> select partition 1 -> active -> format fs=fat32.