SD card formatting
Polytropon
freebsd at edvax.de
Tue Mar 17 19:08:31 UTC 2020
On Tue, 17 Mar 2020 11:47:15 -0600, Gary Aitken wrote:
> 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.
That should be okay.
> Should "fuse" show up in a sysctl -a?
Yes.
> # sysctl -a | grep -i fuse
> shows nothing
That's the problem. In kldstat output, you should see a fuse.ko
module, and the sysctl command should also show various entries
related to fuse (vfs.fuse.*).
> # 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
FUSE still isn't running.
> # 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.
Definitely. Now it's just a matter of getting FUSE running.
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions
mailing list