Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Mar 2020 11:47:15 -0600
From:      Gary Aitken <freebsd@dreamchaser.org>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: SD card formatting
Message-ID:  <3a844384-2f37-f911-a6ab-eb66dad48c8c@dreamchaser.org>
In-Reply-To: <20200317174827.d6fd1548.freebsd@edvax.de>
References:  <b7070f0e-a387-9c7e-945f-ab708f9f5a76@dreamchaser.org> <8a95e209-52f1-6873-9500-9e1bdd826e18@free.fr> <20200317153013.7257bbe1.freebsd@edvax.de> <5ff4694f-15a3-27f3-8ec8-14fd172c91ad@dreamchaser.org> <be3085f1-6e6d-aa60-bc84-2e4c5c8ae89c@dreamchaser.org> <20200317174827.d6fd1548.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3a844384-2f37-f911-a6ab-eb66dad48c8c>