当前位置: 技术问答>linux和unix
关于mount CDROM命令问题。
来源: 互联网 发布时间:2016-11-17
本文导语: 今天开始学习linux,装了一个vmware费了半天力气才装好系统,然后就开始安装wmtool,这个时候出现问题了,怎么都没有办法正常的加载光驱,在命令行输入 [root@localhost ~]# mount -t iso9660 /dev/cdrom/mnt/cdrom 或 [roo...
今天开始学习linux,装了一个vmware费了半天力气才装好系统,然后就开始安装wmtool,这个时候出现问题了,怎么都没有办法正常的加载光驱,在命令行输入
[root@localhost ~]# mount -t iso9660 /dev/cdrom/mnt/cdrom
或
[root@localhost ~]# mount -t iso9600 /dev/cdrom/mnt
都会出来如下提示信息,应该是我输入错误,
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
好吧,可能是我命令输入的有问题重新输入
[root@localhost ~]# mount -t iso9660 /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
信息不一样了,不过还是看不到光驱被加载呢,好吧我手快再来一次同样的命令
[root@localhost ~]# mount -t iso9660 /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: /dev/cdrom already mounted or /mnt busy
mount: according to mtab, /dev/hdc is already mounted on /mnt
这个时候提示已经被加载或者忙碌,可实际上我还是没有看到cdrom被加载阿
光驱的并没有被加载,然后输入如下命令(我也不是很清楚是什么意思好像是光驱的名称?位置?)
[root@localhost ~]# cat /etc/fstab
提示结果如下
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0
上网看了好多文章,本以为是光驱没有加载输入如下命令,可以看到有cdrom这项阿
[root@localhost ~]# ls /dev/
adsp loop0 ptmx sda2 tty22 tty46 ttyS3
agpgart loop1 pts sequencer tty23 tty47 urandom
audio loop2 ram sequencer2 tty24 tty48 usbdev1.1_ep00
autofs loop3 ram0 sg0 tty25 tty49 usbdev1.1_ep81
bus loop4 ram1 shm tty26 tty5 usbdev2.1_ep00
cdrom loop5 ram10 snd tty27 tty50 usbdev2.1_ep81
cdrom-hdc loop6 ram11 stderr tty28 tty51 vcs
console loop7 ram12 stdin tty29 tty52 vcs1
core lp0 ram13 stdout tty3 tty53 vcs2
disk MAKEDEV ram14 systty tty30 tty54 vcs3
dmmidi mapper ram15 tty tty31 tty55 vcs4
dsp md0 ram2 tty0 tty32 tty56 vcs5
fd mem ram3 tty1 tty33 tty57 vcs6
fd0 midi ram4 tty10 tty34 tty58 vcs7
fd1 mixer ram5 tty11 tty35 tty59 vcsa
floppy net ram6 tty12 tty36 tty6 vcsa1
floppy-fd0 null ram7 tty13 tty37 tty60 vcsa2
floppy-fd1 nvram ram8 tty14 tty38 tty61 vcsa3
full oldmem ram9 tty15 tty39 tty62 vcsa4
gpmctl par0 ramdisk tty16 tty4 tty63 vcsa5
hdc parport0 random tty17 tty40 tty7 vcsa6
hpet parport1 rawctl tty18 tty41 tty8 vcsa7
initctl parport2 root tty19 tty42 tty9 VolGroup00
input parport3 rtc tty2 tty43 ttyS0 X0R
kmsg port sda tty20 tty44 ttyS1 xen
log ppp sda1 tty21 tty45 ttyS2 zero
如果我选择计算机-CDROM双击后就能够在桌面上多一个WMWARE TOOLS光驱图标,也能够打开
,里面的目录结构是vmware-tools-distrib/vmware-install.pl,最终应该是执行./vmware-install.pl
以便安装wmwaretools ,可是我想如果这样光驱被加载了我就看看用命令行的方式看看有什么文件
却提示没有那个文件和目录
[root@localhost ~]# cd /mnt/cdrom
bash: cd: /mnt/cdrom: 没有那个文件或目录
[root@localhost ~]#
不过奇怪的是,在进行卸载命令的时候
[root@localhost ~]# umount /dev/cdrom
确实能够将cdrom给卸载掉呢,为什么?
到这里已经花了几个小时了,没有办法,初次接触linux好多东西都头晕,希望大虾帮忙看看如下问题
1.如果通过命令行加载光驱?
2.如果执行已经加载光驱下的./vmware-install.pl程序(我看有的人说执行./install.pl,是不是相同阿)
3.有没有入门书籍推荐一下
[root@localhost ~]# mount -t iso9660 /dev/cdrom/mnt/cdrom
或
[root@localhost ~]# mount -t iso9600 /dev/cdrom/mnt
都会出来如下提示信息,应该是我输入错误,
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
好吧,可能是我命令输入的有问题重新输入
[root@localhost ~]# mount -t iso9660 /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
信息不一样了,不过还是看不到光驱被加载呢,好吧我手快再来一次同样的命令
[root@localhost ~]# mount -t iso9660 /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: /dev/cdrom already mounted or /mnt busy
mount: according to mtab, /dev/hdc is already mounted on /mnt
这个时候提示已经被加载或者忙碌,可实际上我还是没有看到cdrom被加载阿
光驱的并没有被加载,然后输入如下命令(我也不是很清楚是什么意思好像是光驱的名称?位置?)
[root@localhost ~]# cat /etc/fstab
提示结果如下
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0
上网看了好多文章,本以为是光驱没有加载输入如下命令,可以看到有cdrom这项阿
[root@localhost ~]# ls /dev/
adsp loop0 ptmx sda2 tty22 tty46 ttyS3
agpgart loop1 pts sequencer tty23 tty47 urandom
audio loop2 ram sequencer2 tty24 tty48 usbdev1.1_ep00
autofs loop3 ram0 sg0 tty25 tty49 usbdev1.1_ep81
bus loop4 ram1 shm tty26 tty5 usbdev2.1_ep00
cdrom loop5 ram10 snd tty27 tty50 usbdev2.1_ep81
cdrom-hdc loop6 ram11 stderr tty28 tty51 vcs
console loop7 ram12 stdin tty29 tty52 vcs1
core lp0 ram13 stdout tty3 tty53 vcs2
disk MAKEDEV ram14 systty tty30 tty54 vcs3
dmmidi mapper ram15 tty tty31 tty55 vcs4
dsp md0 ram2 tty0 tty32 tty56 vcs5
fd mem ram3 tty1 tty33 tty57 vcs6
fd0 midi ram4 tty10 tty34 tty58 vcs7
fd1 mixer ram5 tty11 tty35 tty59 vcsa
floppy net ram6 tty12 tty36 tty6 vcsa1
floppy-fd0 null ram7 tty13 tty37 tty60 vcsa2
floppy-fd1 nvram ram8 tty14 tty38 tty61 vcsa3
full oldmem ram9 tty15 tty39 tty62 vcsa4
gpmctl par0 ramdisk tty16 tty4 tty63 vcsa5
hdc parport0 random tty17 tty40 tty7 vcsa6
hpet parport1 rawctl tty18 tty41 tty8 vcsa7
initctl parport2 root tty19 tty42 tty9 VolGroup00
input parport3 rtc tty2 tty43 ttyS0 X0R
kmsg port sda tty20 tty44 ttyS1 xen
log ppp sda1 tty21 tty45 ttyS2 zero
如果我选择计算机-CDROM双击后就能够在桌面上多一个WMWARE TOOLS光驱图标,也能够打开
,里面的目录结构是vmware-tools-distrib/vmware-install.pl,最终应该是执行./vmware-install.pl
以便安装wmwaretools ,可是我想如果这样光驱被加载了我就看看用命令行的方式看看有什么文件
却提示没有那个文件和目录
[root@localhost ~]# cd /mnt/cdrom
bash: cd: /mnt/cdrom: 没有那个文件或目录
[root@localhost ~]#
不过奇怪的是,在进行卸载命令的时候
[root@localhost ~]# umount /dev/cdrom
确实能够将cdrom给卸载掉呢,为什么?
到这里已经花了几个小时了,没有办法,初次接触linux好多东西都头晕,希望大虾帮忙看看如下问题
1.如果通过命令行加载光驱?
2.如果执行已经加载光驱下的./vmware-install.pl程序(我看有的人说执行./install.pl,是不是相同阿)
3.有没有入门书籍推荐一下
|
加一个空格试试
mount -t iso9660 /dev/cdrom /mnt/cdrom
mount -t iso9660 /dev/cdrom /mnt/cdrom
|
mount /dev/cdrom即可
|
1、桌面上有WMWARE TOOLS就可以在虚拟机上的菜单选择VM->install VMware tools进行安装了,网上有很多安装 资料。
2、mount /dev/cdrom /mnt/cdrom
3、《Linux程序设计》
2、mount /dev/cdrom /mnt/cdrom
3、《Linux程序设计》
|
[root@localhost ~]# mount -t iso9660 /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
信息不一样了,不过还是看不到光驱被加载呢,好吧我手快再来一次同样的命令
[root@localhost ~]# mount -t iso9660 /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: /dev/cdrom already mounted or /mnt busy
这时候cd 到 /mnt看不到吗?
mount: block device /dev/cdrom is write-protected, mounting read-only
信息不一样了,不过还是看不到光驱被加载呢,好吧我手快再来一次同样的命令
[root@localhost ~]# mount -t iso9660 /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: /dev/cdrom already mounted or /mnt busy
这时候cd 到 /mnt看不到吗?