From owner-freebsd-questions@FreeBSD.ORG Fri Sep 13 02:58:26 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 84D14A7A for ; Fri, 13 Sep 2013 02:58:26 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3951D2083 for ; Fri, 13 Sep 2013 02:58:25 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id r8D2wH0F024539; Thu, 12 Sep 2013 20:58:17 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id r8D2wHdg024536; Thu, 12 Sep 2013 20:58:17 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 12 Sep 2013 20:58:17 -0600 (MDT) From: Warren Block To: Gary Aitken Subject: Re: initialize msdosfs on memory stick? In-Reply-To: <52327AC5.7080205@blackfoot.net> Message-ID: References: <5232348E.4070607@dreamchaser.org> <52327AC5.7080205@blackfoot.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Thu, 12 Sep 2013 20:58:17 -0600 (MDT) Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Sep 2013 02:58:26 -0000 On Thu, 12 Sep 2013, Gary Aitken wrote: > On 09/12/13 17:52, Warren Block wrote: >> On Thu, 12 Sep 2013, Gary Aitken wrote: >> >>> I can't seem to find how to do this in the handbook or man pages. I >>> need to initialize a usb memory stick with an msdos file system. Is >>> it possible, or do I have to find a windoze system? >> >> Sure, it's possible. For maximum compatibility, I'd suggest creating >> an MBR layout on it. Some devices expect that. Assuming it is da0 >> (make sure) and that everything on it has been backed up... >> >> # gpart destroy -F da0 >> # gpart create -s mbr da0 >> # gpart add -t \!12 da0 >> # newfs_msdos -F32 /dev/da0s1 > > That worked, thanks. > > Where is the magic file type !12 described? > I don't see it as one of the possibilities in man gpart. It's one of the many MS-DOS FAT variations: http://en.wikipedia.org/wiki/Partition_type