Skip to content

Instantly share code, notes, and snippets.

@josy1024
Last active December 20, 2023 19:39
Show Gist options
  • Save josy1024/41aa4ad5eab2c389cf130f48d26d6e1f to your computer and use it in GitHub Desktop.
Save josy1024/41aa4ad5eab2c389cf130f48d26d6e1f to your computer and use it in GitHub Desktop.
downsize big sd card to 32gb sd card
# DISKPART>
list disk
list volume
select volume X
delete volume
list volume
create partition primary size=32000
format quick fs=fat32
assign letter = D
# 32gb.txt
select disk 1
clean
convert mbr
create partition primary size=32000
format quick fs=fat32 label=32GBSD
assign letter=D
list volume
diskpart /s 32gb.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment