Re: USB key && NTFS

From: Gary Aitken <freebsd_at_dreamchaser.org>
Date: Wed, 17 Jan 2024 00:01:54 UTC
On 1/16/24 10:05, Matthias Apitz wrote:
> 
> I've bought a fresh "128 GB" (marketing GBytes) USB key and it says in
> my laptop:
> 
> root@c720-1400094:~ # uname -a
> FreeBSD c720-1400094 14.0-CURRENT FreeBSD 14.0-CURRENT amd64 1400094 #2 main-n264568-1d7ffb373c9d-dirty: Wed Sep  6 07:13:22 CEST 2023     guru@jet:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
> 
> root@c720-1400094:~ # tail /var/log/messages
> Jan 16 17:50:52 c720-1400094 kernel: da0 at umass-sim0 bus 0 scbus1 target 0 lun 0
> Jan 16 17:50:52 c720-1400094 kernel: da0: <Generic Flash Disk 8.01> Removable Direct Access SPC-4 SCSI device
> Jan 16 17:50:52 c720-1400094 kernel: da0: Serial Number A430786F
> Jan 16 17:50:52 c720-1400094 kernel: da0: 40.000MB/s transfers
> Jan 16 17:50:52 c720-1400094 kernel: da0: 120000MB (245760000 512 byte sectors)
> Jan 16 17:50:52 c720-1400094 kernel: da0: quirks=0x2<NO_6_BYTE>
> 
> root@c720-1400094:~ # gpart show /dev/da0
> =>       63  245759937  da0  MBR  (117G)
>           63         65       - free -  (33K)
>          128  245759872    1  ntfs  [active]  (117G)
> 
> root@c720-1400094:~ # ls -l /dev/da*
> crw-r-----  1 root operator 0x1aa 16 ene.  17:50 /dev/da0
> crw-r-----  1 root operator 0x1ab 16 ene.  17:53 /dev/da0s1
> root@c720-1400094:~ #  mount_ntfs-3g /dev/da0s1 /mnt
> NTFS signature is missing.
> Failed to mount '/dev/da0s1': Invalid argument
> The device '/dev/da0s1' doesn't seem to have a valid NTFS.
> Maybe the wrong device is used? Or the whole disk instead of a
> partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
> 
> root@c720-1400094:~ # which mount_ntfs-3g
> /usr/sbin/mount_ntfs-3g
> root@c720-1400094:~ # ls -l /usr/sbin/mount_ntfs-3g
> lrwxr-xr-x  1 root wheel 22  9 ene.   2021 /usr/sbin/mount_ntfs-3g -> /usr/local/bin/ntfs-3g
> root@c720-1400094:~ # pkg which /usr/local/bin/ntfs-3g
> /usr/local/bin/ntfs-3g was installed by package fusefs-ntfs-2022.10.3
> 
> 
> What I do wrong?

As pointed out by Alexander, it's actually exFAT, not NTFS.  Since
you've already reformatted it, you're ok, but if you want to NOT
reformat a new one in the future, use mount.exfat.  manpage is
man mount.exfat-fuse

Gary