From owner-freebsd-questions@freebsd.org Tue Mar 17 17:48:53 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 DEF2E26D037 for ; Tue, 17 Mar 2020 17:48:53 +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 48hgdc0RGsz3ChR for ; Tue, 17 Mar 2020 17:48:51 +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 02HHmjJq018927; Tue, 17 Mar 2020 11:48:46 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Reply-To: freebsd@dreamchaser.org Subject: Re: SD card formatting To: Polytropon Cc: freebsd-questions@freebsd.org References: <8a95e209-52f1-6873-9500-9e1bdd826e18@free.fr> <20200317153013.7257bbe1.freebsd@edvax.de> <5ff4694f-15a3-27f3-8ec8-14fd172c91ad@dreamchaser.org> <20200317174827.d6fd1548.freebsd@edvax.de> From: Gary Aitken Message-ID: <3a844384-2f37-f911-a6ab-eb66dad48c8c@dreamchaser.org> Date: Tue, 17 Mar 2020 11:47:15 -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: <20200317174827.d6fd1548.freebsd@edvax.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Tue, 17 Mar 2020 11:48:46 -0600 (MDT) X-Rspamd-Queue-Id: 48hgdc0RGsz3ChR 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.51 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; NEURAL_HAM_MEDIUM(-0.99)[-0.989,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; 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 17:48:53 -0000 On 3/17/20 10:48 AM, Polytropon wrote: > On Tue, 17 Mar 2020 10:38:06 -0600, Gary Aitken wrote: >> 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... > > You need to enable FUSE functionality in /boot/loader.conf: > > fuse_enable="YES" > > And in /etc/rc.conf: > > fusefs_enable="YES" > > The "No such file or directory" probably refers to something > missing for FUSE to work. I added fuse_enable="YES" to /boot/loader.conf.local and fusefs_enable="YES" in /etc/rc.conf Then rebooted. Should "fuse" show up in a sysctl -a? # sysctl -a | grep -i fuse shows nothing # 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 # dumpexfat /dev/da0s1 Volume label Volume serial number 0x50478f5b FS version 1.0 Sector size 512 Cluster size 131072 Sectors count 124702720 Free sectors 31073792 Clusters count 486992 Free clusters 121382 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 75% # ls -dl /dev/da0* crw-rw---- 1 root operator 0x9a Mar 17 11:26 /dev/da0 crw-rw---- 1 root operator 0x9b Mar 17 11:26 /dev/da0s1 # gpart show -r /dev/da0 => 63 124735425 da0 MBR (59G) 63 32705 - free - (16M) 32768 124702720 1 7 [active] (59G) If I put the SD card in a win7 system it says it is an exFAT filesys, so at least we're on the right track.