我怎样才能找出哪个硬盘出现故障

我怎样才能找出哪个硬盘出现故障

当我打开 Nemo 时,我的一个硬盘开始发出噪音。 dmesg 日志显示

[   66.160051] ata6.00: exception Emask 0x50 SAct 0x2000 SErr 0x30802 action 0xe frozen
[   66.160053] ata6.00: irq_stat 0x00400000, PHY RDY changed
[   66.160054] ata6: SError: { RecovComm HostInt PHYRdyChg PHYInt }
[   66.160056] ata6.00: failed command: READ FPDMA QUEUED
[   66.160059] ata6.00: cmd 60/08:68:f8:29:01/00:00:00:00:00/40 tag 13 ncq dma 4096 in
                        res 40/00:68:f8:29:01/00:00:00:00:00/40 Emask 0x50 (ATA bus error)
[   66.160060] ata6.00: status: { DRDY }
[   66.160062] ata6: hard resetting link
[   66.878381] ata6: SATA link down (SStatus 0 SControl 300)
[   67.072157] ata6: hard resetting link
[   70.560148] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   70.567480] ata6.00: configured for UDMA/133
[   70.567491] ata6: EH complete

有没有办法从这个 dmesg 中找到硬盘?我在 arch linux

答案1

我首先以我的菜鸟方式发现了它ls /dev/disk/by-path/pci-0000\:02\:00.1-ata-6(使用选项卡列出所有链接/文件并到达ATA-6)然后lsblk /dev/disk/by-path/pci-0000\:02\:00.1-ata-6获取设备安装点/大小/名称。

相关内容