Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Mar 2020 22:33:09 +0100
From:      Polytropon <freebsd@edvax.de>
To:        freebsd@dreamchaser.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re: SD card formatting
Message-ID:  <20200317223309.d8c29fc5.freebsd@edvax.de>
In-Reply-To: <881c9c3c-8714-6775-c999-e9ab44fb144a@dreamchaser.org>
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> <3a844384-2f37-f911-a6ab-eb66dad48c8c@dreamchaser.org> <20200317200816.bb09a7d4.freebsd@edvax.de> <881c9c3c-8714-6775-c999-e9ab44fb144a@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 17 Mar 2020 14:27:49 -0600, Gary Aitken wrote:
> On 3/17/20 1:08 PM, Polytropon wrote:
> > 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.
> 
> Hooray!  I used kldload to get it loaded and can now, finally,
> mount the SD card formatted in the camera.  A little search showed
> the loader.conf directive may be
>    fuse_load="YES"
> instead of
>    fuse_enable="YES"
> but I haven't rebooted yet to test.

Correct - I didn't copypasta it, I typed it in, and made the
mistake of "confusion by conformity"; sorry. ;-)

It should work now as intended.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200317223309.d8c29fc5.freebsd>