查看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命令進行查看。