Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2013 20:58:17 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Gary Aitken <vagabond@blackfoot.net>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: initialize msdosfs on memory stick?
Message-ID:  <alpine.BSF.2.00.1309122054120.24403@wonkity.com>
In-Reply-To: <52327AC5.7080205@blackfoot.net>
References:  <5232348E.4070607@dreamchaser.org> <alpine.BSF.2.00.1309121746170.21275@wonkity.com> <52327AC5.7080205@blackfoot.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1309122054120.24403>