From owner-freebsd-questions@FreeBSD.ORG Mon Jul 9 03:51:22 2012 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 0BF9C1065673 for ; Mon, 9 Jul 2012 03:51:22 +0000 (UTC) (envelope-from jerrymc@jerrymc.net) Received: from jerrymc.net (jerrymc.net [75.75.214.34]) by mx1.freebsd.org (Postfix) with ESMTP id AF0378FC1D for ; Mon, 9 Jul 2012 03:51:21 +0000 (UTC) Received: from jerrymc.net (localhost [127.0.0.1]) by jerrymc.net (8.14.5/8.14.5) with ESMTP id q693MaiT023817; Sun, 8 Jul 2012 23:22:36 -0400 (EDT) (envelope-from jerrymc@jerrymc.net) Received: (from jerrymc@localhost) by jerrymc.net (8.14.5/8.14.5/Submit) id q693MaBU023816; Sun, 8 Jul 2012 23:22:36 -0400 (EDT) (envelope-from jerrymc) Date: Sun, 8 Jul 2012 23:22:36 -0400 From: Jerry McAllister To: Bruce Cran Message-ID: <20120709032236.GA23760@jerrymc.net> References: <20120708143032.89aad1ea.freebsd@edvax.de> <4FF98AA9.1070308@cran.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FF98AA9.1070308@cran.org.uk> User-Agent: Mutt/1.4.2.3i Cc: Wojciech Puchar , Polytropon , FreeBSD Subject: Re: Format a USB flash drive using gpart 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: Mon, 09 Jul 2012 03:51:22 -0000 On Sun, Jul 08, 2012 at 02:27:05PM +0100, Bruce Cran wrote: > On 08/07/2012 13:30, Polytropon wrote: > >With few routine, tasks are performed more natural using > >the desired CLI tools. You don't go "Now I have to remember > >which command to format the disk", you just format the disk, > >which means "spaking to" newfs. The more often you do it, > >the more obvious the tools are, and they won't change in > >look and feel (or options). That makes them superior. > > How do you format a FAT32 partition? You don't. You wipe the FAT32 with fdisk and make a FreeBSD slice on it. Then you can bsdlabel it with one partition and newfs it. Or you can use the gpart tools with I am not yet familiar. But, in any case, the FAT32 is irrelevant. You just overwrite that with the FreeBSD stuff. If you have a FAT32 on it and if you want to use it as a FAT32, then you leave the FAT32 alone and just mount the thing as type msdosfs. Make a mount point for it. I commonly use /stick Add something like the following in your /etc/fstab /dev/da2s1 /stick msdosfs rw,noauto 0 0 and then do #mount /stick on the command line. You will have to figure out the correct /dev/... address for it. Generally you dan find the info in dmesg. ////jerry > newfs won't work. Is it newfs_vfat, > newfs_fat32, newfs_msdos etc.? And how do you specify you want FAT32 > instead of FAT12 or FAT16? With a good GUI tool like diskmgmt.msc in > Windows 2008 you simply right-click the partition and click "New Volume" > to create a new partition, or "Format" to format it - and then follow > the prompts. Of course using diskpart is faster if you know the > commands and parameters, but for an ordinary user adding a new disk > maybe once a year it's most likely more efficient to just use the GUI. > > -- > Bruce Cran > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"