linux 解除挂载

查看mount 信息web

mount -lbash

解除挂载的时候必定要退出到上一级目录,不然会失败spa

 

在咱们进行远程文件操做的时候,咱们常常会出现文件服务出现卸载掉哦状况。例如.net

umount /mnt/net1
umount: /mnt/net1: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

这种问题解决方案:
orm

1、查找使用这个文件的进程和命令,具体的操做代码进程

[root@localhost  ~]# lsof |grep /mnt/net1
lsof: WARNING: can't stat() cifs file system /mnt/net1
      Output information may be incomplete.
bash      18841      root  cwd   unknown                                            /mnt/net1/TDDOWNLOAD/软件 (stat: No such device)

2、而后执行ps命令能够查找执行此进程的命令
ci

[root@localhost  ~]# ps -ef|grep 18841
root     18841 18839  0 Nov29 pts/2    00:00:00 /bin/bash -l
root     29496 25604  0 16:26 pts/0    00:00:00 grep 18841

3、强行结束无关进程
get

[root@localhost  ~]# kill -9 18841

4、而后卸载相关挂载
it

[root@localhost  ~]# umount /mnt/net1io

5、而后能够在功过mount命令进行查看。

相关文章
相关标签/搜索