Eu tenho dois players USB / MP3 idênticos. Um está corrompido (removido sem desmontar). Eu gostaria de consertar o dispositivo corrompido clonando o dispositivo de trabalho.
O dispositivo corrompido relata isso em / var / log / messages
Jun 13 11:17:17 underwood kernel: [1131377.098026] usb 2-3.4.2: new high-speed USB device number 25 using xhci_hcd
Jun 13 11:17:17 underwood kernel: [1131377.198955] usb 2-3.4.2: New USB device found, idVendor=054c, idProduct=0385
Jun 13 11:17:17 underwood kernel: [1131377.198957] usb 2-3.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
Jun 13 11:17:17 underwood kernel: [1131377.198958] usb 2-3.4.2: Product: WALKMAN
Jun 13 11:17:17 underwood kernel: [1131377.198959] usb 2-3.4.2: Manufacturer: Sony
Jun 13 11:17:17 underwood kernel: [1131377.198960] usb 2-3.4.2: SerialNumber: 31FF0001A2C8D6460002D9C8C29D1000
Jun 13 11:17:17 underwood kernel: [1131377.199686] usb-storage 2-3.4.2:1.0: USB Mass Storage device detected
Jun 13 11:17:17 underwood kernel: [1131377.199784] scsi host5: usb-storage 2-3.4.2:1.0
Jun 13 11:17:17 underwood gvfs-gphoto2-vo[5349]: device (null) has no BUSNUM property, ignoring
Jun 13 11:17:34 underwood gvfsd[5197]: dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): Unable to open MTP device '[usb:002,025]'
Jun 13 11:17:34 underwood gnome-shell[5194]: JS LOG: Unable to mount volume WALKMAN: Gio.IOErrorEnum: Unable to open MTP device '[usb:002,025]'
O dispositivo de trabalho relata isso:
Jun 13 10:50:14 underwood kernel: [1129754.410405] usb 2-3.4.2: reset high-speed USB device number 23 using xhci_hcd
Jun 13 10:50:31 underwood kernel: [1129770.958652] usb 2-3.4.2: USB disconnect, device number 23
Jun 13 10:51:24 underwood kernel: [1129824.175352] usb 2-3.4.2: new high-speed USB device number 24 using xhci_hcd
Jun 13 10:51:24 underwood kernel: [1129824.275818] usb 2-3.4.2: New USB device found, idVendor=054c, idProduct=0385
Jun 13 10:51:24 underwood kernel: [1129824.275820] usb 2-3.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
Jun 13 10:51:24 underwood kernel: [1129824.275821] usb 2-3.4.2: Product: WALKMAN
Jun 13 10:51:24 underwood kernel: [1129824.275821] usb 2-3.4.2: Manufacturer: Sony
Jun 13 10:51:24 underwood kernel: [1129824.275822] usb 2-3.4.2: SerialNumber: 10FA1306649000
Jun 13 10:51:24 underwood kernel: [1129824.276483] usb-storage 2-3.4.2:1.0: USB Mass Storage device detected
Jun 13 10:51:24 underwood kernel: [1129824.276567] scsi host5: usb-storage 2-3.4.2:1.0
Jun 13 10:51:25 underwood gvfs-gphoto2-vo[5349]: device (null) has no BUSNUM property, ignoring
O dispositivo de trabalho é montado corretamente em: / run / user / 1000 / gvfs / mtp: host =% 5Busb% 3A002% 2C026% 5D /
O corrupto não, claro.
Eu estava planejando usar dd para fazer um bit para cópia de bit, mas não consigo descobrir como encontrar o número do dispositivo em / dev / como faria com um disco rígido tradicional ou USB.
Alguém poderia sugerir alguns passos?
Atualização: ATTEMPT 2 (usando um kernel Linux mais antigo para montar como armazenamento USB):
Depois de ler este artigo sobre a montagem como MMS em vez de MTP , eu tenho isso quando eu conecto os dispositivos:
Dispositivo de trabalho:
kernel: usb 1-1.1: new high speed USB device using fsl-ehci and address 3
kernel: usb 1-1.1: configuration #1 chosen from 1 choice
kernel: scsi4 : SCSI emulation for USB Mass Storage devices
kernel: scsi 4:0:0:0: Direct-Access SONY WALKMAN 1.00 PQ: 0 ANSI: 4
kernel: sd 4:0:0:0: Attached scsi generic sg1 type 0
kernel: sd 4:0:0:0: [sdb] 1919232 2048-byte logical blocks: (3.93 GB/3.66 GiB)
kernel: sd 4:0:0:0: [sdb] Write Protect is off
kernel: sd 4:0:0:0: [sdb] 1919232 2048-byte logical blocks: (3.93 GB/3.66 GiB)
kernel: sdb: sdb1
kernel: sd 4:0:0:0: [sdb] 1919232 2048-byte logical blocks: (3.93 GB/3.66 GiB)
kernel: sd 4:0:0:0: [sdb] Attached SCSI removable disk
Eu usei dd if = / dev / sdb de = / tmp / walkman.clone para fazer um clone da unidade
E isso quando conectei o dispositivo corrompido:
kernel: usb 1-1.1: new high speed USB device using fsl-ehci and address 4
kernel: usb 1-1.1: configuration #1 chosen from 1 choice
kernel: scsi5 : SCSI emulation for USB Mass Storage devices
kernel: scsi 5:0:0:0: Direct-Access SONY WALKMAN 1.00 PQ: 0 ANSI: 4
kernel: sd 5:0:0:0: Attached scsi generic sg1 type 0
kernel: sd 5:0:0:0: [sdb] Attached SCSI removable disk
Infelizmente: dd if = / tmp / walkman.clone de = / dev / sdb resulta em
dd: opening '/dev/sdb': No medium found
cfdisk / dev / sbd também afirma que nenhuma mídia foi encontrada