From owner-freebsd-questions@freebsd.org Mon Mar 25 17:49:11 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5841D154792C for ; Mon, 25 Mar 2019 17:49:11 +0000 (UTC) (envelope-from perickson@redlamb.net) Received: from smtp.redlamb.net (swoop.redlamb.net [50.244.208.116]) by mx1.freebsd.org (Postfix) with ESMTP id 92EF977BD3 for ; Mon, 25 Mar 2019 17:49:10 +0000 (UTC) (envelope-from perickson@redlamb.net) Received: from Shrapnel.local (173-165-231-73-minnesota.hfc.comcastbusiness.net [173.165.231.73]) by smtp-01.ext.mn.redlamb.net (Postfix) with ESMTPSA id 3249F4E751; Mon, 25 Mar 2019 12:49:02 -0500 (CDT) Subject: Re: Unable to mount FAT16 partition (Invalid Argument) To: JD , freebsd-questions@freebsd.org References: <3fbf4d30-e286-fe43-3476-d2f4626b2407@gmail.com> <93bd85ea-23ee-4932-34ed-45529c03022c@netfence.it> <3a981d25-529c-9df4-ef76-c2017d3b41f5@gmail.com> <5C990650.6030907@gmail.com> From: Peter Erickson Message-ID: Date: Mon, 25 Mar 2019 12:48:57 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:60.0) Gecko/20100101 Thunderbird/60.6.0 MIME-Version: 1.0 In-Reply-To: <5C990650.6030907@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 92EF977BD3 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of perickson@redlamb.net designates 50.244.208.116 as permitted sender) smtp.mailfrom=perickson@redlamb.net X-Spamd-Result: default: False [2.76 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MX_GOOD(-0.01)[swoop.redlamb.net]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7922, ipnet:50.128.0.0/9, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.88)[0.877,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[redlamb.net]; NEURAL_SPAM_MEDIUM(0.86)[0.861,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.54)[0.538,0]; IP_SCORE(0.70)[ipnet: 50.128.0.0/9(3.45), asn: 7922(0.11), country: US(-0.07)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Mar 2019 17:49:11 -0000 On 3/25/19 11:48 AM, JD wrote: > On 03/25/2019 10:25 AM, Peter Erickson wrote: >> While the partition is only 250M, anything is worth a shot at this >> point. Unfortunately, that didn't work either - same result. I'm glad >> that I'm not the only one that's stumped. >> >> # mount -t msdosfs -o ro,large /dev/ada1p5 /mnt >> mount_msdosfs: /dev/ada1p5: Invalid argument >> >> On 3/25/19 9:21 AM, Andrea Venturoli wrote: >>> On 3/25/19 2:42 AM, Peter Erickson wrote: >>>> I'm hoping to get some assistance mounting a FAT (FAT16?) partition >>>> created by the VMware ESXi installer (version 6.7.0). Every attempt >>>> to mount it on 11.2-RELEASE-p4, results in an "Invalid argument" >>>> error, without much to indicate what is wrong or how to resolve it. >>>> Any advice or direction would be much appreciated. >>> >>> I've had this problem in the past and solved using "-o large". >>> According to the man page this shouldn't be your case (and I don't >>> remember how big a partition I was trying to mount), but, for the >>> price, it's worth trying :) >>> >>> HTH. >>> >>>   bye > Assuming the device you entered (ada1p5) is the device in question, > have you tried the option  -o fat   instead of msdosfs ? > > Also, again assuming the device name is as you entered, have you tried > dd if=/dev/ada1p5 of=/dev/null bs=1M count=10 > and see what error mesage(s) you get. I have not tried either of those. However, what version of FreeBSD are you using which has the "-o fat" option? I'm not seeing it in mount(8) or mount_msdosfs(8). (I'm using 11.2-RELEASE-p4.) No errors result from trying to read from the device. # dd if=/dev/ada1p5 of=/dev/null bs=1M count=10 10+0 records in 10+0 records out 10485760 bytes transferred in 0.003344 seconds (3136079225 bytes/sec)