通过 IDE->USB 适配器连接旧的 scsi 磁盘,在 syslog 中识别,但在 fdisk 中识别不到?

通过 IDE->USB 适配器连接旧的 scsi 磁盘,在 syslog 中识别,但在 fdisk 中识别不到?

我有一个旧硬盘,我正在尝试在回收/捐赠之前检查数据和格式。我正在使用 IDE 转 USB 适配器将磁盘连接到我的 Linux 笔记本电脑。当我插入时,我在系统日志中看到以下内容:

Mar 19 15:01:35 precision kernel: [62196.815766] usb 1-1: new high-speed USB device number 26 using xhci_hcd
Mar 19 15:01:36 precision kernel: [62196.966683] usb 1-1: New USB device found, idVendor=152d, idProduct=2338
Mar 19 15:01:36 precision kernel: [62196.966689] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
Mar 19 15:01:36 precision kernel: [62196.966693] usb 1-1: Product: USB to ATA/ATAPI Bridge
Mar 19 15:01:36 precision kernel: [62196.966697] usb 1-1: Manufacturer: JMicron
Mar 19 15:01:36 precision kernel: [62196.966700] usb 1-1: SerialNumber: 152D203380B6
Mar 19 15:01:36 precision kernel: [62196.968421] usb-storage 1-1:1.0: USB Mass Storage device detected
Mar 19 15:01:36 precision kernel: [62196.968714] scsi host2: usb-storage 1-1:1.0
Mar 19 15:01:36 precision mtp-probe: checking bus 1, device 26: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
Mar 19 15:01:36 precision mtp-probe: bus: 1, device: 26 was not an MTP device
Mar 19 15:01:36 precision colord-sane: [bjnp] create_broadcast_socket: ERROR - bind socket to local address failed - Address already in use
Mar 19 15:01:36 precision colord-sane: [bjnp] create_broadcast_socket: ERROR - bind socket to local address failed - Cannot assign requested address
Mar 19 15:01:36 precision colord-sane: [bjnp] create_broadcast_socket: ERROR - bind socket to local address failed - Address already in use
Mar 19 15:01:37 precision kernel: [62197.984793] scsi 2:0:0:0: Direct-Access                                    PQ: 0 ANSI: 2 CCS
Mar 19 15:01:37 precision kernel: [62197.985346] sd 2:0:0:0: Attached scsi generic sg0 type 0
Mar 19 15:01:37 precision kernel: [62197.986216] sd 2:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
Mar 19 15:01:37 precision kernel: [62197.986221] sd 2:0:0:0: [sda] 0-byte physical blocks
Mar 19 15:01:37 precision kernel: [62197.986752] sd 2:0:0:0: [sda] Test WP failed, assume Write Enabled
Mar 19 15:01:37 precision kernel: [62197.987244] sd 2:0:0:0: [sda] Asking for cache data failed
Mar 19 15:01:37 precision kernel: [62197.987251] sd 2:0:0:0: [sda] Assuming drive cache: write through
Mar 19 15:01:37 precision kernel: [62197.990117] sd 2:0:0:0: [sda] Attached SCSI disk

但它没有出现在lsblkor中fdisk。它确实出现在lsusb

Bus 001 Device 026: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge

当我尝试对其运行 fdisk 时,我得到:

precision ~ # fdisk -l /dev/sda
fdisk: cannot open /dev/sda: No such file or directory

当我尝试用 dd 写入它时,我得到:

precision ~ # dd if=/dev/zero of=/dev/sda bs=512K
dd: error writing '/dev/sda': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0.000915617 s, 0.0 kB/s

这是怎么回事?磁盘坏了吗?

系统信息:

System:    Host: precision Kernel: 4.15.0-43-generic x86_64 (64 bit) Desktop: Cinnamon 3.4.6
           Distro: Linux Mint 18.2 Sonya
Machine:   System: Dell (portable) product: Precision 5520
           Mobo: Dell model: 04GFKY v: A00 Bios: Dell v: 1.5.0 date: 08/30/2017
CPU:       Quad core Intel Xeon E3-1505M v6 (-HT-MCP-) speed/max: 900/4000 MHz
Graphics:  Card-1: Intel HD Graphics P630
           Card-2: NVIDIA GM107GLM [Quadro M1200 Mobile]
           Display Server: X.org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           tty size: 95x24 Advanced Data: N/A for root
Network:   Card: Intel Wireless 8265 / 8275 driver: iwlwifi
Drives:    HDD Total Size: NA (-)
Info:      Processes: 294 Uptime: 23:09 Memory: 3856.0/32018.6MB
           Client: Shell (bash) inxi: 2.2.35

答案1

经过无数次的重试,我终于能够让它出现在lsblk和中fdisk。然而突然又“断线”了。在系统日志中,在断开连接之前存在大量分区/IO 错误。这种模式重复了几次。

所以答案是肯定的,这几乎肯定是一个坏/有故障的磁盘。

相关内容