歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Solaris11掛載光盤

Solaris11掛載光盤

日期:2017/2/28 14:43:24   编辑:Linux教程

Solaris11掛載光盤

將ISO寫入光盤
cdrecord sol-11_1-repo-full.iso

彈出光盤
root@solaris:/media# eject cdrom
cdrom /dev/dsk/c7t0d0s2 ejected

Solaris10/11都是自動掛載光盤默認位置是
/cdrom

手動掛在如下
root@solaris:/media# eject cdrom #放光盤時彈出光驅,提示信息如下
cdrom /dev/dsk/c7t0d0s2 ejected #這個就是光驅的位置
root@solaris:/cdrom# iostat -En #這個命令能看出來本地掛在的所有硬盤光驅等等
c8t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 #這個是硬盤
Vendor: VMware Product: Virtual disk Revision: 1.0 Serial No:
Size: 42.95GB <42949672960 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 68 Predictive Failure Analysis: 0
c7t0d0 Soft Errors: 0 Hard Errors: 73 Transport Errors: 0 #這個是光驅,用vmware掛在的iso文件,光驅的名字是c7t0d0,上邊跳出\
Vendor: NECVMWar Product: VMware IDE CDR10 Revision: 1.00 Serial No: :的是/dev/dsk/c7t0d0s2後邊多了s2兩個字符應該就是solaris的默認\
Size: 7.33GB <7331647488 bytes> :命名規則了
Media Error: 0 Device Not Ready: 73 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
root@solaris:/cdrom# ls -l /dev/dsk/c7t0d0s2 #這個就是光驅的實際位置就像RHEL中的/dev/cdrom了
lrwxrwxrwx 1 root root 48 7月 8日 10:30 /dev/dsk/c7t0d0s2 -> ../../devices/pci@0,0/pci-ide@7,1/ide@1/sd@0,0:c
root@solaris:/cdrom# umount /dev/dsk/c7t0d0s2 #因為默認是自動掛在,所有需要線umount一下

root@solaris:/cdrom# mount -F hsfs /dev/dsk/c7t0d0s2 /mnt/ #進行手動掛掛載指定掛在點

Copyright © Linux教程網 All Rights Reserved