Linux Mount CD-ROM
2009-07-27 17:54
246 查看
http://www.tldp.org/HOWTO/CDROM-HOWTO/x289.html#AEN980
The CD can now be accessed under the directory /mnt/cdrom.
There are other options to the mount command that you may wish to use; see the mount(8) man page for details.
You can add an entry to /etc/fstab to automatically mount a CD-ROM when Linux boots or to specify parameters to use when it is mounted; see the fstab(5) man page.
Note that to play audio CDs you should not try to mount them.
To unmount a CD-ROM, use the umount command as root:
The disc can only be unmounted if no processes are currently accessing the drive (including having their default directory set to the mounted drive). You can then eject the disc. Most drives have an eject button; there is also a standalone eject program that allows ejecting CD-ROMs under software control.
Note that you should not eject a disc while it is mounted (this may or may not be possible depending on the type of drive). Some CD-ROM drivers can automatically eject a CD-ROM when it is unmounted and insert the CD tray when a disc is mounted (you can turn this feature off when compiling the kernel or by using a software command).
Its possible that after playing an audio CD you may not be able to mount a CD-ROM. You need to send a CD audio "stop" command (using a CD player program) before trying the mount. This problem only appears to occur with the SBPCD driver.
Recent kernels support a kernel-based automounter which provides transparent mounting of removable media including CD-ROM. You can find the tools needed to use it at ftp://ftp.kernel.org/pub/linux/daemons/autofs/.
4.5. Mounting, Unmounting, and Ejecting Devices
To mount a CD-ROM, insert a disc in the drive, and run the mount command as root (this assumes you created a symbolic link to your device file as recommended above and that an empty directory /mnt/cdrom exists):# mount -t iso9660 -r /dev/cdrom /mnt/cdrom |
There are other options to the mount command that you may wish to use; see the mount(8) man page for details.
You can add an entry to /etc/fstab to automatically mount a CD-ROM when Linux boots or to specify parameters to use when it is mounted; see the fstab(5) man page.
Note that to play audio CDs you should not try to mount them.
To unmount a CD-ROM, use the umount command as root:
# umount /mnt/cdrom |
Note that you should not eject a disc while it is mounted (this may or may not be possible depending on the type of drive). Some CD-ROM drivers can automatically eject a CD-ROM when it is unmounted and insert the CD tray when a disc is mounted (you can turn this feature off when compiling the kernel or by using a software command).
Its possible that after playing an audio CD you may not be able to mount a CD-ROM. You need to send a CD audio "stop" command (using a CD player program) before trying the mount. This problem only appears to occur with the SBPCD driver.
Recent kernels support a kernel-based automounter which provides transparent mounting of removable media including CD-ROM. You can find the tools needed to use it at ftp://ftp.kernel.org/pub/linux/daemons/autofs/.
相关文章推荐
- linux挂载iso镜像时报错的解决方法 mount: can't find cdrom in /etc /fstab or /etc/mtab
- linux挂载iso镜像时报错的解决方法 mount: can't find cdrom in /etc /fstab or /etc/mtab
- linux挂载iso镜像时报错的解决方法 mount: can't find cdrom in /etc /fstab or /etc/mtab
- linux mount cdrom 小技巧
- linux 挂光盘时报错 mount /dev/cdrom /mnt/cdrom mount: you muse specify the filesystem type
- Hyper-V下虚拟RHEL/CentOS 安装The Linux Integration Services后,/dev/cdrom丢失的解决方法
- debian7 请把标有“Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06”的盘片插入驱动器“/media/cdrom/”再按回车键
- Linux下轻松刻录CD-ROM数据光盘
- mount: can't find /mnt/cdrom in /etc/fstab or /etc/mtab
- 如何在 Linux 下安装及使用 CD-ROM
- Linux下的/dev/sr0、/dev/cdrom、df命令、free命令
- mount /mnt/cdrom 提示错误信息“mount: can't find /mnt/cdrom in /etc/fstab or /etc/mtab”
- Unix/Linux installation in disk, without cdrom.
- mount: block device /dev/cdrom is write-protected, mounting read-only
- Linux CDROM的一些资源
- mount: block device /dev/cdrom is write-protected, mounting read-only
- 合并Redhat Linux Enterprise 4的cd-rom iso 到DVD iso
- Linux CDROM驱动分析 - linux CDROM驱动标准
- mount cdrom与 下载 rpm make
- yum mount cdrom