系统相关
首页 > 系统相关> > linux – lshw列出了我的驱动器,但它没有/ dev文件

linux – lshw列出了我的驱动器,但它没有/ dev文件

作者:互联网

我刚刚有一台专用服务器,它有2个1TB硬盘.但是,当我键入df -h时,我得到以下内容:

[root@sd-56537 ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       916G  688G  182G  80% /
tmpfs           7.8G  368K  7.8G   1% /dev/shm
/dev/sda1       194M   61M  124M  34% /boot

我怎样才能访问第二个驱动器?

[root@sd-56537 ~]# fdisk -l

Disk /dev/sda: 999.7 GB, 999653638144 bytes
255 heads, 63 sectors/track, 121534 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d74f9

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26      121404   974966784   83  Linux
/dev/sda3          121404      121534     1048576   82  Linux swap / Solaris
[root@sd-56537 ~]#

以下是一些尝试过的事情:

[root@sd-56537 ~]# udevadm trigger --verbose --dry-run | grep disk 
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/host0/target0:1:0/0:1:0:0/scsi_disk/0:1:0:0
 [root@sd-56537 ~]# ls -l /dev/disk/by-id; 
total 0 
lrwxrwxrwx 1 root root 9 Jan 2 13:38 scsi-3600508e00000000019b5485ed592d30e -> ../../sda 
lrwxrwxrwx 1 root root 10 Jan 2 13:38 scsi-3600508e00000000019b5485ed592d30e-part1 -> ../../sda1 
lrwxrwxrwx 1 root root 10 Jan 2 13:38 scsi-3600508e00000000019b5485ed592d30e-part2 -> ../../sda2 
lrwxrwxrwx 1 root root 10 Jan 2 13:38 scsi-3600508e00000000019b5485ed592d30e-part3 -> ../../sda3 
lrwxrwxrwx 1 root root 9 Jan 2 13:38 wwn-0x600508e00000000019b5485ed592d30e -> ../../sda 
lrwxrwxrwx 1 root root 10 Jan 2 13:38 wwn-0x600508e00000000019b5485ed592d30e-part1 -> ../../sda1 
lrwxrwxrwx 1 root root 10 Jan 2 13:38 wwn-0x600508e00000000019b5485ed592d30e-part2 -> ../../sda2 
lrwxrwxrwx 1 root root 10 Jan 2 13:38 wwn-0x600508e00000000019b5485ed592d30e-part3 -> ../../sda3
[root@sd-56537 ~]# lshw | grep -A 5 disk 
*-disk:0 UNCLAIMED 
description: ATA Disk 
product: TOSHIBA MG03ACA1 
vendor: Toshiba 
physical id: 0.0.0 
bus info: scsi@0:0.0.0 
-- 
*-disk:1 
description: SCSI Disk 
product: Virtual Disk 
vendor: Dell 
physical id: 1.0.0 
bus info: scsi@0:1.0.0 
-- 
*-disk:2 UNCLAIMED 
description: ATA Disk 
product: TOSHIBA MG03ACA1 
vendor: Toshiba 
physical id: 0.1.0 
bus info: scsi@0:0.1.0 
[root@sd-56537 ~]#
[root@sd-56537 ~]# blkid 
/dev/sda2: UUID="b93f6b9d-163e-4231-bac0-204ce290f0af" TYPE="ext4" 
/dev/sda1: UUID="858364a4-263a-4e78-9ec5-ed6b23471377" TYPE="ext4" 
/dev/sda3: UUID="6a4a69e0-6378-4c65-b7ba-e78e0b38013a" TYPE="swap" 
[root@sd-56537 ~]#

解决方法:

lshw输出将缺失的磁盘列为UNCLAIMED

a node is marked as UNCLAIMED if no specific support for it has been
loaded (or lshw has been unable to identify the driver)

磁盘可能已连接,但可能未正确连接或可能有故障,磁盘驱动程序无法识别磁盘.启动后运行“dmesg | grep 0:0.1.0”可能会显示更多细节.

标签:linux,centos,udev,hard-disk
来源: https://codeday.me/bug/20190813/1648993.html