linux@cdyemail:/$ ls /mnt #查看mnt下面有沒有cdrom目錄 ,這個是隨意的目錄。 cdrom iso usb winc wind linux@cdyemail:/$ mount /dev/cdrom /mnt/cdrom #掛載發(fā)現(xiàn)沒有權(quán)限 mount: 只有 root 才能進(jìn)行此操作 linux@cdyemail:/$ su #切換到root用戶,也可以用sudo 來取得root權(quán)限。 密碼: root@cdyemail:/# mount -t auto -o ro /dev/cdrom /mnt/cdrom #-t auto類型自動, -o ro只讀模式 root@cdyemail:/# ls -l /mnt/cdrom #查看光盤內(nèi)容 總用量 3464 -r--r--r-- 1 root root 143 2010-09-28 19:27 autorun.inf dr-xr-xr-x 3 root root 2048 2010-09-28 19:28 boot dr-xr-xr-x 2 root root 2048 2010-09-28 19:28 casper dr-xr-xr-x 3 root root 2048 2010-09-28 19:28 dists dr-xr-xr-x 2 root root 2048 2010-09-28 19:28 install dr-xr-xr-x 2 root root 16384 2010-09-28 19:28 isolinux -r--r--r-- 1 root root 4880 2010-09-28 19:28 md5sum.txt dr-xr-xr-x 2 root root 2048 2010-09-28 19:28 pics dr-xr-xr-x 4 root root 2048 2010-09-28 19:28 pool dr-xr-xr-x 2 root root 2048 2010-09-28 19:28 preseed -r--r--r-- 1 root root 237 2010-09-28 19:28 README.diskdefines lr-xr-xr-x 1 root root 1 2010-09-28 19:28 ubuntu -> . -r--r--r-- 2 root root 2037229 2010-06-04 19:27 usb-creator.exe -r--r--r-- 1 root root 1472825 2010-09-01 20:04 wubi.exe root@cdyemail:/# umount /mnt/cdrom #刪除掛載的光驅(qū) root@cdyemail:/# eject /dev/cdrom #彈出光驅(qū) root@cdyemail:/# |
|