How to fdisk a fat32 sd card?

As sysinstall is gone, I cannot edit partitions only on the sd card.
bsdinstall wants me to partition and mount all drives in the machine.

trying gpart show mmcsd0 I get
Code:
gpart: No such geom: mmcsd0
 
You need to create a partitioning scheme first on the card, this creates the partition table:

gpart create -s MBR mmcsd0

Then to add a partition:

gpart add -t fat32 mmcsd0
 
I think that's the parent device, not the drive, but don't have an easy way to check here. Look in /dev/. diskinfo(8) can be used to check if a drive can be read.
 
The device is mmc0, I think
Code:
mmc0: <MMC/SD bus> on sdhci_pci0
mmcsd0: 32GB <SDHC SU32G 8.0 SN 3228943 MFG 06/2013 by 3 SD> at mmc0 50.0MHz/4bit/65535-block
(which is the new card now)

formatted on phone:
Code:
# gpart show mmcsd0
=>      63  62333889  mmcsd0  MBR  (30G)
        63      8129          - free -  (4.0M)
      8192  62325760       1  !12  (30G)
 
Back
Top