linuxコマンド詳細のCD-ROMドライブのマウント方法

1932 ワード

linuxのハードウェアデバイスは/devディレクトリの下にあり、オプティカル(光学式)ドライブもその中にあります./dev/cdromはオプティカル(光学式)ドライブを表し、オプティカル(光学式)ドライブをマウントする方法は以下の通りです(rootとして).
 
  
mkdir /mnt/cdrom
mount  -t auto  -o ro  /dev/cdrom    /mnt/cdrom  # 。

以下は、操作するスクリーンコピーの内容です.
 
  
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:/#

添付:isoミラーファイルはマウント可能
 
  
mount -t iso9660  -o loop  iso    /mnt/iso