onde ou como ver se os dados ainda estão sendo transferidos via usb para armazenamento em massa

1

A transferência de dados para o meu mp3 player é muito lenta via conexão USB.

Eu tenho um mp3 player da Samsung (YP-M1JCB / EDC) que conectei ao meu Fedora linux (a conexão do pc no mp3 player está configurada para MSC, ou seja, dispositivo de armazenamento em massa) classe).

Quando eu conecto o mp3 player ao meu computador com um cabo USB, com dmesg eu vejo isso:

[1351555.669080] usb 2-2: new high-speed USB device number 17 using ehci-pci
[1351555.812993] usb 2-2: New USB device found, idVendor=04e8, idProduct=5123
[1351555.813047] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1351555.813059] usb 2-2: Product: YP-M1
[1351555.813065] usb 2-2: Manufacturer: Samsung Electronics
[1351555.813071] usb 2-2: SerialNumber: b37c03ac0f1647c2a9720aae4e913080
[1351555.896394] scsi47 : usb-storage 2-2:1.0
[1351556.899771] scsi 47:0:0:0: Direct-Access     Samsung  YP-M1            1.0  PQ: 0 ANSI: 0
[1351556.900481] scsi 47:0:0:1: Direct-Access     Samsung  microSD          1.0  PQ: 0 ANSI: 0
[1351556.902422] sd 47:0:0:0: Attached scsi generic sg3 type 0
[1351556.904403] sd 47:0:0:0: [sdc] 1896703 4096-byte logical blocks: (7.76 GB/7.23 GiB)
[1351556.904617] sd 47:0:0:1: Attached scsi generic sg4 type 0
[1351556.904922] sd 47:0:0:0: [sdc] Write Protect is off
[1351556.904930] sd 47:0:0:0: [sdc] Mode Sense: 00 06 00 00
[1351556.907342] sd 47:0:0:0: [sdc] Asking for cache data failed
[1351556.907361] sd 47:0:0:0: [sdc] Assuming drive cache: write through
[1351556.910613] sd 47:0:0:1: [sdd] Attached SCSI removable disk
[1351556.911467] sd 47:0:0:0: [sdc] 1896703 4096-byte logical blocks: (7.76 GB/7.23 GiB)
[1351556.912448] sd 47:0:0:0: [sdc] Asking for cache data failed
[1351556.912457] sd 47:0:0:0: [sdc] Assuming drive cache: write through
[1351556.913372]  sdc: sdc1
[1351556.916978] sd 47:0:0:0: [sdc] 1896703 4096-byte logical blocks: (7.76 GB/7.23 GiB)
[1351556.919093] sd 47:0:0:0: [sdc] Asking for cache data failed
[1351556.919111] sd 47:0:0:0: [sdc] Assuming drive cache: write through
[1351556.919120] sd 47:0:0:0: [sdc] Attached SCSI removable disk

Parece ok para mim. Eu então montei o dispositivo /dev/sdc1 :

sudo mount -o uid=erik /dev/sdc1 /mnt/usb-stick/

Quando eu crio um pequeno arquivo de texto no dispositivo e o desmonto, parece não haver problema. Eu posso ler o arquivo de texto no dispositivo (ele tem um aplicativo de leitura de texto).

Mas quando copio arquivos maiores (arquivos mp3) para o dispositivo, demora uma eternidade. Bem, a linha de comando

cp supermusic.mp3 /mnt/usb-stick/Music/

termina depois de alguns segundos. Mas quando tento desmontar o dispositivo, ele nunca termina. dmesg mostra:

[1352056.822086] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352087.878103] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352118.854062] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352149.830105] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352180.870081] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352211.846060] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352211.969584] sd 48:0:0:0: [sdc] Unhandled error code
[1352211.969601] sd 48:0:0:0: [sdc]  
[1352211.969607] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK
[1352211.969612] sd 48:0:0:0: [sdc] CDB: 
[1352211.969617] Write(10): 2a 00 00 1b 51 02 00 00 1e 00
[1352211.969634] end_request: I/O error, dev sdc, sector 14321680
[1352242.822056] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352273.862064] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352304.838066] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352335.814100] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352366.854074] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352397.830096] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352397.954124] sd 48:0:0:0: [sdc] Unhandled error code
[1352397.954141] sd 48:0:0:0: [sdc]  
[1352397.954147] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK
[1352397.954153] sd 48:0:0:0: [sdc] CDB: 
[1352397.954157] Write(10): 2a 00 00 1b 51 20 00 00 1e 00
[1352397.954174] end_request: I/O error, dev sdc, sector 14321920
[1352428.870469] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352459.846068] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352490.822088] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352521.862078] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352552.838052] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352583.878077] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352584.005386] sd 48:0:0:0: [sdc] Unhandled error code
[1352584.005401] sd 48:0:0:0: [sdc]  
[1352584.005407] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK
[1352584.005413] sd 48:0:0:0: [sdc] CDB: 
[1352584.005417] Write(10): 2a 00 00 1b 51 3e 00 00 1e 00
[1352584.005434] end_request: I/O error, dev sdc, sector 14322160
[1352614.854055] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352628.359667] usb 1-2: USB disconnect, device number 46
[1352645.830068] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352676.870073] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352707.846090] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352738.822066] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352769.862077] usb 2-2: reset high-speed USB device number 18 using ehci-pci
[1352769.985579] sd 48:0:0:0: [sdc] Unhandled error code
[1352769.985596] sd 48:0:0:0: [sdc]  
[1352769.985601] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK
[1352769.985608] sd 48:0:0:0: [sdc] CDB: 
[1352769.985611] Write(10): 2a 00 00 1b 51 5c 00 00 1e 00
[1352769.985630] end_request: I/O error, dev sdc, sector 14322400

Parece haver alguns problemas, mas por quê? Eu conectei muitos outros dispositivos de armazenamento em massa e nunca tive um problema.

Como ver se os dados ainda são transferidos? E quão rápido? Se eu for para / mnt / usb-stick / Music, o arquivo parece estar lá (tamanho grande).

PS: Quando eu removo o cabo USB depois de esperar muito tempo, quando reconecto e inicio o fsck.vfat na partição, ele encontra muitos erros com os glifos chineses, o que leva muito tempo para ser corrigido.

    
por erik 08.09.2015 / 13:52

1 resposta

2

A reconfiguração da conexão USB indica que há algo errado com seu dispositivo USB (ou talvez a conexão elétrica). O fato de outras unidades não exibirem o problema apóia essa teoria.

Os registros confirmam isso. (“End_request: erro de E / S, dev sdc,…”, etc.)

Descarte ou não use mais para coisas importantes.

    
por 08.09.2015 / 13:57