要作雲存儲了。彈出光盤,之前都是在圖像界面,點擊右鍵完成,如今在用命令彈出,居然不知道用啥命令,在網上找了找,總算知道了,記錄下來。this
第一光驅彈出光盤:eject
第一光驅裝入光盤:eject -t
第二光驅彈出光盤:eject /dev/cdrom1
第二光驅裝入光盤:eject /dev/cdrom1 -tit
man了一下ejectio
-t With this option the drive is given a CD-ROM tray close command. Not all devices support this command.sed
意思就是關閉光驅,但並非全部設備都支持這個命令。注意:-t 使用前,光驅是打開的,不然,輸入這個命令沒意義。command
-T With this option the drive is given a CD-ROM tray close command if it’s opened, and a CD-ROM tray eject command if it’s closed. Not all devices support this command, because it uses the above CD-ROM tray close command.vi
加參數T就比較爽了,若是,光驅是關着的,輸入命令後,光驅會打開。若是,光驅是開着的,輸入命令後,光驅會關閉。co