Copying files USB to USB

Thanks for the reply. Whether I use a card reader to read the SD by itself, or in an adapter I can't see a way to read and copy to / from them. My HP workstation does not have a card reader built it.



gn@HP-Z2-SFF-G4:~$ sudo dmesg | grep -v UFW
[sudo] password for gn:
[41352.552397] sd 6:0:0:1: [sdg] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[41352.552414] sd 6:0:0:1: [sdg] tag#0 Sense Key : Not Ready [current]
[41352.552428] sd 6:0:0:1: [sdg] tag#0 <<vendor>>ASC=0xff <<vendor>>ASCQ=0xff
[41352.552436] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 0a 41 4f 58 00 05 e8 00
[41352.552441] I/O error, dev sdg, sector 172052312 op 0x0:(READ) flags 0x80700 phys_seg 138 prio class 2
[41354.590190] sd 6:0:0:1: [sdg] Unaligned partial completion (resid=64, sector_sz=512)
[41354.590207] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 01 86 2e 00 00 05 80 00
[41354.590221] sd 6:0:0:1: [sdg] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[41354.590228] sd 6:0:0:1: [sdg] tag#0 Sense Key : Not Ready [current]
[41354.590239] sd 6:0:0:1: [sdg] tag#0 <<vendor>>ASC=0xff <<vendor>>ASCQ=0xff
[41354.590245] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 01 86 2e 00 00 05 80 00
[41354.590249] I/O error, dev sdg, sector 25570816 op 0x0:(READ) flags 0x80700 phys_seg 11 prio class 2
[41359.425930] sd 6:0:0:1: [sdg] Unaligned partial completion (resid=64, sector_sz=512)
[41359.425937] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 02 26 d6 c0 00 05 80 00
[41359.425943] sd 6:0:0:1: [sdg] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[41359.425945] sd 6:0:0:1: [sdg] tag#0 Sense Key : Not Ready [current]
[41359.425948] sd 6:0:0:1: [sdg] tag#0 <<vendor>>ASC=0xff <<vendor>>ASCQ=0xff
[41359.425950] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 02 26 d6 c0 00 05 80 00
[41359.425951] I/O error, dev sdg, sector 36099776 op 0x0:(READ) flags 0x80700 phys_seg 153 prio class 2
[41359.456259] sd 6:0:0:1: [sdg] Unaligned partial completion (resid=64, sector_sz=512)
[41359.456264] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 02 26 d6 c0 00 00 08 00
[41359.456268] sd 6:0:0:1: [sdg] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[41359.456270] sd 6:0:0:1: [sdg] tag#0 Sense Key : Not Ready [current]
[41359.456272] sd 6:0:0:1: [sdg] tag#0 <<vendor>>ASC=0xff <<vendor>>ASCQ=0xff
[41359.456274] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 02 26 d6 c0 00 00 08 00
[41359.456275] I/O error, dev sdg, sector 36099776 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[41359.696384] sd 6:0:0:1: [sdg] Unaligned partial completion (resid=64, sector_sz=512)
[41359.696389] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 02 27 3f 40 00 07 80 00
[41359.696392] sd 6:0:0:1: [sdg] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[41359.696394] sd 6:0:0:1: [sdg] tag#0 Sense Key : Not Ready [current]
[41359.696396] sd 6:0:0:1: [sdg] tag#0 <<vendor>>ASC=0xff <<vendor>>ASCQ=0xff
[41359.696397] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 02 27 3f 40 00 07 80 00
[41359.696398] I/O error, dev sdg, sector 36126528 op 0x0:(READ) flags 0x84700 phys_seg 15 prio class 2
[41455.176778] usb 1-5: USB disconnect, device number 13
[41595.735693] usb 4-1.4.3: reset SuperSpeed USB device number 5 using xhci_hcd
[41595.760526] sd 6:0:0:1: [sdg] tag#0 FAILED Result: hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK cmd_age=30s
[41595.760544] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 0a 35 f4 40 00 07 80 00
[41595.760549] I/O error, dev sdg, sector 171308096 op 0x0:(READ) flags 0x80700 phys_seg 15 prio class 2
[41596.175658] sd 6:0:0:1: [sdg] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[41596.175674] sd 6:0:0:1: [sdg] tag#0 Sense Key : Unit Attention [current]
[41596.175684] sd 6:0:0:1: [sdg] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[41596.175693] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 0a 35 fb c0 00 07 80 00
[41596.175698] I/O error, dev sdg, sector 171310016 op 0x0:(READ) flags 0x80700 phys_seg 15 prio class 2
[41596.179140] sd 6:0:0:1: [sdg] tag#0 device offline or changed
[41596.179156] I/O error, dev sdg, sector 171308096 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[41596.179197] sd 6:0:0:1: [sdg] tag#0 device offline or changed
[41596.179204] I/O error, dev sdg, sector 167285902 op 0x1:(WRITE) flags 0x100000 phys_seg 1 prio class 2
[41596.179214] Buffer I/O error on dev sdg1, logical block 167283854, lost async page write
[41626.968631] usb 4-1.4.3: reset SuperSpeed USB device number 5 using xhci_hcd
[41626.991594] sd 6:0:0:1: [sdg] tag#0 FAILED Result: hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK cmd_age=30s
[41626.991601] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 0a 36 46 c0 00 07 80 00
[41626.991603] I/O error, dev sdg, sector 171329216 op 0x0:(READ) flags 0x80700 phys_seg 16 prio class 2
[41627.368407] sd 6:0:0:1: [sdg] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[41627.368424] sd 6:0:0:1: [sdg] tag#0 Sense Key : Unit Attention [current]
[41627.368433] sd 6:0:0:1: [sdg] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[41627.368442] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 0a 36 4e 40 00 07 80 00
[41627.368447] I/O error, dev sdg, sector 171331136 op 0x0:(READ) flags 0x80700 phys_seg 16 prio class 2
[41627.370204] sd 6:0:0:1: [sdg] tag#0 device offline or changed
[41627.370221] I/O error, dev sdg, sector 171329216 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[41627.370262] sd 6:0:0:1: [sdg] tag#0 device offline or changed
[41627.370270] I/O error, dev sdg, sector 167285903 op 0x1:(WRITE) flags 0x100000 phys_seg 2 prio class 2
[41627.370280] Buffer I/O error on dev sdg1, logical block 167283855, lost async page write
[41627.370298] Buffer I/O error on dev sdg1, logical block 167283856, lost async page write
[41627.454484] sd 6:0:0:1: [sdg] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[41627.454488] sd 6:0:0:1: [sdg] tag#0 Sense Key : Not Ready [current]
[41627.454491] sd 6:0:0:1: [sdg] tag#0 <<vendor>>ASC=0xff <<vendor>>ASCQ=0xff
[41627.454493] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 0a 36 55 c0 00 03 9a 00
[41627.454494] I/O error, dev sdg, sector 171333056 op 0x0:(READ) flags 0x80700 phys_seg 89 prio class 2
[41631.486551] sd 6:0:0:1: [sdg] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[41631.486567] sd 6:0:0:1: [sdg] tag#0 Sense Key : Unit Attention [current]
[41631.486577] sd 6:0:0:1: [sdg] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[41631.486586] sd 6:0:0:1: [sdg] tag#0 CDB: Read(10) 28 00 0a 44 58 40 00 08 00 00
[41631.486591] I/O error, dev sdg, sector 172251200 op 0x0:(READ) flags 0x80700 phys_seg 101 prio class 2
 


