From owner-freebsd-questions@FreeBSD.ORG Fri Feb 8 16:16:26 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E01B3883; Fri, 8 Feb 2013 16:16:26 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from blue.qeng-ho.org (blue.qeng-ho.org [217.155.128.241]) by mx1.freebsd.org (Postfix) with ESMTP id 66EA0EDA; Fri, 8 Feb 2013 16:16:26 +0000 (UTC) Received: from fileserver.home.qeng-ho.org (localhost [127.0.0.1]) by fileserver.home.qeng-ho.org (8.14.5/8.14.5) with ESMTP id r18GGHoi084340; Fri, 8 Feb 2013 16:16:17 GMT (envelope-from freebsd@qeng-ho.org) Message-ID: <511524D1.9010809@qeng-ho.org> Date: Fri, 08 Feb 2013 16:16:17 +0000 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130112 Thunderbird/17.0.2 MIME-Version: 1.0 To: "Joseph A. Nagy, Jr" Subject: Re: mount: /dev/da0p1: Invalid argument References: <201302081338.r18DcGa5034982@mech-cluster241.men.bris.ac.uk> <51150FED.1050606@gmail.com> In-Reply-To: <51150FED.1050606@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: mexas@bristol.ac.uk, freebsd-questions@freebsd.org, freebsd-sparc64@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2013 16:16:26 -0000 On 02/08/13 14:47, Joseph A. Nagy, Jr wrote: > On 02/08/13 07:38, Anton Shterenlikht wrote: >> From chris@monochrome.org Fri Feb 8 13:27:48 2013 >> >> On Fri, 8 Feb 2013, Anton Shterenlikht wrote: >> >> [ snip ] >> >> > So what is the advice for transferring data >> > via USB in such cases? Any other gpart partition >> > I could use? >> >> I've always used FAT32 for thumb drives and the like. I don't know if >> the SPARC would be able to use it, but FAT32 seems like it's most >> likely >> to be usable by the largest number of different platforms. >> >> But how do I create FAT32 partitions on FreeBSD? >> The gpart doesn't seem to support it. >> >> Anton > > for a new fat32 fs I used: > > newfs_msdos -F 32 -L travelsize /dev/da0 > > (FreeBSD 9.1 amd64 over here, for what it's worth) Joseph is right in saying newfs_msdos -F 32 is how to format a FAT32 file system, but it occurs to me that Anton might be asking what type to specify to the gpart add command. Looking at http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs and http://en.wikipedia.org/wiki/Basic_data_partition I think you probably want to use the type code for a Windows Basic data partition, which would be gpart add -t !EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 other_gpart_args [depending on your shell you may have to escape that '!']. According to the second Wikipedia page "According to Microsoft, the basic data partition is the equivalent to partition types 0x06, 0x07, and 0x0B (FAT16, NTFS, FAT32) in the traditional MBR partition table."