From owner-freebsd-questions@FreeBSD.ORG Fri Sep 13 04:56:54 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 5838A811 for ; Fri, 13 Sep 2013 04:56:54 +0000 (UTC) (envelope-from vagabond@blackfoot.net) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 24B5425F9 for ; Fri, 13 Sep 2013 04:56:53 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id r8D4ukqb072211; Thu, 12 Sep 2013 22:56:48 -0600 (MDT) (envelope-from vagabond@blackfoot.net) Message-ID: <52329B0D.1090802@blackfoot.net> Date: Thu, 12 Sep 2013 22:56:45 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130730 Thunderbird/17.0.7 MIME-Version: 1.0 To: Warren Block Subject: Re: initialize msdosfs on memory stick? References: <5232348E.4070607@dreamchaser.org> <52327AC5.7080205@blackfoot.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Thu, 12 Sep 2013 22:56:50 -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 04:56:54 -0000 On 09/12/13 20:58, Warren Block wrote: > 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 Not fair, that makes it really magic ;-) Thanks