USB 미디어가 손상됨

USB 미디어가 손상됨

안녕하세요 여러분, 저는 두 개의 동일한 USB 드라이브를 가지고 있는데 완전히 잘못 작동하고 있습니다...

여러 파일을 복사한 후 마운트를 해제하고 캐시에 쓰기 위해 15분 동안 기다린 후(이상하게도 CPU 로드가 0임) 포기하고 드라이브만 제거했습니다.

이제는 단순히 사용할 수 없습니다. 일부 파일은 존재하지 않는다고 생각했지만(아무것도 기록되지 않았기 때문에) 다음과 같은 동작은 없습니다.

lsusb드라이버를 설치하기 전 출력

Bus 008 Device 002: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 24ae:1100  
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 05e3:0745 Genesys Logic, Inc. Logilink CR0012
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 17ef:6082 Lenovo 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

이제 (lsusb 출력에서 ​​차이점을 확인하는 데 약 5초가 걸리므로 명령을 몇 번 실행해야 합니다(실제로 왜?))

Bus 008 Device 002: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 24ae:1100  
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 05e3:0745 Genesys Logic, Inc. Logilink CR0012
Bus 001 Device 008: ID ffff:1201  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 17ef:6082 Lenovo 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ID가 24ae:1100인 장치가 카드 리더라는 것을 알고 있으므로 ffff:1201은 펜 드라이브임에 틀림없습니다. lsscsi -s미디어를 삽입하기 전 출력:

[0:0:0:0]    cd/dvd  ASUS     DRW-24D5MT       1.10  /dev/sr0        -
[2:0:0:0]    disk    ATA      ST1000DM003-1SB1 CC43  /dev/sda   1.00TB
[3:0:0:0]    disk    ATA      INTENSO SATA III 61.3  /dev/sdb    240GB
[6:0:0:0]    disk    Intenso  USB 3.0 Device   0     /dev/sdc    500GB
[7:0:0:0]    disk    Generic  STORAGE DEVICE   0903  /dev/sdd        -

후에:

[0:0:0:0]    cd/dvd  ASUS     DRW-24D5MT       1.10  /dev/sr0        -
[2:0:0:0]    disk    ATA      ST1000DM003-1SB1 CC43  /dev/sda   1.00TB
[3:0:0:0]    disk    ATA      INTENSO SATA III 61.3  /dev/sdb    240GB
[6:0:0:0]    disk    Intenso  USB 3.0 Device   0     /dev/sdc    500GB
[7:0:0:0]    disk    Generic  STORAGE DEVICE   0903  /dev/sdd        -
[8:0:0:0]    disk    NAND     USB2DISK         0.00  /dev/sde        -

분명히 펜 드라이브를 감지하고 있지만 크기를 확인할 수 없습니다.

시스템 로그 파일의 끝은 다음과 같습니다.


