Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2011 17:38:08 +1100
From:      Mattia Rossi <mrossi@swin.edu.au>
To:        freebsd-arm@freebsd.org
Subject:   Re: Create FAT partition/filesystem on the internal microSD flash of the Dreamplug
Message-ID:  <4E9535D0.2030706@swin.edu.au>
In-Reply-To: <4E92D2D8.8070500@swin.edu.au>
References:  <4E9290FF.7090306@swin.edu.au> <cone.1318239903.356917.1719.500@rlydontknow> <4E92D2D8.8070500@swin.edu.au>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E9535D0.2030706>