From nobody Tue Jan 16 21:05:07 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 4TF1k90mwsz5839W for ; Tue, 16 Jan 2024 21:05:21 +0000 (UTC) (envelope-from alex@alexburke.ca) Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [IPv6:2001:41d0:1004:224b::b7]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TF1k85BCwz486Z for ; Tue, 16 Jan 2024 21:05:20 +0000 (UTC) (envelope-from alex@alexburke.ca) Authentication-Results: mx1.freebsd.org; none Date: Tue, 16 Jan 2024 22:05:07 +0100 (GMT+01:00) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alexburke.ca; s=key1; t=1705439111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E5xvEeRVNK8/FTKAO/NPb74ZS93dQj5yCFh86hCjP9U=; b=dpu0yDQttvUwW1AWLGgcDxix6lR7F05rmUAtUsctRkT9MwqsQE7WYnnELRNnpKisb7nurc rwHY7WSjF60z6+VXXj3VtRg32Eiq6FXV51hVC+RJNZsN0gE1wmHF6oplwYgl9x5rklxQDw iDL0ENv0z1JZTEYhcpOZmvJa1aJ5hxs= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Alexander Burke To: Matthias Apitz Cc: freebsd-questions@freebsd.org Message-ID: <95f1017b-9180-4f23-9c64-37b486cbd5c3@alexburke.ca> In-Reply-To: References: Subject: Re: USB key && NTFS 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Correlation-ID: <95f1017b-9180-4f23-9c64-37b486cbd5c3@alexburke.ca> X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: 4TF1k85BCwz486Z X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR] Hi Matthias, They meant 128 GiB, but somehow the `i` tends to avoid the printing process= . Wikipedia blames the IEC for this disparity, but I call it cheating. https://en.wikipedia.org/wiki/Gigabyte#Definition badblocks(8) might also interest you; I usually invoke it as `badblocks -fs= vw -b 4096 /dev/whatever`. Many Linux distros ship it as well, which is han= dy. Cheers, Alex ---------------------------------------- Jan 16, 2024 19:36:21 Matthias Apitz : > El d=C3=ADa martes, enero 16, 2024 a las 06:53:41p. m. +0100, Alexander B= urke escribi=C3=B3: >=20 >> Hi Matthias, >>=20 >> It's probably actually formatted as exFAT, which according to another re= cent thread seems to share a partition type with NTFS (facepalm). >>=20 >> Reformat it as actually-NTFS and the problem should be solved. >>=20 >> Cheers, >> Alex >=20 > Hi Alexander, >=20 > Yes, it is exFAT (and not NTFS) and I had to bake in my poudriere oven th= e package > fusefs-exfat. After installing it, the key mounts fine and I'm testing th= e > space with f3write: >=20 > $ f3write /mnt/f3 > F3 write 8.0 > Copyright (C) 2010 Digirati Internet LTDA. > This is free software; see the source for copying conditions. >=20 > Free space: 117.18 GB > Creating file 1.h2w ... OK! > Creating file 2.h2w ... OK! > ... >=20 > Magically the 128 GB (in big marketing letters) changed to ~117 GB :-) >=20 > Thanks anyway >=20 > =C2=A0=C2=A0=C2=A0 matthias >=20 >=20 >> Jan 16, 2024 18:06:00 Matthias Apitz : >>=20 >>>=20 >>> I've bought a fresh "128 GB" (marketing GBytes) USB key and it says in >>> my laptop: >>>=20 >>> root@c720-1400094:~ # uname -a >>> FreeBSD c720-1400094 14.0-CURRENT FreeBSD 14.0-CURRENT amd64 1400094 #2= main-n264568-1d7ffb373c9d-dirty: Wed Sep=C2=A0 6 07:13:22 CEST 2023=C2=A0= =C2=A0=C2=A0=C2=A0 guru@jet:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 >>>=20 >>> root@c720-1400094:~ # tail /var/log/messages >>> Jan 16 17:50:52 c720-1400094 kernel: da0 at umass-sim0 bus 0 scbus1 tar= get 0 lun 0 >>> Jan 16 17:50:52 c720-1400094 kernel: da0: Rem= ovable 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=3D0x2 >>>=20 >>> root@c720-1400094:~ # gpart show /dev/da0 >>> =3D>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 63=C2=A0 245759937=C2=A0 da0= =C2=A0 MBR=C2=A0 (117G) >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 63=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 65=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - fre= e -=C2=A0 (33K) >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 128=C2=A0 245759872=C2=A0=C2= =A0=C2=A0 1=C2=A0 ntfs=C2=A0 [active]=C2=A0 (117G) >>>=20 >>> root@c720-1400094:~ # ls -l /dev/da* >>> crw-r-----=C2=A0 1 root operator 0x1aa 16 ene.=C2=A0 17:50 /dev/da0 >>> crw-r-----=C2=A0 1 root operator 0x1ab 16 ene.=C2=A0 17:53 /dev/da0s1 >>> root@c720-1400094:~ #=C2=A0 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? >>>=20 >>> 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=C2=A0 1 root wheel 22=C2=A0 9 ene.=C2=A0=C2=A0 2021 /usr/sbi= n/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 >>>=20 >>>=20 >>> What I do wrong? >>>=20 >>> Thanks >>>=20 >>> =C2=A0=C2=A0=C2=A0 matthias >>> --=20 >>> Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49= -176-38902045 >>> Public GnuPG key: http://www.unixarea.de/key.pub >>>=20 >>> I am not at war with Russia. >>> =D0=AF =D0=BD=D0=B5 =D0=B2=D0=BE=D1=8E=D1=8E =D1=81 =D0=A0=D0=BE=D1=81= =D1=81=D0=B8=D0=B5=D0=B9. >>> Ich bin nicht im Krieg mit Russland. >=20 > --=20 > Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-1= 76-38902045 > Public GnuPG key: http://www.unixarea.de/key.pub >=20 > I am not at war with Russia. > =D0=AF =D0=BD=D0=B5 =D0=B2=D0=BE=D1=8E=D1=8E =D1=81 =D0=A0=D0=BE=D1=81=D1= =81=D0=B8=D0=B5=D0=B9. > Ich bin nicht im Krieg mit Russland.