USBメディアが破損している

USBメディアが破損している

こんにちは、私は2つの同じUSBドライブを持っていますが、完全に間違って動作しています...

複数のファイルをコピーした後、マウントを解除し、キャッシュに書き込むために15分間待ってから(異常にCPUの負荷がゼロ)、放棄してドライブだけを取り外しました。

今は単に利用できません。一部のファイルは存在しないと思いましたが(何も記録されていないため)、次のような動作はありません。

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はデバイスを表示しません。原因ではありません...

次の理由でデバイス全体をゼロに設定しようとしましたが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:~$ 

(ドライブは32 GBである必要があるため、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) を指定します。

ベストアンサー1

おすすめ記事