Oct 15 17:17:01 DESKTOP CRON[6093]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Oct 15 17:22:13 DESKTOP kernel: [ 3055.640984] usb 1-3: new high-speed USB device number 8 using ehci-pci
Oct 15 17:22:13 DESKTOP kernel: [ 3055.797273] usb 1-3: New USB device found, idVendor=ffff, idProduct=1201, bcdDevice= 0.00
Oct 15 17:22:13 DESKTOP kernel: [ 3055.797278] usb 1-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Oct 15 17:22:13 DESKTOP kernel: [ 3055.797692] usb-storage 1-3:1.0: USB Mass Storage device detected
Oct 15 17:22:13 DESKTOP kernel: [ 3055.798138] scsi host8: usb-storage 1-3:1.0
Oct 15 17:22:13 DESKTOP mtp-probe: checking bus 1, device 8: "/sys/devices/pci0000:00/0000:00:12.2/usb1/1-3"
Oct 15 17:22:13 DESKTOP mtp-probe: bus: 1, device: 8 was not an MTP device
Oct 15 17:22:14 DESKTOP upowerd[1603]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3:1.0
Oct 15 17:22:14 DESKTOP upowerd[1603]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:12.2/usb1/1-3
Oct 15 17:22:14 DESKTOP kernel: [ 3056.813556] scsi 8:0:0:0: Direct-Access     NAND     USB2DISK         0.00 PQ: 0 ANSI: 4
Oct 15 17:22:14 DESKTOP kernel: [ 3056.814000] sd 8:0:0:0: Attached scsi generic sg5 type 0
Oct 15 17:22:14 DESKTOP kernel: [ 3056.816168] sd 8:0:0:0: [sde] Attached SCSI removable disk
Oct 15 17:25:28 DESKTOP kernel: [ 3250.754042] usb 1-3: USB disconnect, device number 8
Oct 15 17:25:29 DESKTOP upowerd[1603]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3:1.0
Oct 15 17:25:29 DESKTOP upowerd[1603]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:12.2/usb1/1-3
Oct 15 17:26:15 DESKTOP kernel: [ 3297.441199] usb 1-3: new high-speed USB device number 9 using ehci-pci
Oct 15 17:26:15 DESKTOP kernel: [ 3297.597388] usb 1-3: New USB device found, idVendor=ffff, idProduct=1201, bcdDevice= 0.00
Oct 15 17:26:15 DESKTOP kernel: [ 3297.597393] usb 1-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Oct 15 17:26:15 DESKTOP kernel: [ 3297.597842] usb-storage 1-3:1.0: USB Mass Storage device detected
Oct 15 17:26:15 DESKTOP kernel: [ 3297.600635] scsi host8: usb-storage 1-3:1.0
Oct 15 17:26:15 DESKTOP mtp-probe: checking bus 1, device 9: "/sys/devices/pci0000:00/0000:00:12.2/usb1/1-3"
Oct 15 17:26:15 DESKTOP mtp-probe: bus: 1, device: 9 was not an MTP device
Oct 15 17:26:15 DESKTOP upowerd[1603]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3:1.0
Oct 15 17:26:15 DESKTOP upowerd[1603]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:12.2/usb1/1-3
Oct 15 17:26:16 DESKTOP kernel: [ 3298.622108] scsi 8:0:0:0: Direct-Access     NAND     USB2DISK         0.00 PQ: 0 ANSI: 4
Oct 15 17:26:16 DESKTOP kernel: [ 3298.622653] sd 8:0:0:0: Attached scsi generic sg5 type 0
Oct 15 17:26:16 DESKTOP kernel: [ 3298.625530] sd 8:0:0:0: [sde] Attached SCSI removable disk
Oct 15 17:27:34 DESKTOP gvfsd-metadata[1771]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed

어느 시점에서는 장치가 제거되었다가 다시 연결되었다는 메시지가 표시되며(물론 지금까지 이 작업을 여러 번 수행했기 때문에) 다시 연결이 끊어진 것으로 표시되지 않습니다.

GParted는 드라이브를 표시하지 않습니다(크기를 확인할 수 없기 때문입니다). Windows 7 및 Windows 10에서는 이를 표시 diskmgmt.msc하지만 사용할 수 있는 크기가 없습니다(둘 다 삽입된 미디어가 없다고 생각합니다(카드 리더기와 비슷하지만 확실히 그렇지 않습니다). Testdisk는 장치를 표시하지 않습니다. 수동으로 마운트 장치도 가능한 원인이 아닙니다 ...

다음과 같은 이유로 전체 장치를 0으로 설정하려는 시도가 dd실패했습니다.

marc@DESKTOP:~$ sudo dd if=/dev/zero of=/dev/sde count=32G
[sudo] Passwort für marc: 
dd: konnte '/dev/sde' nicht öffnen: Kein Medium gefunden
marc@DESKTOP:~$ 

(드라이브는 32GB여야 하므로 count 매개변수가 실제로 의미가 있습니다.)

기본 SCSI 장치에 대한 지식을 사용하여 다음을 수행할 수 있습니다.

marc@DESKTOP:~$ sudo dd if=/dev/zero of=/dev/sg5 count=32G
dd: Schreiben in '/dev/sg5': Das numerische Argument ist außerhalb des Definitionsbereiches
2+0 Datensätze ein
1+0 Datensätze aus
512 Bytes kopiert, 0,000349558 s, 1,5 MB/s
marc@DESKTOP:~$ 

그래서 적어도 뭔가가 일어나고 있습니다. 비록 count 매개변수가 범위를 벗어났지만, 제 생각에는 매우 짜증나는 일입니다(내가 시도한 모든 것이 > 1이 범위를 벗어났습니다...)

출력은 dmesg다음에서 끝납니다.

[ 1837.253976] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 1837.254176] scsi host8: usb-storage 1-3:1.0
[ 1838.277632] scsi 8:0:0:0: Direct-Access     General  USB Flash Disk   1.0  PQ: 0 ANSI: 2
[ 1838.278571] sd 8:0:0:0: Attached scsi generic sg5 type 0
[ 1838.279953] sd 8:0:0:0: [sde] 7831552 512-byte logical blocks: (4.01 GB/3.73 GiB)
[ 1838.281670] sd 8:0:0:0: [sde] Write Protect is off
[ 1838.281675] sd 8:0:0:0: [sde] Mode Sense: 03 00 00 00
[ 1838.283098] sd 8:0:0:0: [sde] No Caching mode page found
[ 1838.283105] sd 8:0:0:0: [sde] Assuming drive cache: write through
[ 1838.288217]  sde: sde1
[ 1838.292686] sd 8:0:0:0: [sde] Attached SCSI removable disk
[ 1889.632142] usb 1-3: USB disconnect, device number 7
[ 3055.640984] usb 1-3: new high-speed USB device number 8 using ehci-pci
[ 3055.797273] usb 1-3: New USB device found, idVendor=ffff, idProduct=1201, bcdDevice= 0.00
[ 3055.797278] usb 1-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3055.797692] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 3055.798138] scsi host8: usb-storage 1-3:1.0
[ 3056.813556] scsi 8:0:0:0: Direct-Access     NAND     USB2DISK         0.00 PQ: 0 ANSI: 4
[ 3056.814000] sd 8:0:0:0: Attached scsi generic sg5 type 0
[ 3056.816168] sd 8:0:0:0: [sde] Attached SCSI removable disk
[ 3250.754042] usb 1-3: USB disconnect, device number 8
[ 3297.441199] usb 1-3: new high-speed USB device number 9 using ehci-pci
[ 3297.597388] usb 1-3: New USB device found, idVendor=ffff, idProduct=1201, bcdDevice= 0.00
[ 3297.597393] usb 1-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3297.597842] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 3297.600635] scsi host8: usb-storage 1-3:1.0
[ 3298.622108] scsi 8:0:0:0: Direct-Access     NAND     USB2DISK         0.00 PQ: 0 ANSI: 4
[ 3298.622653] sd 8:0:0:0: Attached scsi generic sg5 type 0
[ 3298.625530] sd 8:0:0:0: [sde] Attached SCSI removable disk
marc@DESKTOP:~$ 

