标签:linux系统基础问题
新建的虚拟机,想搭建一个yum,于是乎就先进行了一次本地挂载。
结果竟然挂载不上。
[root@localhost ~]# mount /root/rhel-server-6.5-x86_64-dvd.iso /mnt/
mount: /root/rhel-server-6.5-x86_64-dvd.iso is not a block device (maybe try `-o loop‘?)
经过解决,发现mount后需要加-o loop
-o loop=:使用 loop 模式用来将一个档案当成硬盘分割挂上系统
网上有人说,iso文件镜像都是需要添加-o loop.
[root@localhost ~]# mount -o loop /root/rhel-server-6.5-x86_64-dvd.iso /mnt/
[root@localhost ~]# ls /mnt/
.discinfo media.repo RELEASE-NOTES-or-IN.html
EFI/ Packages/ RELEASE-NOTES-pa-IN.html
EULA README RELEASE-NOTES-pt-BR.html
EULA_de RELEASE-NOTES-as-IN.html RELEASE-NOTES-ru-RU.html
EULA_en RELEASE-NOTES-bn-IN.html RELEASE-NOTES-si-LK.html
EULA_es RELEASE-NOTES-de-DE.html RELEASE-NOTES-ta-IN.html
EULA_fr RELEASE-NOTES-en-US.html RELEASE-NOTES-te-IN.html
EULA_it RELEASE-NOTES-es-ES.html RELEASE-NOTES-zh-CN.html
EULA_ja RELEASE-NOTES-fr-FR.html RELEASE-NOTES-zh-TW.html
EULA_ko RELEASE-NOTES-gu-IN.html repodata/
EULA_pt RELEASE-NOTES-hi-IN.html ResilientStorage/
EULA_zh RELEASE-NOTES-it-IT.html RPM-GPG-KEY-redhat-beta
GPL RELEASE-NOTES-ja-JP.html RPM-GPG-KEY-redhat-release
HighAvailability/ RELEASE-NOTES-kn-IN.html ScalableFileSystem/
images/ RELEASE-NOTES-ko-KR.html Server/
isolinux/ RELEASE-NOTES-ml-IN.html TRANS.TBL
LoadBalancer/ RELEASE-NOTES-mr-IN.html .treeinfo
之后挂载成功!
本文出自 “学习使我快乐” 博客,请务必保留此出处http://slient.blog.51cto.com/11702434/1984035
标签:linux系统基础问题
原文地址:http://slient.blog.51cto.com/11702434/1984035