linux@cdyemail:/$ ls /mnt #查看mnt下面有没有cdrom目录 ,这个是随意的目录。 cdrom iso usb winc wind linux@cdyemail:/$ mount /dev/cdrom /mnt/cdrom #挂载发现没有权限 mount: 只有 root 才能进行此操作 linux@cdyemail:/$ su #切换到root用户,也可以用sudo 来取得root权限。 密码: root@cdyemail:/# mount -t auto -o ro /dev/cdrom /mnt/cdrom #-t auto类型自动, -o ro只读模式 root@cdyemail:/# ls -l /mnt/cdrom #查看光盘内容 总用量 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 #删除挂载的光驱 root@cdyemail:/# eject /dev/cdrom #弹出光驱 root@cdyemail:/# |
|