balena ruined my micro sd

it says not enough space

1 Like

that didnt work either

1 Like

Hi there – thanks for trying that. Can you please try going through the “How to Recover a USB Drive or SD Card Using Windows” section at https://www.balena.io/blog/did-etcher-break-my-usb-sd-card/? Please be sure to follow each step exactly as described.

All the best,
Hugh

2 Likes

That latest screen cap makes me think the SD card is bad. Windows Disk Admin is usually pretty good about seeing the entire capacity of a device, even with strange partitions or corruption. And it rarely has an issue formatting unless the device has a problem.

1 Like

It was working fine until the balena format
Disk part didn’t work either

1 Like

Hi Nikos

Did you go through the blog post that my colleague linked - https://www.balena.io/blog/did-etcher-break-my-usb-sd-card/ ?
Did you run into any issues trying the things listed there?

1 Like

Yes, I did, disk part couldn’t create partition primary

1 Like

Hi Nikos

Have you tried using a different OS? Mac or Linux perhaps.

1 Like

i don’t have any of those

1 Like

Nikos

It’s impossible that Etcher could break your SD card. It is possible that your card was already worn due to many write cycles and it happened to go bad at this time, but Etcher isn’t doing anything special which might cause this. I will explain a little about how the disk works with the OS and then we can get to a means of recovering it.

Your SD card is made up of a series of memory locations, with the first few bytes taken up with a partition table. This table stores information about how the rest of the memory locations are populated. For example, it might say that there is a 1GB partition starting at block X, and it is formatted with the FAT32 filesystem. Now, if you have a 128GB card, then it will still show a partition of 1GB and no more, due to this partition table.

When you wrote your Raspberry Pi image, it included a partition table along with the data for those partitions. Typically a linux OS will have multiple partitions for different uses, and they also use filesystems which Windows doesn’t understand. When you put the card in your machine, it reads the partition table and then shows you the partitions that it can read. Right now, the partition table is either corrupted, or contains partitions which your Windows OS cannot read. To fix this, you need to wipe the partition table.

I have tested this by creating a 32mb empty image using the dd command, which you don’t have in windows. I then used Etcher to write it to my SD card and Etcher correctly warns that it will overwrite my partition table. This is fine, I let it. After it finished, MacOS will ask if I want to initialise my card, since it has no partitions on it. Windows will likely do the same. I have attached the image if it helps.

1 Like

A file has been uploaded using Jellyfish: https://jel.ly.fish/9e3ae567-03ad-47e9-8806-4a3294cff6c0

… also looking at your above screenshots it would appear that your SD card really is ~32Mb – what brand is it, and when did you buy it?

1 Like

Adata brand, 4 gigabytes

1 Like

Can you clarify whether this was a brand new SD card or was this ever used before to hold a number of files, proving that it could indeed hold more than 32MB?
Did you Pi manage to boot the SD card after you flashed Pi OS (32-bit) Lite?
It might be a faulty SD card.
As a side note, we have also seen cases of SD cards faking their actual side and ending up in similar state once you try to store more than they can actually hold.

Kind regards,
Thodoris

1 Like

I used it before for mp3
It had of course more than 30mb
I didn’t put it in pi
After balena, I wanted to write an ssh file in the micro sd and couldn’t
Then i tried formatting it with windows and android phone

1 Like

Nikos, I don’t want to keep you going in circles, but I just want to confirm the current status. I understand you followed the blog post ( https://www.balena.io/blog/did-etcher-break-my-usb-sd-card/), but you were not able to get past the step create partition primary? At that point, after the clean command, “the drive is now blank, and can be re-flashed with Etcher.” Did you try flashing with Etcher after the clean step? If so, and you are still seeing only 32 Mb, perhaps the SD card may be faulty.

1 Like

I want to bump this post as after using balena etcher to flash rasbpian, my Sandisk ultra, class A1 32GB became an unformattable 30mb piece of junk.
I second every step and issues Nikos is having: Sd card formatter fails, diskpart cannot create partitions, every possible software I downloaded to investigate shows 30mb instead of 32Gb the card has. Or had, before using balena etcher. You guys need to fix this issue, or at least make it very clear that there is a solid chance that once you’ve flashed the sd with balena, then it’s forever.

1 Like

Hey @ruspa, I replied to your similar post here: How to restore correct partition size after flashing with balena? - #3 . It is unlikely that this issue is caused by Etcher as we flash millions of cards per month without issues.

1 Like

Hey here’s how I fix all of my disks on windows.

Open start menu select run

Inside the run box type diskpart

Once diskpart opens in the terminal type list disk

Type select disk x for whatever disk you want to fix

After you select the right disk type clean

Should fix it if windows can’t see it run the list disk command again select the disk and type create partition primary. Good luck I made an account just to help

1 Like

Sd is in the trash bin log time ago already
Thanks anyway

1 Like