我正在寻找 Fedora 的 scsitools 包。Ubuntu 有一个名为“scsitools”的 .deb。具体来说,我需要找出连接到机器的硬盘的供应商、序列号等。
scsiinfo -i <device>
并且scsiinfo -s <device>
似乎在基于 debian 的系统上很好地完成了任务,但我无法找到 .rpm 包。
我在哪里可以找到这个包,或者在 Fedora 上是否有其他方式可以获取此信息?
答案1
看起来这个sg3_utils
包就是你正在寻找的:
Name : sg3_utils
Version : 1.25
Release : 5.el5
Architecture: x86_64
Size : 1133460
Packager : None
Group : Utilities/System
URL : http://sg.danny.cz/sg/sg3_utils.html
Repository : base
Summary : Utils for Linux's SCSI generic driver devices + raw devices
Description :
Collection of Linux utilities for devices that use the SCSI command set.
Includes utilities to copy data based on "dd" syntax and semantics (called
sg_dd, sgp_dd and sgm_dd); check INQUIRY data and VPD pages (sg_inq); check
mode and log pages (sginfo, sg_modes and sg_logs); spin up and down
disks (sg_start); do self tests (sg_senddiag); and various other functions.
See the README, CHANGELOG and COVERAGE files. Requires the linux kernel 2.4
series or later. In the 2.4 series SCSI generic device names (e.g. /dev/sg0)
must be used. In the 2.6 series other device names may be used as
well (e.g. /dev/sda).
# sginfo /dev/sda
INQUIRY response (cmd: 0x12)
----------------------------
Device Type 0
Vendor: ATA
Product: WDC WD2502ABYS-0
Revision level: 02.0