USB stick for msdosfs
MJ
mafsys1234 at gmail.com
Sat Aug 10 08:59:45 UTC 2019
Hi,
The -t sets you partition type, the \!12 is the value. This, according
to gpart manual says it's a Fat32 LBA (whatever use that is). I think
it's a partition type used by Windows 95/98.
The gpart man also lists a "plain" Fat32 with a type of !11, so try that
instead then newfs_msdos -F32
Why it's unwilling to format it? Perhaps it doesn't understand LBA
(Logical Block Addressing)? Frankly, LBA is useless for a tiny 1GB disk,
just use Fat32 (or even Fat16 given you've only got 1GB disk)
On 10/08/2019 6:31 pm, Matthias Apitz wrote:
>
> Hello,
>
> I have a 1G (1 "marketing GB") USB stick and use normaly this procedure
> which I have stored in y small set of how-to docs:
>
>
> # gpart destroy -F da0
> # gpart create -s mbr da0
> # gpart add -t \!12 da0
> # newfs_msdos -F32 /dev/da0s1
>
> What does the '-t \!12' mean? And why in the case here newfs_msdos(8)
> is unwilling to format the partition:
>
> # gpart destroy -F da0
> da0 destroyed
> # gpart create -s mbr da0
> da0 created
> # gpart add -t \!12 da0
> da0s1 added
> # newfs_msdos -F32 /dev/da0s1
> newfs_msdos: 61408 clusters too few clusters for FAT32, need 65525
> # gpart list da0
> Geom name: da0
> modified: false
> state: OK
> fwheads: 64
> fwsectors: 32
> last: 1966079
> first: 32
> entries: 4
> scheme: MBR
> Providers:
> 1. Name: da0s1
> Mediasize: 1006616576 (960M)
> Sectorsize: 512
> Stripesize: 0
> Stripeoffset: 16384
> Mode: r0w0e0
> efimedia: HD(1,MBR,00000000,0x20,0x1dffe0)
> rawtype: 12
> length: 1006616576
> offset: 16384
> type: fat32lba
> index: 1
> end: 1966079
> start: 32
> Consumers:
> 1. Name: da0
> Mediasize: 1006632960 (960M)
> Sectorsize: 512
> Mode: r0w0e0
>
> It works with -F16:
>
> # newfs_msdos -F16 /dev/da0s1
> /dev/da0s1: 1965504 sectors in 61422 FAT16 clusters (16384 bytes/cluster)
> BytesPerSec=512 SecPerClust=32 ResSectors=1 FATs=2 RootDirEnts=512 Media=0xf0 FATsecs=240 SecPerTrack=32 Heads=64 HiddenSecs=0 HugeSectors=1966048
>
> Why not with -F32? Thanks
>
> matthias
>
>
>
More information about the freebsd-questions
mailing list