mount和umount命令疑问

时间:2022-08-18 15:52:33
我用mount命令挂载了一个suse的镜像文件
mount -o loop xxx.iso /root/mnt
使用yast安装了一个软件后
卸载镜像文件
umount /root/mnt

再打开yast后进入software management报错
报错内容如下:
Cannot access installation media                                     
 SUSE Linux Enterprise Server 10 SP1.                                                   
 Check that the directory is accessible.                                                
 [x] Show details                                                                       
 URL                                                                                    
 dir:///root/mnt/                               
 File ./media.1 not found on media: dir:///root/mnt

是我卸载方式不对吗这个问题如何解决,请大家帮帮忙,多谢。

11 个解决方案

#1


安装的问题吧

#2


请高手给解答吧!

#3


高手来看一眼啊

#4


Check that the directory is accessible.    
dir:///root/mnt

提示不是很清晰吗,//root/mnt 这个目录已经没有了啊

#5


我用完之后就unmount了啊,系统应该不再去访问那个挂载的目录了啊。
换个说法:
我挂载mount -o loop xxx.iso /root/mnt
我要卸载该是什么命令才不会在使用yast时报错

#6


楼主为什么觉得错在 unmount 呢?命令不会用 man 一下 或者 Google 一下就可以了

#7


只是过来看看怎么用

#8


引用 6 楼 zhxianbin 的回复:
楼主为什么觉得错在 unmount 呢?命令不会用 man 一下 或者 Google 一下就可以了

因为mount -o loop xxx.iso /root/mnt
这个命令是把挂载镜像文件的命令,而我安装完要用的软件包后,/root/mnt目录还是在的
这时我使用umount /root/mnt去卸载镜像文件,然后再用yast就报错了,那只能是使用umount时有问题了。
如果有人知道怎么解决的话就说下,我也是查了之后解决不了才发贴的。

#9


引用 8 楼 mct123 的回复:
Quote: 引用 6 楼 zhxianbin 的回复:

楼主为什么觉得错在 unmount 呢?命令不会用 man 一下 或者 Google 一下就可以了

因为mount -o loop xxx.iso /root/mnt
这个命令是把挂载镜像文件的命令,而我安装完要用的软件包后,/root/mnt目录还是在的
这时我使用umount /root/mnt去卸载镜像文件,然后再用yast就报错了,那只能是使用umount时有问题了。
如果有人知道怎么解决的话就说下,我也是查了之后解决不了才发贴的。
 你不要安装在 /root/mnt 目录

#10


never be a suse user. My guess is the program yast probably cached the /root/mnt as the path to access the local repository. you could try to remove this dependency probably somewhere under /etc/ or simply mount the loop device back every time you run yast... 

#11


引用 10 楼 micropentium6 的回复:
never be a suse user. My guess is the program yast probably cached the /root/mnt as the path to access the local repository. you could try to remove this dependency probably somewhere under /etc/ or simply mount the loop device back every time you run yast... 

好吧,看样子也只能如此了,还是要感谢大家。

#1


安装的问题吧

#2


请高手给解答吧!

#3


高手来看一眼啊

#4


Check that the directory is accessible.    
dir:///root/mnt

提示不是很清晰吗,//root/mnt 这个目录已经没有了啊

#5


我用完之后就unmount了啊,系统应该不再去访问那个挂载的目录了啊。
换个说法:
我挂载mount -o loop xxx.iso /root/mnt
我要卸载该是什么命令才不会在使用yast时报错

#6


楼主为什么觉得错在 unmount 呢?命令不会用 man 一下 或者 Google 一下就可以了

#7


只是过来看看怎么用

#8


引用 6 楼 zhxianbin 的回复:
楼主为什么觉得错在 unmount 呢?命令不会用 man 一下 或者 Google 一下就可以了

因为mount -o loop xxx.iso /root/mnt
这个命令是把挂载镜像文件的命令,而我安装完要用的软件包后,/root/mnt目录还是在的
这时我使用umount /root/mnt去卸载镜像文件,然后再用yast就报错了,那只能是使用umount时有问题了。
如果有人知道怎么解决的话就说下,我也是查了之后解决不了才发贴的。

#9


引用 8 楼 mct123 的回复:
Quote: 引用 6 楼 zhxianbin 的回复:

楼主为什么觉得错在 unmount 呢?命令不会用 man 一下 或者 Google 一下就可以了

因为mount -o loop xxx.iso /root/mnt
这个命令是把挂载镜像文件的命令,而我安装完要用的软件包后,/root/mnt目录还是在的
这时我使用umount /root/mnt去卸载镜像文件,然后再用yast就报错了,那只能是使用umount时有问题了。
如果有人知道怎么解决的话就说下,我也是查了之后解决不了才发贴的。
 你不要安装在 /root/mnt 目录

#10


never be a suse user. My guess is the program yast probably cached the /root/mnt as the path to access the local repository. you could try to remove this dependency probably somewhere under /etc/ or simply mount the loop device back every time you run yast... 

#11


引用 10 楼 micropentium6 的回复:
never be a suse user. My guess is the program yast probably cached the /root/mnt as the path to access the local repository. you could try to remove this dependency probably somewhere under /etc/ or simply mount the loop device back every time you run yast... 

好吧,看样子也只能如此了,还是要感谢大家。