歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> 關於Unix

怎樣列出系統設備?


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
Copyright © Linux教程網 All Rights Reserved