分类: 系统运维
2011-11-14 14:50:07
1.查看系统上挂载的硬盘,光驱,一般都是c*t*d*,没有s*的那些
iostat -En
-bash-3.00$ iostat -En
c0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: WDC WD5000AAKS- Revision: Serial No: WD-WCAWFC0 Size: 500.10GB <500101152768 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0
c1t0d0 Soft Errors: 2 Hard Errors: 0 Transport Errors: 0
Vendor: HL-DT-ST Product: DVD+-RW GH50N Revision: B102 Serial No:
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 2 Predictive Failure Analysis: 0
2.弹出光驱
eject cdrom
3.设置光驱挂载
3.1 Solaris一般都会自己挂载光驱,记载的默认路径是/cdrom.要取消自动挂载,需要运行
/etc/init.d/volmgt stop
#取消之后使用eject cdrom就不会弹出光驱,并且有可能提示找不到设备
3.2 回复挂载光驱用如下命令:
/etc/init.d/volmgt start