Re: Problem mounting new Sandisk 1TB USB drive
- Reply: Gary Aitken : "Re: Problem mounting new Sandisk 1TB USB drive"
- In reply to: Gary Aitken : "Re: Problem mounting new Sandisk 1TB USB drive"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Jan 2024 03:55:36 UTC
On Wed, 10 Jan 2024 20:34:04 -0700, Gary Aitken wrote: > On 1/10/24 17:42, Polytropon wrote: > > On Wed, 10 Jan 2024 16:42:22 -0700, Gary Aitken wrote: > [...] > >>> 2. Mount device manually, read-only, perform checks, then > >>> unmount again: > >>> > >>> # mount.exfat -o ro /dev/da0s1 /mnt/memstick > >>> # df -f /mnt/memstick > >>> # ls -R /mnt/memstick > >>> # umount /mnt/memstick > >> > >> What was the intent of the df -f (-f => invalid option)? > > > > Should have been "df -h". :-) > > > > Intention: Compare "dmesg" entry (device reporting size) > > with filesystem size, and then compare to what's written > > on the device itself. > > Ok, df -h makes sense, but I don't understand the ls -R now. > I don't see anything comparable to df -h output. It's just a very simple test to see if existing directory structures can be traversed correctly, nothing more. It's a hint to filesystem integrity. So just a few basic tests if the mount has worked as intended (and you have free space on the device and there is something on it, ideally something you _expect_ to be there). > >> So all is well, thanks, but one question not addressed: > >> Given that FUSE_ENABLE="YES" is present in rc.conf, > >> why is kldlist="fusefs" still needed? > > > > Personally, I am explicit instead of relying on "chains" > > here: I put fuse_enable="YES" in /boot/loader.conf and > > have the correct module loaded. Simple things need to > > be simple and kept boring. :-) > > uh-oh, I'm confused; that seems to contradict your comment above. > > fuse_enable="YES" makes sense in both /etc/rc.conf and > /boot/loader.conf? > I thought only kld_lists="fusefs" went in /boot/loader.conf Sorry, I am old and stupid. Very stupid. fuse_load="YES" ---> /boot/loader.conf fusefs_enable="YES" ---> /etc/rc.conf Very very stupid. The addition to /boot/loader.conf serves the same purpose as using the kldlist="..." setting in /etc/rc.conf, except that it happens at a much earlier stage. The result is the same, as "kldstat" output will correctly show. Very very _very_ stupid. ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...