From owner-freebsd-questions@freebsd.org Tue Mar 17 16:39:41 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EA8F326B3D2 for ; Tue, 17 Mar 2020 16:39:41 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48hf5m6M24z42YB for ; Tue, 17 Mar 2020 16:39:40 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 02HGdXNh018788; Tue, 17 Mar 2020 10:39:33 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Subject: Re: SD card formatting From: Gary Aitken To: Polytropon , Claude Buisson Cc: freebsd-questions@freebsd.org Reply-To: freebsd@dreamchaser.org, freebsd@dreamchaser.org References: <8a95e209-52f1-6873-9500-9e1bdd826e18@free.fr> <20200317153013.7257bbe1.freebsd@edvax.de> <5ff4694f-15a3-27f3-8ec8-14fd172c91ad@dreamchaser.org> Message-ID: Date: Tue, 17 Mar 2020 10:38:06 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <5ff4694f-15a3-27f3-8ec8-14fd172c91ad@dreamchaser.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Tue, 17 Mar 2020 10:39:33 -0600 (MDT) X-Rspamd-Queue-Id: 48hf5m6M24z42YB X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-5.52 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; NEURAL_HAM_MEDIUM(-0.99)[-0.995,0]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-3.22)[ip: (-8.45), ipnet: 66.109.128.0/19(-4.23), asn: 21947(-3.38), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; 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: Tue, 17 Mar 2020 16:39:42 -0000 On 3/17/20 10:08 AM, Gary Aitken wrote: > On 3/17/20 8:30 AM, Polytropon wrote: >> On Tue, 17 Mar 2020 00:37:21 +0100, Claude Buisson wrote: >>> On 2020-03-15 22:39, Gary Aitken wrote: > ... >>> Your card with a capacity > 32GB must be formatted as exFAT >>> >>> The partition type seen by gpart is the same as NTFS >>> >>> man gpart >>>    ... >>>    ntfs      A partition that contains a NTFS or exFAT filesystem >>> >>> see also Bug 244461 >> >> Excellent finding! >> >> I think this is the key to a solution. The remaining questions are: >> >> 1. How to mount exFAT on FreeBSD? >> >> I think I can answer that: A FUSE module is required. Install >> fusefs-exfat (and maybe exfat-utils) from the sysutils category >> to get mount.exfat and exfatfsck (if it should be needed). >> Inegration with /etc/fstab should be no problem. >> >> 2. How to initialize a exFAT SD card on FreeBSD? >> >> Probably with mkexfatfs from exfat-utils (as mentioned above). > > Will try that.  However... > I've installed a huge amount of stuff from packages, and no package > exists for either fusefs-exfat or exfat-utils.  If I try to build > from ports, I run into a conflict with perl5: > > ===>  Patching for fusefs-exfat-1.2.8 > ===>  Applying FreeBSD patches for fusefs-exfat-1.2.8 > ===>   fusefs-exfat-1.2.8 depends on package: autoconf>=2.69 - not found > ===>  autoconf-2.69_2 Invalid perl5 version 5.30. > > Is there a way around this other than building everything from ports? > except for distfiles, all the directories in my ports tree are 2019-07-04. > I *thought* they would be compatible with the installed os and packages. > > FreeBSD breakaway.dreamchaser.org 11.3-RELEASE-p6 hmmm, strange. I did a pkg install of autoconf and automake and they installed ok, was then able to make both fusefs-exfat and exfat-utils. Attempting to mount a known good card formatted in the camera: # mount.exfat -d -o ro /dev/da0s1 /mnt/memstick FUSE exfat 1.2.8 fuse: failed to open fuse device: No such file or directory grrr. # dumpexfat /dev/da0s1 Volume label Volume serial number 0x50478f5b FS version 1.0 Sector size 512 Cluster size 131072 Sectors count 124702720 Free sectors 31074560 Clusters count 486992 Free clusters 121385 First sector 32768 FAT first sector 16384 FAT sectors count 16384 First cluster sector 32768 Root directory cluster 4 Volume state 0x0000 FATs count 1 Drive number 0x80 Allocated space 255% I don't understand the "No such file or directory" error, given that dumpexfat found it. I also don't understand the allocated space number... Gary