红联Linux门户
Linux帮助

怎样列出系统设备?

发布时间:2006-08-22 10:34:09来源:红联作者:wuhu911
1、/etc/path_to_inst
对于每个设备,系统记录它的物理名和缩略名在/etc/path_to_inst中。

# Caution! This file contains critical kernel state
#
"/pseudo" 0 "pseudo"
"/scsi_vhci" 0 "scsi_vhci"
"/options" 0 "options"
"/pci@1f,4000" 0 "pcipsy"
"/pci@1f,4000/scsi@3" 0 "glm"
"/pci@1f,4000/scsi@3/sd@0,0" 2 "sd"
"/pci@1f,4000/scsi@3/sd@6,0" 6 "sd"
"/pci@1f,4000/scsi@3/sd@8,0" 7 "sd"
"/pci@1f,4000/scsi@3/sd@c,0" 11 "sd"

2、prtconf 命令
prtconf命令显示系统配置信息。

System Configuration: Sun Microsystems sun4u
Memory size: 1024 Megabytes
System Peripherals (Software Nodes):
SUNW,Ultra-250
scsi_vhci, instance #0
packages (driver not attached)
terminal-emulator (driver not attached)
deblocker (driver not attached)
obp-tftp (driver not attached)
disk-label (driver not attached)
SUNW,builtin-drivers (driver not attached)
sun-keyboard (driver not attached)
ufs-file-system (driver not attached)
chosen (driver not attached)
openprom (driver not attached)

3、dmesg
收集系统诊断信息。

Aug 10 10:30:50 cat initiator SCSI ID now 5
Aug 10 10:30:50 cat Rev. 5 Symbios 53c876 found.

4、对于磁盘信息可以使用 format 命令

AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@1f,4000/scsi@3/sd@0,0
1. c0t8d0
/pci@1f,4000/scsi@3/sd@8,0
文章评论

共有 1 条评论

  1. bear10214 于 2006-08-23 08:21:56发表:

    好象有点深了,看不懂