Deleting partitions from SD card with Windows

If you play around with SD cards, eg. with Berryboot or similar for RaspberryPi, you might end up having many partitions in a SD card. If you need to use them in some other way, you might find it difficult to get rid of the partitons. You might be able to delete everything, but might also notice that some partions are hard to delete or remove.

Disk_Management

You might end up showing like this but you can’t Delete Volume. There is an easy way to get rid of that though with the standard windows tools.

Invoke cmd prompt
# Run diskpart with admin rights
diskpart
# type list disk to show the disk what you have (your sd must be detected and inserted)
DISKPART> list disk

Disk ### Status Size Free Dyn Gpt
——– ————- ——- ——- — —
Disk 0 Online 298 GB 0 B
Disk 1 Online 1920 MB 0 B

# you might see something different, but select the correct SD card disk as mine is Disk 1
DISKPART> select disk 1

Disk 1 is now the selected disk.

# then list partitions that you have, they might be more or different size, mine was this small berryboot partition
DISKPART> list partition

Partition ### Type Size Offset
————- —————- ——- ——-
Partition 1 Primary 70 MB 2048 KB

# then select the correct partition
DISKPART> select partition 1

Partition 1 is now the selected partition.

# and after that delete it
DISKPART> delete partition

DiskPart successfully deleted the selected partition.

# now you can exit from diskpart and see that the partition is deleted
DISKPART>exit

Disk_Management_2

That was the easyest way I could quickly figure how to get rid of those partitions, hopefully this helps someone.

 

Author: Veli-Pekka Lehtosaari

Veli-Pekka Lehtosaari, most call me VP, age 49 (2022), CEO, Consult, M.Sc.(Tech), Electronics, ICT 1997, Single, 2 children (Girls), Hobbies: ICT, Motor racing, Snowboarding

4 thoughts on “Deleting partitions from SD card with Windows”

  1. Hi, After lot’s of searching around on how to remove the partition scheme from within Windows I came to the same conclusion as you. You don’t need fancy tools to get rid of the partitions created on the your SD card for whatever raspberry pi OS. Though I have removed the whole volume instead of the partition alone.
    Thanks for confirming my way of thinking.
    S.Molnar

    1. Yes, I like a lot playing around with Linux + some hardcore utils there, but it doesn’t hurt to use Windows tools also as you might have them easier available. And deleting whole volume is also an option. Glad that you got it working and confirmation.

  2. thanks a lot. Was stuck with long procedures. This was really helpful and effective

Leave a Reply

Your email address will not be published. Required fields are marked *