From nobody Wed Jan 17 00:01:54 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TF5dv4nLqz56MJ1 for ; Wed, 17 Jan 2024 00:01:55 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from ns.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "discoveriesinwood.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TF5dv1Z9Zz4S3x for ; Wed, 17 Jan 2024 00:01:55 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org Received: from [192.168.151.122] (breakaway.dreamchaser.org [192.168.151.122]) by ns.dreamchaser.org (8.16.1/8.16.1) with ESMTP id 40H01he5029350 for ; Tue, 16 Jan 2024 17:01:54 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Message-ID: Date: Tue, 16 Jan 2024 17:01:54 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: USB key && NTFS Content-Language: en-US To: freebsd-questions@freebsd.org References: From: Gary Aitken Reply-To: freebsd@dreamchaser.org In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: inspected by milter-greylist-4.6.4 (ns.dreamchaser.org [192.168.151.101]); Tue, 16 Jan 2024 17:01:54 -0700 (MST) for IP:'192.168.151.122' DOMAIN:'breakaway.dreamchaser.org' HELO:'[192.168.151.122]' FROM:'freebsd@dreamchaser.org' RCPT:'' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.4 (ns.dreamchaser.org [192.168.151.101]); Tue, 16 Jan 2024 17:01:54 -0700 (MST) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.19 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_SPF_ALLOW(-0.20)[+mx:c]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; XM_UA_NO_VERSION(0.01)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org] X-Rspamd-Queue-Id: 4TF5dv1Z9Zz4S3x 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: 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 > > 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