Format a USB flash drive using gpart

Polytropon freebsd at edvax.de
Sat Jul 7 17:28:01 UTC 2012


On Sat, 7 Jul 2012 13:15:10 -0400, Carmel wrote:
> This is probably a dumb question, but does gpart even work on a USB
> flash drive? I have not been able to figure out how to do it. I want to
> erase the entire drive and format it for a FreeBSD UFS2 file system.

In that case, screw slices and partitions 'n stuff. :-)

	# newfs /dev/da0

This is all you need (see "man newfs" and "man tunefs" for
options you might need to optimize utilization, and check
best fitting options for /etc/fstab, e. g. noatime if you
are not going to need it).


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list