This question already has an answer here:
So I attempted to boot my Raspberry Pi 3 running BerryBoot with raspbian and retropie installed, but it wouldn't boot. So I tried to plug my sd card into the computer, and instead of the boot partition appearing, it said it is corrupted, and I tried to format it, but the format failed. I've tried to use diskpart, ext2read and other similar programs, but all of them only show the 30mb partition, and even that cannot be formatted. I really hope that I can save my sd card, and I have tried everything. I just want to reformat to one fat32 partition and reinstall berryboot, ect.
Edit: The website believes that this is a duplicate of this:SD Card Showing as 30 MB on a 32 GB Card. Can't Format, Can't create a partition table but my problem is different. My partition is not unallocated, it is corrupted, and cannot be read or formatted. Also, that post had no solution, they just said get a new card, which I do not want to do mainly because I believe that this problem can be solved, I just don't know how yet.