这对你们来说是一个简单的问题:我怎样才能找到连接到
linux盒子的硬盘?我希望有一个命令可以给我一个很好的所有ata / scsi / etc驱动器列表.
我过去曾用过/ proc /分区来做这个,但是我想知道如果有一个没有分区的驱动器,它是否仍然可以工作.
解决方法
sudo lshw -class磁盘
除了挂载点之外,它还可以为您提
*-cdrom description: CD-R/CD-RW writer product: 52MAXX 3252AJ vendor: Memorex physical id: 0 bus info: scsi@0:0.0.0 logical name: /dev/cdrom logical name: /dev/cdrw logical name: /dev/scd0 logical name: /dev/sr0 version: QWS3 capabilities: removable audio cd-r cd-rw configuration: ansiversion=5 status=nodisc *-disk:0 description: SCSI Disk product: ZIP 100 vendor: IOMEGA physical id: 0.1.0 bus info: scsi@0:0.1.0 logical name: /dev/sda version: 12.A capabilities: removable configuration: ansiversion=5 *-medium physical id: 0 logical name: /dev/sda *-disk:1 description: ATA Disk product: WDC WD800AB-00CB vendor: Western Digital physical id: 1 bus info: scsi@1:0.0.0 logical name: /dev/sdb version: 04.0 serial: WD-WCAA52477019 size: 74GiB (80GB) capabilities: partitioned partitioned:dos configuration: ansiversion=5 signature=90909090
sudo lshw -class disk -html