SD card formatting
Gary Aitken
freebsd at dreamchaser.org
Tue Mar 17 17:48:53 UTC 2020
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.
More information about the freebsd-questions
mailing list