Date: Wed, 12 Oct 2011 09:06:35 -0600 From: Warner Losh <imp@bsdimp.com> To: Mattia Rossi <mrossi@swin.edu.au> Cc: freebsd-arm@freebsd.org Subject: Re: Create FAT partition/filesystem on the internal microSD flash of the Dreamplug Message-ID: <A0FE69B0-B12F-43BA-9881-FFF96AAEB007@bsdimp.com> In-Reply-To: <4E9535D0.2030706@swin.edu.au> References: <4E9290FF.7090306@swin.edu.au> <cone.1318239903.356917.1719.500@rlydontknow> <4E92D2D8.8070500@swin.edu.au> <4E9535D0.2030706@swin.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 12, 2011, at 12:38 AM, Mattia Rossi wrote: > -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. >>>>=20 >>>> See: >>>>=20 >>>> 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=3D512 SecPerClust=3D8 ResSectors=3D1 FATs=3D2 = RootDirEnts=3D512 >>>> Sectors=3D65520 Media=3D0xf0 FATsecs=3D32 SecPerTrack=3D63 = Heads=3D255 >>>> HiddenSecs=3D0 >>>> dreamplug# mount_msdosfs /dev/da0s1 /mnt/usb >>>> mount_msdosfs: /dev/da0s1: Invalid argument >>>>=20 > -snap- >=20 > 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. >=20 > 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. Is there anything in dmesg? Have you tried turning on bootverbose to = get more details about what the kernel part of mount_msdosfs hates? Warner=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A0FE69B0-B12F-43BA-9881-FFF96AAEB007>