6

I installed Windows loT core onto my SD card and used it for my Raspberry Pi. Upon deleting the OS, I found that my SD card had been split into multiple drives. Is there a way to fix this? I can't add a screenshot as an unexpected error occurred.

enter image description here

5 Answers5

13

The Disk Management tool may not let you work on SD cards and flash disks with partition tables. diskpart will work, though.

  1. Open the Start menu, type diskpart and press Enter. You may have to confirm UAC prompt.
  2. Type list disk Enter. Take note of card's disk number.
  3. select disk X Enter (X is disk number from previous command.
  4. clean Enter - this will overwrite partition table with zeros - all data will be lost.
  5. 'create partition primary' Enter - this will create a partition.
  6. Now simply format the disk and it is ready to use.
gronostaj
  • 57,004
  • 1
    Downvoter: I'll be happy to improve this answer, but I don't know what's wrong with it. Please don't downvote silently, always leave an explanatory comment or upvote existing one. – gronostaj Oct 04 '22 at 16:54
9

Firstly, you need to run diskmgmt.msc - if you have Windows 10, just click start, then type "diskmgmt.msc", right click it, choose to start it as administrator. You should get something like on the screenshot below. Then you just right-click every volume on your sd card, and delete it. After you deleted them all, you can create one also by right clicking on empty/unassigned space on sd representation.

Disk Management console

Andrew Morton
  • 3,097
  • 2
  • 21
  • 30
Michał
  • 109
1

Diskpart and diskmgmt.msc did not work for me on my microSD after installing miner firmware and it was split into about 5 drives. I used Android (maybe an otg adapter if it's a flash drive or an app but I don't think it's necessary) to format it, it will say to repair the drive and then it worked perfectly, every time!

1

Diskpart and diskmgmt.msc did not work for me on my microSD, and formatting it with Windows did not work, but formatting it with the SD Association Formatter worked: https://www.sdcard.org/downloads/formatter/sd-memory-card-formatter-for-windows-download/

Fred H
  • 11
  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. – Community Jun 07 '22 at 16:39
0

Easy and fastest way. Put SD card into old camera let the camera format the card. Put back into PC to use.

human_rosas
  • 773
  • 3
  • 10
  • 20
Mark
  • 11
  • This worked fantastic.. in less than 5secs. No hassles.. nothing.. if you really want to wipe out everything this is the best way :) – Sai Dandem Jun 15 '23 at 07:17