Format USB stick in FreeBSD

Polytropon freebsd at
Wed Aug 20 18:14:35 UTC 2008

On Wed, 20 Aug 2008 08:49:53 -0700 (PDT), Andrei Iarus <poni1111 at> wrote:
> Hello,
> How can I format a USB stick in FreeBSD?

Three possibilities in general:

1. Use FreeBSD's UFS file system:

	# newfs /dev/da0

2. Use the MS-DOS file system that is present on most sticks by default

	# mount_msdosfs /dev/da0s1 /mnt

3. Don't use any file system, use tar (max. UNIX interoperability):

	# tar cvf /dev/da0 <files...>

Read the newfs manpage. The examples above use da0 as the name
of the device associated to the USB stick. Check this via dmesg
before eventually running newfs on something important. :-)

	# dmesg | grep ^da

>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list