gpart on FreeBSD to partition and format a USB key
August 16, 2025 —
Nico Cartron
A quick one, as I tried using a 32 GB USB key on MacOS, which only saw a small partition (10 MB).
MacOS' diskUtil didn't help, so I used FreeBSD - here's how:
gpart show
gpart destroy -F da0
gpart create -s mbr da0
gpart add -s 29G -t fat32 da0
newfs -U /dev/da0s1
mount /dev/da0s1 /mnt/usbdisk/
Tags: BSD