fsck 결과는 다음과 같습니다.

sudo fsck /dev/sde
fsck von util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
fsck.ext2: Kein Medium gefunden beim Versuch, /dev/sde zu öffnen

Der Superblock ist unlesbar bzw. beschreibt kein gültiges ext2/ext3/ext4-
Dateisystem. Wenn das Gerät gültig ist und ein ext2/ext3/ext4-
Dateisystem (kein swap oder ufs usw.) enthält, dann ist der Superblock
beschädigt, und Sie könnten versuchen, e2fsck mit einem anderen Superblock
zu starten:
    e2fsck -b 8193 <Gerät>
 oder
    e2fsck -b 32768 <Gerät>

e2fsck도 같은 일을 합니다...

총 길이 DR제 책상 위에는 64GB 정도의 USB 저장 장치가 있는데 모두 같은 이유로 작동하지 않고 같은 증상으로 사용할 수 없게 되었습니다. 어떤 아이디어가 있나요? ! 미리 감사드립니다!

편집 1: 나는 sg_dd를 사용하여 모든 것을 0으로 만들 수 있다고 생각했지만 그렇지 않습니다.

marc@DESKTOP:~$ sudo sg_dd if=/dev/sg5 count=67108864
Assume default 'bs' (block size) of 512 bytes
Device (r) not ready
sg_read failed, at or after lba=0 [0x0]
Some error occurred,  remaining block count=67108864
0+0 records in
0+0 records out
1 unrecovered error(s)
marc@DESKTOP:~$ sudo sg_dd if=/dev/sg5 count=67108864
Assume default 'bs' (block size) of 512 bytes
Device (r) not ready
sg_read failed, at or after lba=0 [0x0]
Some error occurred,  remaining block count=67108864
0+0 records in
0+0 records out
1 unrecovered error(s)
marc@DESKTOP:~$ sudo sg_dd if=/dev/zero of=/dev/sg5 count=67108864
Assume default 'bs' (block size) of 512 bytes
device not ready (w)
sg_write failed, seek=0
Some error occurred,  remaining block count=67108864
128+0 records in
0+0 records out
1 unrecovered error(s)
marc@DESKTOP:~$ sudo sg_dd if=/dev/zero of=/dev/sg5 bs=128 count=67108864
device not ready (w)
sg_write failed, seek=0
Some error occurred,  remaining block count=67108864
128+0 records in
0+0 records out
1 unrecovered error(s)
marc@DESKTOP:~$ 

32G/512는 67108864개의 블록(32*1024*1024*1024/512)을 지정합니다.

관련 정보