From owner-freebsd-questions@FreeBSD.ORG Wed Aug 20 23:06:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 807AB1065674 for ; Wed, 20 Aug 2008 23:06:12 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id D81878FC18 for ; Wed, 20 Aug 2008 23:06:11 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl12-130.kln.forthnet.gr [77.49.139.130]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id m7KN5Wl1001840 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 21 Aug 2008 02:05:39 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m7KN5WPq008480; Thu, 21 Aug 2008 02:05:32 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m7KN5VGR008467; Thu, 21 Aug 2008 02:05:31 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Andrei Iarus References: <148960.41144.qm@web51703.mail.re2.yahoo.com> Date: Thu, 21 Aug 2008 02:05:31 +0300 In-Reply-To: <148960.41144.qm@web51703.mail.re2.yahoo.com> (Andrei Iarus's message of "Wed, 20 Aug 2008 08:49:53 -0700 (PDT)") Message-ID: <87ljyr479g.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m7KN5Wl1001840 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.83, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.57, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Format USB stick in FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2008 23:06:12 -0000 On Wed, 20 Aug 2008 08:49:53 -0700 (PDT), Andrei Iarus wrote: > Hello, > How can I format a USB stick in FreeBSD? The same way you can format any other disk. I usually format my USB sticks by creating a single da0s1 slice and then one (or more) BSD labels in that slice, by typing the commands: fdisk -BI /dev/da0 bsdlabel -w -B /dev/da0s1 newfs /dev/da0s1a If they are going to be used by non-BSD systems, I prefer msdosfs, so I use: fdisk -BI /dev/da0 newfs_msdos /dev/da0s1 The command-line options and what they do will be more obvious if you read the manpages of fdisk(8), bsdlabel(8), newfs(8), and newfs_msdos(8). There is also a nice article online that you will probably find useful: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/formatting-media/index.html