Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2024 22:05:07 +0100 (GMT+01:00)
From:      Alexander Burke <alex@alexburke.ca>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: USB key && NTFS
Message-ID:  <95f1017b-9180-4f23-9c64-37b486cbd5c3@alexburke.ca>
In-Reply-To: <ZabMnIO5OU7GsVhx@c720-1400094>
References:  <Zaa3aZcOgvBzjwj9@c720-1400094> <a37ea3ef-efe5-4b9a-96bf-c1e55bd1da9d@alexburke.ca> <ZabMnIO5OU7GsVhx@c720-1400094>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <guru@unixarea.de>:

> 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 <guru@unixarea.de>:
>>=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: <Generic Flash Disk 8.01> 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<NO_6_BYTE>
>>>=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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?95f1017b-9180-4f23-9c64-37b486cbd5c3>