Other dosfs screwed when copying files from ZFS to a micro SD

Hold on. When did exfat came in. I thought we are talking FAT 32 here.

I started with FAT32 ( newfs_msdosfs), then someone suggested to use exfat and tried to copy over extfat.
To recap: when using FAT32 I get the filenames screwed but no copy error. When using exfat I got copy errors.
I'm not at my keyboard right now, but I'm going to do more experiments: try to use a "real" filesystem (UFS), try to copy one file ata a time to see what happens and if it could be a problem of filenames (I don't think so).
 
I'm really confused.
I performed two tests, on the same micro SD card, both successful.

# UFS

I formatted the partition with UFS and copied the files that, so far, always resulted corrupted or problematic:

Code:
mammoth% doas gpart list da0
Geom name: da0
modified: false
state: CORRUPT
fwheads: 255
fwsectors: 63
last: 524290007
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: da0p1
   Mediasize: 268434407424 (250G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1048576
   Mode: r0w0e0
   efimedia: HD(1,GPT,14839387-4152-11f0-9a48-b883034db726,0x800,0x1f3ff800)
   rawuuid: 14839387-4152-11f0-9a48-b883034db726
   rawtype: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
   label: FLUCA_MICRO
   length: 268434407424
   offset: 1048576
   type: ms-basic-data
   index: 1
   end: 524287999
   start: 2048
Consumers:
1. Name: da0
   Mediasize: 268436504576 (250G)
   Sectorsize: 512
   Mode: r0w0e0

mammoth% doas newfs da0p1
/dev/da0p1: 255999.0MB (524285952 sectors) block size 32768, fragment size 4096
        using 410 cylinder groups of 625.22MB, 20007 blks, 80128 inodes.
        with soft updates
super-block backups (for fsck_ffs -b #) at:
 192, 1280640, 2561088, 3841536, 5121984, 6402432, 7682880, 8963328, 10243776, 11524224, 12804672, 14085120, 15365568,
 16646016, 17926464, 19206912, 20487360, 21767808, 23048256, 24328704, 25609152, 26889600, 28170048, 29450496, 30730944,
 32011392, 33291840, 34572288, 35852736, 37133184, 38413632, 39694080, 40974528, 42254976, 43535424, 44815872, 46096320,
 47376768, 48657216, 49937664, 51218112, 52498560, 53779008, 55059456, 56339904, 57620352, 58900800, 60181248, 61461696,
 62742144, 64022592, 65303040, 66583488, 67863936, 69144384, 70424832, 71705280, 72985728, 74266176, 75546624, 76827072,
 78107520, 79387968, 80668416, 81948864, 83229312, 84509760, 85790208, 87070656, 88351104, 89631552, 90912000, 92192448,
 93472896, 94753344, 96033792, 97314240, 98594688, 99875136, 101155584, 102436032, 103716480, 104996928, 106277376,
 107557824, 108838272, 110118720, 111399168, 112679616, 113960064, 115240512, 116520960, 117801408, 119081856,
 120362304, 121642752, 122923200, 124203648, 125484096, 126764544, 128044992, 129325440, 130605888, 131886336,
 133166784, 134447232, 135727680, 137008128, 138288576, 139569024, 140849472, 142129920, 143410368, 144690816,
 145971264, 147251712, 148532160, 149812608, 151093056, 152373504, 153653952, 154934400, 156214848, 157495296,
 158775744, 160056192, 161336640, 162617088, 163897536, 165177984, 166458432, 167738880, 169019328, 170299776,
 171580224, 172860672, 174141120, 175421568, 176702016, 177982464, 179262912, 180543360, 181823808, 183104256,
 184384704, 185665152, 186945600, 188226048, 189506496, 190786944, 192067392, 193347840, 194628288, 195908736,
 197189184, 198469632, 199750080, 201030528, 202310976, 203591424, 204871872, 206152320, 207432768, 208713216,
 209993664, 211274112, 212554560, 213835008, 215115456, 216395904, 217676352, 218956800, 220237248, 221517696,
 222798144, 224078592, 225359040, 226639488, 227919936, 229200384, 230480832, 231761280, 233041728, 234322176,
 235602624, 236883072, 238163520, 239443968, 240724416, 242004864, 243285312, 244565760, 245846208, 247126656,
 248407104, 249687552, 250968000, 252248448, 253528896, 254809344, 256089792, 257370240, 258650688, 259931136,
 261211584, 262492032, 263772480, 265052928, 266333376, 267613824, 268894272, 270174720, 271455168, 272735616,
 274016064, 275296512, 276576960, 277857408, 279137856, 280418304, 281698752, 282979200, 284259648, 285540096,
 286820544, 288100992, 289381440, 290661888, 291942336, 293222784, 294503232, 295783680, 297064128, 298344576,
 299625024, 300905472, 302185920, 303466368, 304746816, 306027264, 307307712, 308588160, 309868608, 311149056,
 312429504, 313709952, 314990400, 316270848, 317551296, 318831744, 320112192, 321392640, 322673088, 323953536,
 325233984, 326514432, 327794880, 329075328, 330355776, 331636224, 332916672, 334197120, 335477568, 336758016,
 338038464, 339318912, 340599360, 341879808, 343160256, 344440704, 345721152, 347001600, 348282048, 349562496,
 350842944, 352123392, 353403840, 354684288, 355964736, 357245184, 358525632, 359806080, 361086528, 362366976,
 363647424, 364927872, 366208320, 367488768, 368769216, 370049664, 371330112, 372610560, 373891008, 375171456,
 376451904, 377732352, 379012800, 380293248, 381573696, 382854144, 384134592, 385415040, 386695488, 387975936,
 389256384, 390536832, 391817280, 393097728, 394378176, 395658624, 396939072, 398219520, 399499968, 400780416,
 402060864, 403341312, 404621760, 405902208, 407182656, 408463104, 409743552, 411024000, 412304448, 413584896,
 414865344, 416145792, 417426240, 418706688, 419987136, 421267584, 422548032, 423828480, 425108928, 426389376,
 427669824, 428950272, 430230720, 431511168, 432791616, 434072064, 435352512, 436632960, 437913408, 439193856,
 440474304, 441754752, 443035200, 444315648, 445596096, 446876544, 448156992, 449437440, 450717888, 451998336,
 453278784, 454559232, 455839680, 457120128, 458400576, 459681024, 460961472, 462241920, 463522368, 464802816,
 466083264, 467363712, 468644160, 469924608, 471205056, 472485504, 473765952, 475046400, 476326848, 477607296,
 478887744, 480168192, 481448640, 482729088, 484009536, 485289984, 486570432, 487850880, 489131328, 490411776,
 491692224, 492972672, 494253120, 495533568, 496814016, 498094464, 499374912, 500655360, 501935808, 503216256,
 504496704, 505777152, 507057600, 508338048, 509618496, 510898944, 512179392, 513459840, 514740288, 516020736,
 517301184, 518581632, 519862080, 521142528, 522422976, 523703424


mammoth% doas mount /dev/da0p1 /mnt


mammoth% doas cp -Rvf /tank/VIDEO/SOAP/ELEMENTARY/03 /mnt

The final result is fine, and the files are there readable!

# EXFAT


I formated the partition with exfat as I did before:

Code:
mammoth% doas mkfs.exfat /dev/da0p1
mammoth% doas mount.exfat /dev/da0p1 /mnt

Then executed the following script to catch the first problematic file:

Code:
#!/bin/sh

cd $1
for f in *; do
  cp "$f" /mnt
  if [ $? -ne 0]; then
    echo "File $f"
   exit
 fi
done

and launched it

Code:
mammoth% doas ./do.sh /tank/VIDEO/SOAP/ELEMENTARY/03

and again the files are all copied and working!


At this point, I think there could be some kind of caching involved that, if copying a single bunch of files, does not corrupt anything and does not result in any error, while if stressed by copying a lot of files, could be the cause of the problems.

Next experiment I'm going to do, therefore, is to copy files in smaller chunks (e.g., a directory at a time) and see what happens.
Even use another copy program, like rsync could be an option.
 
In post #1 you used cp -Rf (for whatever reason...) yet in your script you use plain cp.
'-R' will also copy symbolic links and special files, which are all unknown concepts to FAT, as well as directory modes.

Try again to manually copy by using plain cp
 
In post #1 you used cp -Rf (for whatever reason...) yet in your script you use plain cp.
'-R' will also copy symbolic links and special files, which are all unknown concepts to FAT, as well as directory modes.

Try again to manually copy by using plain cp

good guess, even if

Code:
mammoth% doas find /tank/VIDEO/SOAP -type l

does not find anything. Same empty resultset for type p and s.
So far I'm copying with rsync and it seem to work, I'm waiting for it to finishing copying all the stuff to see if something gets corrupted.
 
This is frustrating!
While I was able to copy a lot of GB without problems, then I started receiving again errors.

I ensured the content I'm copying contains only files and directories:

Code:
mammoth% doas find /tank/VIDEO/SOAP/IT_CROWD -not -type f -and -not -type d
mammoth% cp -Rvf /tank/VIDEO/SOAP/IT_CROWD /mnt  
/tank/VIDEO/SOAP/IT_CROWD -> /mnt/IT_CROWD
cp: /mnt/IT_CROWD/S02: Input/output error
cp: /mnt/IT_CROWD/S01: Input/output error
cp: /mnt/IT_CROWD/S04: Input/output error
cp: /mnt/IT_CROWD/S03: Input/output error
cp: /mnt/IT_CROWD/The.It.Crowd.5x01.L.Ultimo.Episodio.ITA.ENG.1080p.mkv: Input/output error


So i umounted and tried to fix the filesystem:

Code:
mammoth% doas exfatfsck -a /dev/da0p1
exfatfsck 1.4.0
Checking file system on /dev/da0p1.
File system version           1.0
Sector size                 512 bytes
Cluster size                128 KB
Volume size                 250 GB
Used space                  142 GB
Available space             108 GB
ERROR: unknown entry type 0xde.
Fix (Y/N)? Y
ERROR: unknown entry type 0xfb.
Fix (Y/N)? Y
ERROR: unknown entry type 0x94.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb1.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd5.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf0.
Fix (Y/N)? Y
ERROR: unknown entry type 0x9f.
Fix (Y/N)? Y
ERROR: unknown entry type 0xba.
Fix (Y/N)? Y
ERROR: unknown entry type 0xda.
Fix (Y/N)? Y
ERROR: unknown entry type 0xff.
Fix (Y/N)? Y
ERROR: unknown entry type 0x90.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb5.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd1.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf4.
Fix (Y/N)? Y
ERROR: unknown entry type 0x9b.
Fix (Y/N)? Y
ERROR: unknown entry type 0xbe.
Fix (Y/N)? Y
ERROR: unknown entry type 0xc4.
Fix (Y/N)? Y
ERROR: unknown entry type 0xe1.
Fix (Y/N)? Y
ERROR: unknown entry type 0x8e.
Fix (Y/N)? Y
ERROR: unknown entry type 0xab.
Fix (Y/N)? Y
ERROR: unknown entry type 0xcf.
Fix (Y/N)? Y
ERROR: unknown entry type 0xea.
Fix (Y/N)? Y
ERROR: unexpected entry type 0xa0 after 0x85 at 1/153.
ERROR: unknown entry type 0xe6.
Fix (Y/N)? Y
ERROR: unknown entry type 0xc3.
Fix (Y/N)? Y
ERROR: unknown entry type 0xac.
Fix (Y/N)? Y
ERROR: unknown entry type 0x89.
Fix (Y/N)? Y
ERROR: unknown entry type 0xed.
Fix (Y/N)? Y
ERROR: unknown entry type 0xc8.
Fix (Y/N)? Y
ERROR: unknown entry type 0xa7.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf8.
Fix (Y/N)? Y
ERROR: unknown entry type 0xdd.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb2.
Fix (Y/N)? Y
ERROR: unknown entry type 0x97.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf3.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd6.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb9.
Fix (Y/N)? Y
ERROR: unknown entry type 0x9c.
Fix (Y/N)? Y
ERROR: unknown entry type 0xfc.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd9.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb6.
Fix (Y/N)? Y
ERROR: unknown entry type 0x93.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf7.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd2.
Fix (Y/N)? Y
ERROR: unknown entry type 0xbd.
Fix (Y/N)? Y
ERROR: unknown entry type 0x98.
Fix (Y/N)? Y
ERROR: unknown entry type 0xa8.
Fix (Y/N)? Y
ERROR: unknown entry type 0x8d.
Fix (Y/N)? Y
ERROR: unknown entry type 0xe2.
Fix (Y/N)? Y
ERROR: unknown entry type 0xc7.
Fix (Y/N)? Y
ERROR: unknown entry type 0xa3.
Fix (Y/N)? Y
ERROR: unknown entry type 0x86.
Fix (Y/N)? Y
ERROR: unknown entry type 0xe9.
Fix (Y/N)? Y
ERROR: unknown entry type 0xcc.
Fix (Y/N)? Y
ERROR: unknown entry type 0xac.
Fix (Y/N)? Y
ERROR: unknown entry type 0x89.
Fix (Y/N)? Y
ERROR: unknown entry type 0xe6.
Fix (Y/N)? Y
ERROR: unknown entry type 0xc3.
Fix (Y/N)? Y
ERROR: unknown entry type 0xa7.
Fix (Y/N)? Y
ERROR: unknown entry type 0xed.
Fix (Y/N)? Y
ERROR: unknown entry type 0xc8.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb2.
Fix (Y/N)? Y
ERROR: unknown entry type 0x97.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf8.
Fix (Y/N)? Y
ERROR: unknown entry type 0xdd.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb9.
Fix (Y/N)? Y
ERROR: unknown entry type 0x9c.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf3.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd6.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb6.
Fix (Y/N)? Y
ERROR: unknown entry type 0x93.
Fix (Y/N)? Y
ERROR: unknown entry type 0xfc.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd9.
Fix (Y/N)? Y
ERROR: unknown entry type 0xbd.
Fix (Y/N)? Y
ERROR: unknown entry type 0x98.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf7.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd2.
Fix (Y/N)? Y
ERROR: unknown entry type 0x9c.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb9.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd6.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf3.
Fix (Y/N)? Y
ERROR: unknown entry type 0x97.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb2.
Fix (Y/N)? Y
ERROR: unknown entry type 0xdd.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf8.
Fix (Y/N)? Y
ERROR: unknown entry type 0x98.
Fix (Y/N)? Y
ERROR: unknown entry type 0xbd.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd2.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf7.
Fix (Y/N)? Y
ERROR: unknown entry type 0x93.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb6.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd9.
Fix (Y/N)? Y
ERROR: unknown entry type 0xfc.
Fix (Y/N)? Y
ERROR: unknown entry type 0x86.
Fix (Y/N)? Y
ERROR: unknown entry type 0xa3.
Fix (Y/N)? Y
ERROR: unknown entry type 0xcc.
Fix (Y/N)? Y
ERROR: unknown entry type 0xe9.
Fix (Y/N)? Y
ERROR: unknown entry type 0x8d.
Fix (Y/N)? Y
ERROR: unknown entry type 0xa8.
Fix (Y/N)? Y
ERROR: unknown entry type 0xc7.
Fix (Y/N)? Y
ERROR: unknown entry type 0xe2.
Fix (Y/N)? Y
ERROR: unknown entry type 0xa7.
Fix (Y/N)? Y
ERROR: unknown entry type 0xc8.
Fix (Y/N)? Y
ERROR: unknown entry type 0xed.
Fix (Y/N)? Y
ERROR: unknown entry type 0x89.
Fix (Y/N)? Y
ERROR: unknown entry type 0xac.
Fix (Y/N)? Y
ERROR: unknown entry type 0xc3.
Fix (Y/N)? Y
ERROR: unknown entry type 0xe6.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb1.
Fix (Y/N)? Y
ERROR: unknown entry type 0x94.
Fix (Y/N)? Y
ERROR: unknown entry type 0xfb.
Fix (Y/N)? Y
ERROR: unknown entry type 0xde.
Fix (Y/N)? Y
ERROR: unknown entry type 0xba.
Fix (Y/N)? Y
ERROR: unknown entry type 0x9f.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf0.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd5.
Fix (Y/N)? Y
ERROR: unknown entry type 0xb5.
Fix (Y/N)? Y
ERROR: unknown entry type 0x90.
Fix (Y/N)? Y
ERROR: unknown entry type 0xff.
Fix (Y/N)? Y
ERROR: unknown entry type 0xda.
Fix (Y/N)? Y
ERROR: unknown entry type 0xbe.
Fix (Y/N)? Y
ERROR: unknown entry type 0x9b.
Fix (Y/N)? Y
ERROR: unknown entry type 0xf4.
Fix (Y/N)? Y
ERROR: unknown entry type 0xd1.
Fix (Y/N)? Y
ERROR: unknown entry type 0xab.
Fix (Y/N)? Y
ERROR: unknown entry type 0x8e.
Fix (Y/N)? Y
ERROR: unknown entry type 0xe1.
Fix (Y/N)? Y
ERROR: unknown entry type 0xc4.
Fix (Y/N)? Y
ERROR: unknown entry type 0xa0.
Fix (Y/N)? Y
ERROR: unexpected entry type 0xea after 0x85 at 1/40.
Totally 8 directories and 113 files.
File system checking finished. ERRORS FOUND: 130, FIXED: 128.

Note that not all errors have been fixed. I mounted it again with mount.exfat and tried copying something else:

Code:
mammoth% doas find /tank/VIDEO/SOAP/CITY_HUNTER -not -type f -and -not -type d  
mammoth% cp -Rvf /tank/VIDEO/SOAP/CITY_HUNTER /mnt                            
/tank/VIDEO/SOAP/CITY_HUNTER -> /mnt/CITY_HUNTER
/tank/VIDEO/SOAP/CITY_HUNTER/S01 -> /mnt/CITY_HUNTER/S01
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x08 - I piani rubati - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x14 - La tratta delle donne - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x31 - Amore senza limiti - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x01 - Un cocktail esplosivo - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x23 - Una sposa dal cielo - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x22 - Cupido colpisce ancora - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x42 - Detective in gonnella (2) - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x37 - L’allieva di Hunter (1) - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x44 - Hunter, il nostro eroe - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x13 - La sposa sedicenne - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x21 - L’ultima scommessa - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x18 - Amore e preghiera - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x04 - Benvenuta all’inferno - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x07 - La bambina sull’altalena - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x10 - Un istitutore pericoloso - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x20 - Il giorno più lungo - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x35 - Uno scoop per Hunter - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x11 - Il tulipano nero - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x17 - Amore estivo - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x49 - Il rosario della suora - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x03 - L’ultima sfida - 1080 by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x36 - La studentessa infelice - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x51 - Il nemico numero uno (2) - END by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x50 - Il nemico numero uno (1) - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x41 - Detective in gonnella (1) - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x48 - Una vedova inconsolabile - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x46 - Che bello rubare! - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x28 - Il segreto di Falcon (2) - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x33 - Rapsodia d’amore - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x26 - Che cos’è l’amore - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x16 - L’hostess - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x40 - Una socia seducente - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x15 - Il cavaliere dal cavallo bianco - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x05 - Un triste regalo - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x39 - La principessa scomparsa - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x32 - Un killer infallibile - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x24 - In ospedale - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x27 - Il segreto di Falcon (1) - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x45 - Tre sorelle sulla neve - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x02 - Uccidimi, per favore - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x34 - Un papà preso in prestito - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x25 - Scambi internazionali - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x12 - Voglio tornare bambino - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x43 - La poetessa perduta - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x30 - La conquista di Kreta - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x09 - La regina del casinò - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x38 - L’allieva di Hunter (2) - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x06 - L’ultima scena - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x47 - L’asso del biliardo - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x19 - La spiaggia dei ricordi - 1080p by stress.mkv: Input/output error
cp: /mnt/CITY_HUNTER/S01/City Hunter - 1x29 - La giovane illustratrice - 1080p by stress.mkv: Input/output error


File /var/log/messages contains:

Code:
mammoth% doas tail /var/log/messages
Jun  6 19:16:50 mammoth mount.exfat[1146]: dirty node 'S01' with zero references
Jun  6 19:16:50 mammoth mount.exfat[1146]: dirty node 'City Hunter - 1x08 - I piani rubati - 1080p by stress.mkv' with ze
ro references
Jun  6 19:16:50 mammoth mount.exfat[1146]: dirty node 'S01' with zero references
Jun  6 19:16:50 mammoth mount.exfat[1146]: dirty node 'City Hunter - 1x08 - I piani rubati - 1080p by stress.mkv' with ze
ro references
Jun  6 19:16:50 mammoth mount.exfat[1146]: unexpected entry type 0x99 after 0xffffffff at 0/3
Jun  6 19:16:50 mammoth mount.exfat[1146]: dirty node 'S01' with zero references
Jun  6 19:16:50 mammoth syslogd: last message repeated 3 times
Jun  6 19:17:23 mammoth mount.exfat[1146]: unexpected entry type 0x3 after 0xffffffff at 0/7
Jun  6 19:17:23 mammoth syslogd: last message repeated 1 times
Jun  6 19:17:23 mammoth mount.exfat[1146]: dirty node 'City.Hunter.2024.1080p.ITA-JAP-ENG.MULTI.WEBRip.x265.AAC-V3SP4EV3R
.mkv' with zero references

Last buit not least, I cannot get rid of "wrong" files on the micro sd card, so the next step will be to start over from scratch with a new filesystem:

Code:
mammoth% doas rm -rf /mnt/CITY_HUNTER  
rm: /mnt/CITY_HUNTER/FILM/City.Hunter.2024.1080p.ITA-JAP-ENG.MULTI.WEBRip.x265.AAC-V3SP4EV3R.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x29 - La giovane illustratrice - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x19 - La spiaggia dei ricordi - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x47 - L’asso del biliardo - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x06 - L’ultima scena - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x38 - L’allieva di Hunter (2) - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x09 - La regina del casinò - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x30 - La conquista di Kreta - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x43 - La poetessa perduta - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x12 - Voglio tornare bambino - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x25 - Scambi internazionali - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x34 - Un papà preso in prestito - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x02 - Uccidimi, per favore - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x45 - Tre sorelle sulla neve - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x27 - Il segreto di Falcon (1) - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x24 - In ospedale - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x32 - Un killer infallibile - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x39 - La principessa scomparsa - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x05 - Un triste regalo - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x15 - Il cavaliere dal cavallo bianco - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x40 - Una socia seducente - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x16 - L’hostess - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x26 - Che cos’è l’amore - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x33 - Rapsodia d’amore - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x28 - Il segreto di Falcon (2) - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x46 - Che bello rubare! - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x48 - Una vedova inconsolabile - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x41 - Detective in gonnella (1) - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x50 - Il nemico numero uno (1) - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x51 - Il nemico numero uno (2) - END by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x36 - La studentessa infelice - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x03 - L’ultima sfida - 1080 by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x49 - Il rosario della suora - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x17 - Amore estivo - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x11 - Il tulipano nero - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x35 - Uno scoop per Hunter - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x20 - Il giorno più lungo - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x10 - Un istitutore pericoloso - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x07 - La bambina sull’altalena - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x04 - Benvenuta all’inferno - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x18 - Amore e preghiera - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x21 - L’ultima scommessa - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x13 - La sposa sedicenne - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x44 - Hunter, il nostro eroe - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x37 - L’allieva di Hunter (1) - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x42 - Detective in gonnella (2) - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x22 - Cupido colpisce ancora - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x23 - Una sposa dal cielo - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x01 - Un cocktail esplosivo - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x31 - Amore senza limiti - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x14 - La tratta delle donne - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01/City Hunter - 1x08 - I piani rubati - 1080p by stress.mkv: Input/output error
rm: /mnt/CITY_HUNTER/S01: Directory not empty
rm: /mnt/CITY_HUNTER: Directory not empty


But i feel really dumb here, is it possible I'm not able to copy my stuff on the card?
 
Gosh, and here it is the result of cp (nothing else than files and directory) again on the partition formatted as msdos:

Code:
mammoth% cp -Rvf /tank/VIDEO/SOAP/IT_CROWD /mnt
...
/tank/VIDEO/SOAP/IT_CROWD/S04 -> /mnt/IT_CROWD/S04
/tank/VIDEO/SOAP/IT_CROWD/S04/The.It.Crowd.4x03.E.Successa.Una.Cosa.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/S04/The.It.Crowd.4
x03.E.Successa.Una.Cosa.ITA.ENG.1080p.mkv
/tank/VIDEO/SOAP/IT_CROWD/S04/The.It.Crowd.4x01.Jen.Alias.Fredo.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/S04/The.It.Crowd.4x01.
Jen.Alias.Fredo.ITA.ENG.1080p.mkv
/tank/VIDEO/SOAP/IT_CROWD/S04/The.It.Crowd.4x06.Reynholm.Contro.Reynholm.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/S04/The.It.Cr
owd.4x06.Reynholm.Contro.Reynholm.ITA.ENG.1080p.mkv
/tank/VIDEO/SOAP/IT_CROWD/S04/The.It.Crowd.4x02.Il.Conto.Alla.Rovescia.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/S04/The.It.Crow
d.4x02.Il.Conto.Alla.Rovescia.ITA.ENG.1080p.mkv
/tank/VIDEO/SOAP/IT_CROWD/S04/The.It.Crowd.4x04.Italiano.Per.Principianti.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/S04/The.It.C
rowd.4x04.Italiano.Per.Principianti.ITA.ENG.1080p.mkv
/tank/VIDEO/SOAP/IT_CROWD/S04/The.It.Crowd.4x05.Cattivi.Ragazzi.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/S04/The.It.Crowd.4x05.
Cattivi.Ragazzi.ITA.ENG.1080p.mkv
/tank/VIDEO/SOAP/IT_CROWD/S03 -> /mnt/IT_CROWD/S03
/tank/VIDEO/SOAP/IT_CROWD/S03/The.It.Crowd.3x01.Dall.Inferno.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/S03/The.It.Crowd.3x01.Dal
l.Inferno.ITA.ENG.1080p.mkv
/tank/VIDEO/SOAP/IT_CROWD/S03/The.It.Crowd.3x04.Il.Discorso.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/S03/The.It.Crowd.3x04.Il.D
iscorso.ITA.ENG.1080p.mkv
/tank/VIDEO/SOAP/IT_CROWD/S03/The.It.Crowd.3x03.Barboni.Come.Noi.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/S03/The.It.Crowd.3x03
.Barboni.Come.Noi.ITA.ENG.1080p.mkv
/tank/VIDEO/SOAP/IT_CROWD/S03/The.It.Crowd.3x05.Friendface.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/S03/The.It.Crowd.3x05.Frien
dface.ITA.ENG.1080p.mkv
/tank/VIDEO/SOAP/IT_CROWD/S03/The.It.Crowd.3x06.Il.Calendario.Degli.Informatici.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/S03/Th
e.It.Crowd.3x06.Il.Calendario.Degli.Informatici.ITA.ENG.1080p.mkv
/tank/VIDEO/SOAP/IT_CROWD/S03/The.It.Crowd.3x02.Non.Siamo.Uomini.Veri.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/S03/The.It.Crowd
.3x02.Non.Siamo.Uomini.Veri.ITA.ENG.1080p.mkv
/tank/VIDEO/SOAP/IT_CROWD/The.It.Crowd.5x01.L.Ultimo.Episodio.ITA.ENG.1080p.mkv -> /mnt/IT_CROWD/The.It.Crowd.5x01.L.Ulti
mo.Episodio.ITA.ENG.1080p.mkv
mammoth% ls /mnt                                    
GOLDEN_BOY      IT_CROWD
mammoth% ls -R /mnt  
GOLDEN_BOY      IT_CROWD

/mnt/GOLDEN_BOY:
Golden Boy - 01 - A scuola di computer.mkv              Golden Boy - 04 - Nuotare nelle acque selvagge.mkv
Golden Boy - 02 - L'angelo della seduzione.mkv          Golden Boy - 05 - Gioventù senza freni.mkv
Golden Boy - 03 - Quando sboccia un primo amore.mkv     Golden Boy - 06 - I cartoni animati sono fantastici.mkv

/mnt/IT_CROWD:
S01                                                     S04
S02                                                     The.It.Crowd.5x01.L.Ultimo.Episodio.ITA.ENG.1080p.mkv
S03

/mnt/IT_CROWD/S01:
ls: #�d??%?�._��: No such file or directory
ls: '��9�?(k.[?}: No such file or directory
ls: 07??���L.l?�: No such file or directory
ls: 4??���T?.h,?: No such file or directory
ls: 9����jf�.e??: No such file or directory
ls: =�?\�[??.a��: No such file or directory
ls: ?iq?.?c?: No such file or directory
ls: ?x�?$?=?.�rh: No such file or directory
ls: ?�c_-%�?.?��: No such file or directory
ls: ?�?�a?w?.��": No such file or directory
ls: bc??��bI.?I7: No such file or directory
ls: fR.֨��?.?x?: No such file or directory
ls: q�ѥ�q?�.?�k: No such file or directory
ls: u?R<�@�n.?�?: No such file or directory
ls: x,@~���,.??�: No such file or directory
ls: |?����?�.?7y: No such file or directory
ls: �?;?e>�m.��?: No such file or directory
ls: �R)}h��/.�x�: No such file or directory
ls: �c�?l�e�.�i0: No such file or directory
ls: ����)?/�.??z: No such file or directory
ls: �?�x:�S*.?,?: No such file or directory
ls: ӹ�Zq??.��L: No such file or directory
ls: �7?�>���.�?�: No such file or directory
ls: �?U�{@��.��?: No such file or directory
(?$j?+??.T??    ;9x?????.g??    ?v?n/?}<.?\(    s"??????.???    ???,"?o~.??:    ?m??g?%\.?gp
,?????h?.P?=    ???)pn?{.???    ??#?&+??.???    w?????L_.?9?    ???Lj?7?.??b    ??{?n0??.???
2??/?d?}.n?s    ???m????.c"a    im????"?.?Gw    z??o??^?.???    ????1???.?"F    ?\i?c???.?v?
6?J??U??.j??    ?G1?+???.?m?    m\nh???:.?v?    ~????n??.???    ?9_?5??y.???    ????t?y?.???

/mnt/IT_CROWD/S02:
The.It.Crowd.2x01.L.Uscita.Allo.Scoperto.ITA.ENG.1080p.mkv
The.It.Crowd.2x02.Ritorno.Del.Figliol.Prodigo.ITA.ENG.1080p.mkv
The.It.Crowd.2x03.Moss.E.Il.Tedesco.ITA.ENG.1080p.mkv
The.It.Crowd.2x04.La.Cena.ITA.ENG.1080p.mkv
The.It.Crowd.2x05.Fumo.Negli.Occhi.ITA.ENG.1080p.mkv
The.It.Crowd.2x06.Uomini.Senza.Donne.ITA.ENG.1080p.mkv

/mnt/IT_CROWD/S03:
The.It.Crowd.3x01.Dall.Inferno.ITA.ENG.1080p.mkv
The.It.Crowd.3x02.Non.Siamo.Uomini.Veri.ITA.ENG.1080p.mkv
The.It.Crowd.3x03.Barboni.Come.Noi.ITA.ENG.1080p.mkv
The.It.Crowd.3x04.Il.Discorso.ITA.ENG.1080p.mkv
The.It.Crowd.3x05.Friendface.ITA.ENG.1080p.mkv
The.It.Crowd.3x06.Il.Calendario.Degli.Informatici.ITA.ENG.1080p.mkv

/mnt/IT_CROWD/S04:
ls: "?|���î.^,�: No such file or directory
ls: #??�?C??._�U: No such file or directory
ls: $?o�?�Ƚ.X9�: No such file or directory
ls: $?��?�'�.X:r: No such file or directory
ls: &7�y?�0+.Z?e: No such file or directory
ls: '�L?�r�I.[��: No such file or directory
ls: (��?�sum.T�?: No such file or directory
ls: )6)}�?�/.U?�: No such file or directory
ls: *��?�tb�.V�?: No such file or directory
ls: +?>??���.W;�: No such file or directory
ls: +??�?�v�.W8#: No such file or directory
ls: ,??�?b��.PԸ: No such file or directory
ls: -?�??�e�.Q-0: No such file or directory
ls: .\?v: No such file or directory
ls: .\?�: No such file or directory
ls: /#:?��-.S?�: No such file or directory
ls: /.S?': No such file or directory
ls: 0�`̻??�.l?�: No such file or directory
ls: 1]T���??.mw?: No such file or directory
ls: 1^�?��?�.mti: No such file or directory
ls: 2�wz�<?(.n��: No such file or directory
ls: 3y??��?J.os^: No such file or directory
ls: 4��\�*,?.h�y: No such file or directory
ls: 5l�?��?H.ifm: No such file or directory
ls: 5oP>���l.ie�: No such file or directory
ls: 6�ǰ�?;�.j�n: No such file or directory
ls: 7HGܿ?�?.kb�: No such file or directory
ls: 8i�׺?^?.dc?: No such file or directory
ls: 9�"��?��.e�?: No such file or directory
ls: :m??��?l.fg?: No such file or directory
ls: :n?:��ih.fd?: No such file or directory
ls: <x??�?�n.@r�: No such file or directory
ls: =�?~�=n,.a�;: No such file or directory
ls: >_?��?��.bu�: No such file or directory
ls: ?*?���?�.d??: No such file or directory
ls: ?+�?��?�.k?m: No such file or directory
ls: ?,��`�o�.�?:: No such file or directory
ls: ?.?;/��i.??�: No such file or directory
ls: ?/�?.??@: No such file or directory
ls: ?0�8q?gj.???: No such file or directory
ls: ?1^<^?�n.�??: No such file or directory
ls: ??/?,O��.�??: No such file or directory
ls: ???;e;?i.���: No such file or directory
ls: ????-��?.?#�: No such file or directory
ls: ????u�?�.�+�: No such file or directory
ls: ???�tdw�.��": No such file or directory
ls: ??T>��?l.o0?: No such file or directory
ls: ??a]m�??.�: No such file or directory
ls: ??sz�I?(.h��: No such file or directory
ls: ??y�$��?.�4�: No such file or directory
ls: ??��Z�?�.?*G: No such file or directory
ls: ??�?+�@�.?5?: No such file or directory
ls: ??ķ]S5�.��`: No such file or directory
ls: ??�ym�)+.�#|: No such file or directory
ls: ??�^_t"?.?�w: No such file or directory
ls: ??���x?�.l�j: No such file or directory
ls: ??�~�hj,.g�?: No such file or directory
ls: ??�?J:?m.��l: No such file or directory
ls: ??�\�_(?.n?}: No such file or directory
ls: ??�:��mh.`1?: No such file or directory
ls: ?To_���?.z~�: No such file or directory
ls: ?d:?����.qN�: No such file or directory
ls: ?e���?#�.~Ov: No such file or directory
ls: ?lj??��k.�f�: No such file or directory
ls: ?o0?@?��.�e�: No such file or directory
ls: ?u?[�?v?.u#: No such file or directory
ls: ?~�yd�|?.�t): No such file or directory
ls: ?�?��7��.v��: No such file or directory
ls: ?�?|p?d..��1: No such file or directory
ls: ?�n?[E?�.���: No such file or directory
ls: ?�_?�.�?: No such file or directory
ls: ?��?c-[o.��?: No such file or directory
ls: ?��?�!f�.p�?: No such file or directory
ls: ?�&��y��.c??: No such file or directory
ls: ?�?Y.kp?.??%: No such file or directory
ls: ?�?�,Lg�.��2: No such file or directory
ls: ?�~�#m?�.?��: No such file or directory
ls: ?�1x�^�?.a??: No such file or directory
ls: ?�H?�?�I.}��: No such file or directory
ls: ?��?�?qm.r�?: No such file or directory
ls: ?�,?rr��.???: No such file or directory
ls: ?��?%[%�.��p: No such file or directory
ls: ?�??ai�?.�?�: No such file or directory
ls: ?�d��n?�.j?�: No such file or directory
ls: ?��?�o}�.e�(: No such file or directory
ls: ?��=�??o.{?F: No such file or directory
ls: ?�?|vc`..�?5: No such file or directory
ls: ?�?9�??k.t?�: No such file or directory
ls: @A�???N�.<k?: No such file or directory
ls: Bf�?��YM.>L?: No such file or directory
ls: C�%}?#�/.?�?: No such file or directory
ls: Dp?9?�?k.8Z�: No such file or directory
ls: FW?�?���.:}�: No such file or directory
ls: G��?�?i�.;?<: No such file or directory
ls: Q>9X??�?.-?�: No such file or directory
ls: R���?\R?..�?: No such file or directory
ls: S?.�?���./3?: No such file or directory
ls: U????�u�.)%: No such file or directory
ls: V�???m�N.*?�: No such file or directory
ls: W(?~?�b,.+?7: No such file or directory
ls: \?��?�7�: No such file or directory
ls: ]�k�?]�?.!��: No such file or directory
ls: ^?�\?�."?u: No such file or directory
ls: a�%??d��.???: No such file or directory
ls: a��??gm�.?�8: No such file or directory
ls: b??9�Ţk.?/�: No such file or directory
ls: c??[�@z?.?�/: No such file or directory
ls: e?!}�V�/.?��: No such file or directory
ls: e?�Y�Ui?.?�<: No such file or directory
ls: f4�?��J�.???: No such file or directory
ls: g�6?�q��.?��: No such file or directory
ls: h����p/�.?�z: No such file or directory
ls: h�p��??�.4?�: No such file or directory
ls: i5s?�?��.??�: No such file or directory
ls: iv���???.5|Y: No such file or directory
ls: j��y�w8+.?�m: No such file or directory
ls: j�p]�t??.?��: No such file or directory
ls: k?d?��?i.?8�: No such file or directory
ls: kq�=��?o.7[N: No such file or directory
ls: l?c_�a�?.?��: No such file or directory
ls: l��y�"<+.0�i: No such file or directory
ls: m?�=?�?o.?.J: No such file or directory
ls: mg@?���i.1M�: No such file or directory
ls: n?�?�e<�.??i: No such file or directory
ls: n�t��f��.?��: No such file or directory
ls: o#?���??.??]: No such file or directory
ls: o@w?�?��.3j?: No such file or directory
ls: p�????�N.?��: No such file or directory
ls: p��8??Rj.???: No such file or directory
ls: q]�~��f,.?w3: No such file or directory
ls: r�?��?��.??�: No such file or directory
ls: sz??��q�.?p$: No such file or directory
ls: t�??�*��.?��: No such file or directory
ls: t����)V?.?�?: No such file or directory
ls: ul*�۵��.?f?: No such file or directory
ls: v��:�?Ah.?�?: No such file or directory
ls: wK=X�?�?.?a�: No such file or directory
ls: x){z��?(.$?�: No such file or directory
ls: xj?\�?$?.?`q: No such file or directory
ls: y�??�l?j.%?r: No such file or directory
ls: y�x>�?�l.?��: No such file or directory
ls: z?l�?���.&$�: No such file or directory
ls: {�?��+?�.?�r: No such file or directory
ls: {�o��(�?.?��: No such file or directory
ls: |{h�����.?q�: No such file or directory
ls: }?�?�>?�.?�a: No such file or directory
ls: ��?�??j.??v: No such file or directory
ls: �?a>21�l.���: No such file or directory
ls: ��??22?h.��\: No such file or directory
ls: �?;zpu�?.???: No such file or directory
ls: ��i]!j�?.??�: No such file or directory
ls: ��F?jY�K.먿: No such file or directory
ls: �9�?f?|�.�?): No such file or directory
ls: �:4?f?��.�??: No such file or directory
ls: ��z_'??.??�: No such file or directory
ls: ���{'|2).??g: No such file or directory
ls: ����9?\?.?�?: No such file or directory
ls: ��?�9?��.?��: No such file or directory
ls: �pb?1??�.�z�: No such file or directory
ls: �a�^5�.?.�K{: No such file or directory
ls: �-v�o�?�.�?�: No such file or directory
ls: ���?6??�.?�X: No such file or directory
ls: ��e�6???.?��: No such file or directory
ls: �s??q?�l.�y�: No such file or directory
ls: ��?�nh??.�?_: No such file or directory
ls: �??yb�x?.�!-: No such file or directory
ls: �?�{k�:).�6o: No such file or directory
ls: ���?ex_o.��?: No such file or directory
ls: ��Q�h~�?.��?: No such file or directory
ls: �?#d��-.�7?: No such file or directory
ls: �?��0??�.��K: No such file or directory
ls: ��r<4$�n.��?: No such file or directory
ls: �?�?lO?m.�?h: No such file or directory
ls: �f��7?9�.�ll: No such file or directory
ls: ���[(~c?.?�6: No such file or directory
ls: ��+(}�-.?�?: No such file or directory
ls: ��<?*Z��.?��: No such file or directory
ls: �8�?)?WO.???: No such file or directory
ls: �j???�D�.�@?: No such file or directory
ls: Dzң?wX?.��?: No such file or directory
ls: �e]K��?.�u�: No such file or directory
ls: �M�??�SO.�g?: No such file or directory
ls: ˪B?L,�K.���: No such file or directory
ls: ����H???.��[: No such file or directory
ls: ��U�N?�?.��?: No such file or directory
ls: �`7Z:��?.?J?: No such file or directory
ls: �u��|??�.?_C: No such file or directory
ls: �v^�|��?.?\?: No such file or directory
ls: ��}x?�*.���: No such file or directory
ls: �??��6??.y�Q: No such file or directory
ls: ���{??6).��c: No such file or directory
ls: �R??~�?H.�xT: No such file or directory
ls: �?�|?�h..�)=: No such file or directory
ls: ��?????�.??�: No such file or directory
ls: �?3Z??�?.??�: No such file or directory
ls: ��yxYb?*.??�: No such file or directory
ls: �3��??=�.??h: No such file or directory
ls: �????F�L.���: No such file or directory
ls: ��a�?v�?.�ͻ: No such file or directory
ls: ��/??�-.��?: No such file or directory
ls: �$?�?��.�?*: No such file or directory
ls: �?qx?�?*.�(?: No such file or directory
ls: �%f??���.�?�: No such file or directory
ls: ���?a?l�.��?: No such file or directory
ls: �Q?�>?{�.�{.: No such file or directory
ls: �?�^?�*?.�>: No such file or directory
ls: �?�??g?h.��X: No such file or directory
ls: ��??g?�?.�?�: No such file or directory
ls: �N�?O?)�.�d|: No such file or directory
ls: ���8;%Kj.��?: No such file or directory
ls: �?ϲ?9c�.��6: No such file or directory
ls: �???=3�L.��?: No such file or directory
ls: �?�:=0Xh.��?: No such file or directory
ls: ����{&1�.��d: No such file or directory
ls: �z�??�?m.�pd: No such file or directory
ls: �|???��?.�v�: No such file or directory
ls: �8e�i?̮.�?�: No such file or directory
ls: �;�?i?-�.�?x: No such file or directory
ls: �k]�?ߵ?.�a?: No such file or directory
ls: �}��?�??.�ws: No such file or directory
ls: ��(?t'��.���: No such file or directory
ls: ��?zv?�?.���: No such file or directory
ls: �[?;?�?i.�q�: No such file or directory
ls: �b?�u�t?.�H?: No such file or directory
ls: �2$??�?�.�??: No such file or directory
ls: �?z�?8?�.���: No such file or directory
ls: �t??s??�.�^�: No such file or directory
ls: �w��s�g?.�]?: No such file or directory
ls: �DZ<x?�n.�n?: No such file or directory
ls: �G�?x??J.�mG: No such file or directory
ls: �e�8w�cj.�o?: No such file or directory
ls: �f??w??n.�l�: No such file or directory
!??J?Z??.]?W    ?$AI?.o??      ?????$l?.c?9    W?????w[.+<"    wu(/???}.?_?    ????nV??.??j    ??:??6?Z.???
"8i?????.^??    ?%?m??x?.`??    ????tzb?.??7    \&????"?        x?n????_.$=?    ?5?.b?m|.??8    ??л??j?.?0?
#????}??._?@    ?.???           ????,rr?.??'    ]?^??c??.!??    xt?+??1y.?^d    ?6%?b??x.???    ?<d????].???
$-z?????.X??    ?4t*m??x.???    ??{?[{??.???    ^??+??5y."+`    y?mi?1??.???    ???lcp??.???    ??s?????.?1?
$.????2?.X?g    ?7??m?<\.??i    ??f??w?_.h??    `???????.?6?    y??o?r?=.%?g    ?"??k?/^.??z    ????a4y?.???
%?N??k??.Y??    ?>??Z???.??R    ?????v?[.g?*    a????Yx?.??-    z0y?????.&??    ???jefj8.???    ?o??>?n?.?E;
&?????%\.Z#p    ??3??g??.c??    ??9?rl??.???    a?0??Z??.???    zs????&?.?ys    ?#6?d??z.???    ?*?)???{.??j
'?Yl?L?>.[??    ????u???.???    ????#p#?.??v    b;?N????.???    {???????.??g    ????0+??.??^    ???m?y??.??M
(??h?m@:.T??    ???L/???.?:?    ??:?,q??.???    c??,?~o~.??:    {?z?????.???    ??gk4???.???    ????g"??.???
)?<????x.U"?    ???h.?;u        ???HJ???.??y    e?4??h?X.???    |e}?????.?o?    ??>?(C?Z.???    ?p??O?<?.?zi
+,????c?.W?6    ???h?8d:.r??    ?ѢJ?/??.{?S     e??.?k||.??)    }???????.??t    ??)?*d??.???    ???O;?^?.???
+/+?????.W??    ???????.d>?     ???+?a=y.n?h    f?????_?.?      ~bj????_.?h?    ?T????Q?.?~?    ??????v?.??#
,????|??.P?? ????`?z?.?8/ ????????.v?? g?#??O??.??? ???o?'?=.??c ?????IM?.??? ???M=?M?.̫?
-9????p?.Q?% ??KK^???.?%? ???le???.??? h????n:?.??o ??^k?$??.??? ?Ap*K??x.?k? ???i=??;.̡?
/?/????z.S7?    ??[n&??<.?-?    ????v]uy.??     h?e??-??.4??    ??ti2???.л?     ?s?j??F8.?y?    ????{?$?.??q
/??,??g~.S42    ??]l?9?>.}??    ???n?.??.tı     i?f?????.?!?    ???m2???.мI     ??WnL??<.???    ?B??????.?h?
1`??????.mj\    ??q??P??.j??    ??????s?.p??    ih??????.5BL    ?6??"???.??b    ή??H#??.??n     ?d?h????.?nq
1cA??ڷ?.mi?     ????????.k?x    ????p(qy.??$    j????i-\.??x    ??.-pk??.???    ??@?N5??.???    ????i?8?.?/m
2?b????_.n??    ???..Ue|.??0    ??J?????.???    j?e*?j?x.???    ??|*!t?x.???    ?^"-:???.?t?    ?c??????.?if
3G?o???=.omk    ?????F*?.l??    ???jc?n8.???    ko?j????.7e[    ??Snjg?<.???    ?HK?|???.?b?    ?uh?????.???
5QEI????.i{?    ?????qh?.e?=    ??$/?`?}.a??    l?v(???z.???    ??!?f???.?.?    ?K??|???.?aV    ??=?t???.???
6??Ů3.?.j?{     ???)_J7{.??b    ????]m.??u      l?????)\.0?|    ????f?i?.?-<    ??h??)?].???    ?H??<?yY.?b,
7vRݿ???.k\?     ????%e0?.??e    @?????[?.<U?    m:?j????.??_    ??o('a?z.???    ????}???.??     ?\??u?a?.?v?
8w????k?.d]?    ???oq?r?.?$?    BX?h??L:.>r?    myul???>.1s?    ????'b'^.??r    ?鬯????.y?D     ?e?L????.?o?
9?7??2??.e??    ?@?.d?i|.?j<    C?0????X.???    n?a??x??.???    ????9???.???    ע???7#^.??v     ??1?????.?&?
:p?m??\?.fz?    ?[????6?.~qc    DN?N????.8d?    n?濱[)?.??|     ????9<I?.???    ?l?m~???.?FA    ??o?????.???
:s?i???;.fy?    ?jz(???z.z@?    Fi??????.:C?    o~b?????.3T?    ?nw?1???.?D?    ?=????}Y.??(    ?i??s?r?.?c?
;?.g??          ?k?,??c~.uA6    G????,|?.;?)    p??O?%G?.???    ?_?)5?;{.?un    ?????*??.???    ?j??s???.?`?
<f?k???9.@l?    ?q%?@???.?[?    Q?,/???}.-*?    p??k?&?9.???    ??c?o???.?9?    ?+&-????.???    ?x?kw??9.?R?
=?????{[.a?.    ?r_n???<.?x?    R???bG?..??     r???????.???    ????6>??.??M    ??l?Y\?].???    ?y?ox??=.?SR
>a??????.bk?    ?z/?????.qp?    S';?????./??    sD????d?.?n1    ??p?6=??.?إ     ???i?x?;.???    ?zOKx???.?P?
>b????x?.bh?    ????aw??.???    U1????`?.)?5    tذ???C?.???     ?m?iq??;.?G?    ??????(?.?'}    ?{?ow?v?.?Q?
?!??+?U?.???    ??k?#s??.???    V??k?S?9.*??    v??M?0T?.???    ????ga]?.???    ??t??h??.???

mammoth% mount | grep mnt
/dev/da0p1 on /mnt (msdosfs, local)


I really don't see a way to fix this problem.
I also tested the same partition formatted by Linux as vfat and mounted with msdosfs with similar results.
 
Any chance this SD card(s) are getting too hot during the transfers?
I remember having that problem with some USB-flashdrives once (bought in bulk to hand out pictures/videos of an event to the participants). Eveything up to a few 100MB was fine, but larger transfers always resulted in the drives going catatonic (and corrupting the latest transferred file) until they cooled down. I ended up using rsync with comically low '--bwlimit' to get consistent copies of all data...
 
This is a frustrated update to the situation.
I've tried to format the microsd as ext2fs, then while copying the stuff the FreeBSD machine went into panic.

Then I tried to divide the 256 GB card into 5 paritiongs (GPT) of roughly 50 GB, formatted with mkfs.exfat, but again the copy failed.
Since the copy on the same USB port on an mechanical hard drive works fine, I believe there could be some hard-disk/micro-sd caching problem.

Besides, I have these new sd cards and adapters and I'm not able to copy my fluff intp them.

Any suggestion is appreciated.
 
There are some fake SD cards out there. Even if the card has the name of a well-known manufacturer on it, it could still be counterfeit.

Try writing to the SD card with dd(1) directly, skipping any filesystem. Then read from the card and compare to what you wrote. To avoid any caching, detach and reattach the card before reading from it. There might be utilities in ports for doing precisely this kind of test.
 
So far, I'm still fighting against this. I've noted that the GPT table is often reported as corrupted once the card is plugged into the USB port (any port, I've tried with 4 of them), so that I need recovery from the backup GPT. This should indicate that the micro sd is failing.
I've tried to copy files with rsync[/cmd~ and bwlimit set at 1MB (!), without any success.
 
There are some fake SD cards out there. Even if the card has the name of a well-known manufacturer on it, it could still be counterfeit.

Try writing to the SD card with dd(1) directly, skipping any filesystem. Then read from the card and compare to what you wrote. To avoid any caching, detach and reattach the card before reading from it. There might be utilities in ports for doing precisely this kind of test.

I was able to zero fill the card with dd, now are you suggesting to do something like:

Code:
% dd if=/tank/VIDEO/SOAP/IT_CROWD/01.mkv of=/dev/da0p1/
% dd of=/tank/VIDEO/SOAP/IT_CROWD/01_backup.mkv if=/dev/da0p1/
% sha1sum o1_backup.mkv 01.mkv

to see if the card is working? Or have I misunderstood your dd-based copy method?
 
I was able to zero fill the card with dd, now are you suggesting to do something like:

Code:
% dd if=/tank/VIDEO/SOAP/IT_CROWD/01.mkv of=/dev/da0p1/
% dd of=/tank/VIDEO/SOAP/IT_CROWD/01_backup.mkv if=/dev/da0p1/
% sha1sum o1_backup.mkv 01.mkv

to see if the card is working? Or have I misunderstood your dd-based copy method?
I believe he was suggesting to try and fill the SD card with zeros specifying the size of the card. There are a bunch of SD cards that advertise themselves as, for example, being 2TB in size whilst they are actually 64GB cards. In this case dd-ing 2TB of zeros ends up in an I/O error when reaching the physical limit.

However, I doubt that a Sandisk 256GB can be faked but who knows... Something like:

dd if=/dev/zero of=/dev/da0p1 bs=1G count=256

or any combination of bs and count such that bs*count=256GB (assuming that the SD is da0p1).
 
I believe he was suggesting to try and fill the SD card with zeros specifying the size of the card. There are a bunch of SD cards that advertise themselves as, for example, being 2TB in size whilst they are actually 64GB cards. In this case dd-ing 2TB of zeros ends up in an I/O error when reaching the physical limit.

However, I doubt that a Sandisk 256GB can be faked but who knows... Something like:

dd if=/dev/zero of=/dev/da0p1 bs=1G count=256

or any combination of bs and count such that bs*count=256GB (assuming that the SD is da0p1).

Why putting zeros into the partition instead of the device?
Also, what is the problem if the dd reaches the end of the device and triggers an error? It still means it has written all the disk.
Am I missing something here?

So far, what I've tried is to dd if=/dev/zero of=/dev/da0 and it ran up to the whole disk limit. Assuming this works, it means that either a filesystem or cache problem is involved in here, since the problem presents when the copy is done using msdosfs or exfat. And since the same copy works on a rust spinning hard disk via USB, I guess it is a matter of cache.
 
Back
Top