linux(虚拟机)如何使用windows上的虚拟光驱?谢谢了

linux(虚拟机)如何使用windows上的虚拟光驱?谢谢了,第1张

用虚拟机加载镜像 然后用linux挂载光盘就行了

假如挂载光盘的目录为/media/cdrom,那么配置文档应该是:

auto.master:

#

# $Id: auto.master,v 1.3 2003/09/29 08:22:35 raven Exp $

#

# Sample auto.master file

# This is an automounter map and it has the following format

# key [ -mount-options-separated-by-comma ] location

# For details of the format look at autofs(5).

/media /etc/auto.misc --timeout=60##指向/目录下的media目录。

#/misc /etc/auto.misc

#/net /etc/auto.net

auto.misc:

#

# $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven Exp $

#

# This is an automounter map and it has the following format

# key [ -mount-options-separated-by-comma ] location

# Details may be found in the autofs(5) manpage

cdrom -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom ##我的/dev/cdrom指向的是/dev/hdc,所以这里也能够写成/dev/hdc

# the following entries are samples to pique your imagination

#linux -ro,soft,intr

ftp.example.org:/pub/linux

#boot -fstype=ext2 :/dev/hda1

#floppy -fstype=auto :/dev/fd0

#floppy -fstype=ext2 :/dev/fd0

#e2floppy -fstype=ext2 :/dev/fd0

#jaz -fstype=ext2 :/dev/sdc1

#removable -fstype=ext2 :/dev/hdd

假如光盘已放入光驱,这里只需要:#service autofs start/restart就能够实现光盘挂载了。

Linux不需要安装虚拟光驱,如果你想打开ISO光盘映像文件可以在Shell(比如Konsole、Xterm)中运行这个命令:

mount

-t

iso9660

-o

loop

/tmp/myiso.iso

/mnt

这个命令的用法是把/tmp/目录下的myiso.iso这个光盘映像文件挂载到/mnt文件夹,-t

iso9660是指定设备的文件系统是ISO9660,即光盘文件系统.


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/8560156.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-18
下一篇2023-04-18

发表评论

登录后才能评论

评论列表(0条)

    保存