Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2008 20:14:33 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Andrei Iarus <poni1111@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Format USB stick in FreeBSD
Message-ID:  <20080820201433.132ef27f.freebsd@edvax.de>
In-Reply-To: <148960.41144.qm@web51703.mail.re2.yahoo.com>
References:  <148960.41144.qm@web51703.mail.re2.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 20 Aug 2008 08:49:53 -0700 (PDT), Andrei Iarus <poni1111@yahoo.com> 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


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080820201433.132ef27f.freebsd>