Create FAT partition/filesystem on the internal microSD flash of the Dreamplug

Mattia Rossi mrossi at swin.edu.au
Wed Oct 12 06:38:31 UTC 2011


-snip-
>>> I've tried to recreate it using gpart and newfs_msdos, but can't
>>> create any new FAT partition that mount_msdosfs would mount.
>>>
>>> See:
>>>
>>> dreamplug# gpart create -s mbr da0
>>> da0 created
>>> dreamplug# gpart add -t fat32 -i 1 -s 32M da0
>>> da0s1 added
>>> dreamplug# newfs_msdos da0s1
>>> /dev/da0s1: 65416 sectors in 8177 FAT16 clusters (4096 bytes/cluster)
>>> BytesPerSec=512 SecPerClust=8 ResSectors=1 FATs=2 RootDirEnts=512
>>> Sectors=65520 Media=0xf0 FATsecs=32 SecPerTrack=63 Heads=255
>>> HiddenSecs=0
>>> dreamplug# mount_msdosfs /dev/da0s1 /mnt/usb
>>> mount_msdosfs: /dev/da0s1: Invalid argument
>>>
-snap-

I've tested the newfs_msdos command on a variety of i386 and amd64 based 
machines using different FreeBSD versions (8.2, 9-BETA2, 9-BETA3) and 
all of them work properly. FS can be craeed and mounts fine.

So this is definitely an ARM problem.. Have no idea why though.
If someone tells me where to look for the issue, I'll happily do it and 
help fixing the bug.

Mat


More information about the freebsd-arm mailing list