I'm going crazy with my FreeBSD machine when trying to copy files to a micro SD card using fat 32 filesystem.
The micro SD is a snadisk 256 GB, I've already tried two of them, thru two different USB adaptors (one being Sandisk, if that maters) and on different USB ports.
Let's start with the end result:
I copied the files witht he command:
and no errors where thrown.
The same files, copied on a fat32 hard disk work as expected, there is no filesystem corruption.
I prepared the micro SD as follows:
My operating system is:
What am I missing here?
The micro SD is a snadisk 256 GB, I've already tried two of them, thru two different USB adaptors (one being Sandisk, if that maters) and on different USB ports.
Let's start with the end result:
Code:
mammoth% doas mount_msdosfs /dev/da0s1 /mnt
mammoth% ls /mnt/ELEMENTARY/01
Elementary - 01x01 - Arma impropria.mkv Elementary - 01x12 - Il mandante.mkv
Elementary - 01x02 - Mentre dormivi.mkv Elementary - 01x13 - La squadra rossa.mkv
Elementary - 01x03 - L'uomo dei palloncini.mkv Elementary - 01x14 - Il deduttore.mkv
Elementary - 01x04 - Corsa al successo.mkv Elementary - 01x15 - Caricata a droga.mkv
Elementary - 01x05 - L'angelo della morte.mkv Elementary - 01x16 - Dettagli.mkv
Elementary - 01x06 - Sabotaggio.mkv Elementary - 01x18 - Deja Vu.mkv
Elementary - 01x07 - Conflitto di coscienza.mkv Elementary - 01x19 - Angeli nella neve.mkv
Elementary - 01x08 - Miccia lunga.mkv Elementary - 01x20 - Ricatto col morto.mkv
Elementary - 01x09 - Fare da sé.mkv Elementary - 01x21 - Un fatto storico.mkv
Elementary - 01x10 - La cassaforte inespugnabile.mkv Elementary - 01x22 - Gestione del rischio.mkv
Elementary - 01x11 - Panni sporchi.mkv Elementary - 01x23 - Peonie.mkv
mammoth% ls /mnt/ELEMENTARY/03
!g+??r\f.ǰ? ?.g??;?f.}?? ??d?"???.?3? R_n`lJ??.??? s?XSM?/?.?r? ?h?A?}??.p?? ??C&??4?.&2?
#@<g?UK?.??? ?4?c4!??.??V ????????.?4v Ra{?lt??.??? s??wM???.?qg ?k6e?~A?.p?? ??VQ??!?.&??
#C?C?V??.??? ?:???/?7.??? ??i0????.?7? Rb?3lw??.??d s???M???.?or ??q???&u.\#? ???"????.)3-
#}?4?h??.??? ?;x?0.?3.??? ??;7??L?.d(? U?\Sk?+?.?'? s?M$M?:?.?l? ??d???3?.\?? ???u????.)?8
#~)??k^?.??? ????)???.??? ???T<?}?.?M? U?I$k?>?.??? t*j`J???.??? ?[c??n?f.[?? ????????.?Dx
$??T??y?.?8? ??d???3?.~z? ????8?l.?A? VP??hE?0.??@ t???J???.??? ?ev??p?1.[?? ??RQ??%?.?y?
$??#??l?.??? ??j?7?=?.?C? ?Ҳ?8??s.?|1 VS??hF??.??? w???I???.?]v ?f???s??.[?i ??G&??0?.?G?
%V?A?C??.??? ??m?0??d.??? ????????.??r Vn??h{?G.??u w?I?I?>'.?^? ?x???m?b.[?\ ???u????.?zm
'L-??YZ?.??? ??r????1.}?? ??m????3.??? ]]?@chh?.??? w?\?I?+P.?`? ???s??g?.?n? ??????a?.-??
'O???Z?7.??? ??u???"u.zv? ???7??s.?~` ]^?dck??.??? w???I??t.?cc ?@???U?S.??u ??????tr.-<?
'q???d?@.??? ??x???/'.N?? ??ub&???.??? ]`??cu??.??? x???f??t.?a2 ?~???k?$.??` ?!???4??.y?i
'r8??gOd.?ݶ ??{㭼?c.o&? ????????.s?* ^???`?k?.?)? x???f?o?.?\? Ʀm0????.3b? ???a????.y?\
(m???x??.??C ???????@.??? ???3????.k)U ^???`?~p.??? x???f??#.?_' ??xG????.3|? ?d1??qfa.*??
(n|??[?3.??? ????????.N?g ???%????.~y{ `??c^???.?4Z x???f?zp.?b? ?Jq??_??.!?? ?z$??os6.*??
(pi??e?d.??? ????4???.??C ???????0.o?Q aZDv_O3?.??? yl??gy?g.??? ?tdb?a??.!ٿ ???V??w?.qf?
(s???f?`.??V ????<???.?p ????????.`?? adQ?_q&?.??? yo;?gzlc.??? ??????sU.ut? ???r????.qe?
*ik2?|??.??? ?E?q.Pa?.??? ??q?"??a.??? b?g?\??1.?.? yq.?gdy4.??? ????ۦ?q.uw; ???!??b?.qx?
+??p????.?9` ?J??*_?!.??8 ????"??e.??n b???\???.?-X z??wd???.?&2 ????????.ui. ?:_??/(?.4??
I copied the files witht he command:
Code:
mammoth% cp -Rf /tank/VIDEO/SOAP/ELEMENTARY /mnt
The same files, copied on a fat32 hard disk work as expected, there is no filesystem corruption.
I prepared the micro SD as follows:
Code:
root@mammoth:~ # gpart add -t mbr da0
root@mammoth:~ # gpart list da0
Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 524290047
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: da0s1
Mediasize: 268436472320 (250G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 32256
Mode: r1w1e1
efimedia: HD(1,MBR,00000000,0x3f,0x1f4007c1)
rawtype: 11
length: 268436472320
offset: 32256
type: fat32
index: 1
end: 524290047
start: 63
Consumers:
1. Name: da0
Mediasize: 268436504576 (250G)
Sectorsize: 512
Mode: r1w1e2
root@mammoth:~ # newfs_msdos -F 32 -L FLUCA_MINI da0s1
My operating system is:
Code:
mammoth% uname -a
FreeBSD mammoth 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64
What am I missing here?