How to format USB stick to Fat32 on FreeBSD
Here's a simple solution. I'm going to post this kind of little howtos. More for me to remember and not to search some forums again and again, but they might be useful for you as well. This time, as in the title.
First we zero the drive (where /dev/da0 is our memstick, but be careful here):
dd if=/dev/zero of=/dev/da0 bs=2m
Then we use fdisk to change the partition (or maybe I should call it 'slice') to msdos type:
fdisk -i /dev/da0
Change the partition type to 12, leave the rest default. Ignore the "fdisk: Class not found." error if you get one. Then create new filesystem of Fat32 type.
newfs_msdos -F32 /dev/da0s1
And we are done. Yuppie.