Great, thanks for dmesg result!
But now I don't know which card is it, because letters have changed, /dev/sdg is not present in your original inxi result.

Once you reboot back to Linux, please show me inxi and dmesg results once again:
Code:
sudo dmesg | grep -v UFW
(cut only relevant errors)
Code:
inxi --disk

Thanks for the reply. Whether I use a card reader to read the SD by itself, or in an adapter I can't see a way to read and copy to / from them. My HP workstation does not have a card reader built it.
So you are using some kind of adapter everytime you want to access microSD card.

Option 1:
microSD -> USB adapter -> USB slot on motherboard.
Is that right?

Option 2:
card reader to operate big SD card adapter with microSD card inserted. Is it external card reader on USB, or what is it?

These devices have their own logic and they present themselves in your system as:
Code:
ID-4: /dev/sde vendor: Generic model: SD MMC size: 233.2 GiB type: USB
ID-5: /dev/sdi vendor: Generic model: Mass-Storage size: 119.75 GiB
They can introduce their own problems too.

You need to troubleshoot:
  1. USB connections on motherboard
  2. Your devices: all adapters and card readers
  3. microSD cards themselves.

Please let me know most current results from inxi and dmesg, and I can tell you how to do full write/read/verify pass on each microSD card.
Curious to hear about Windows results too.
 
Results in a Windows machine, three of my multi card readers did NOT work making multiple file transfers, and two (shown in pic) did. I've been using these "failed" readers for years using single writes but never for copying mass amounts of data.



1779719487389.png
 
Card readers are not SD adapters, although they do operate similarly. SD cards go into specialized ports, readers connect via USB. But the transfer speed is limited by the write speed of the microSD card, which is slow. Those cards can be problematic, and one out of ten failures is not totally unexpected. I would guess, and it's only a guess, that the system may be trying to provide data to the card too fast for it to be written, and perhaps some gets lost. I would only use microSD or SD cards in devices that require them, and spend the money required to buy some SSD cards and enclosures. They aren't expensive, and are orders of magnitude faster as well as more reliable.
 


Follow Linux.org

Members online


Top