Linux如何卸载挂载文件
2015-04-30 10:03
253 查看
在我们进行远程文件操作的时候,我们经常会出现文件服务出现卸载掉哦情况。例如
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))
这种问题解决方案:
一、查找使用这个文件的进程和命令,具体的操作代码
[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)
二、然后执行ps命令可以查找执行此进程的命令
[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
三、强行结束无关进程
[root@localhost ~]# kill -9 18841
四、然后卸载相关挂载
[root@localhost ~]# umount /mnt/net1
五、然后可以在功过mount命令进行查看。
六、
kill -9 5994
这个有4个都是没有挂载的
就要敲4个umount /home/zhao/,这个命令。
才能全部删掉。
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))
这种问题解决方案:
一、查找使用这个文件的进程和命令,具体的操作代码
[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)
二、然后执行ps命令可以查找执行此进程的命令
[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
三、强行结束无关进程
[root@localhost ~]# kill -9 18841
四、然后卸载相关挂载
[root@localhost ~]# umount /mnt/net1
五、然后可以在功过mount命令进行查看。
六、
kill -9 5994
这个有4个都是没有挂载的
就要敲4个umount /home/zhao/,这个命令。
才能全部删掉。
相关文章推荐
- Linux如何卸载挂载文件
- Linux如何卸载挂载文件
- LFCS 系列第五讲:如何在 Linux 中挂载/卸载本地文件系统和网络文件系统(Samba 和 NF
- Linux如何卸载正在执行的挂载文件
- Linux如何卸载挂载文件
- Linux如何卸载挂载文件
- linux如何卸载挂载文件
- linux如何挂载windows下的共享文件
- linux如何挂载windows下的共享文件
- 如何使用_SSHFS_通过_SSH_挂载远程的_Linux_文件系统或者目录
- Linux菜鸟笔记——磁盘管理与文件系统管理 之 磁盘挂载与卸载、磁盘参数修改
- linux-011文件系统超级块的操作函数(挂载卸载系统)解析
- linux如何使用NFS挂载文件系统
- 如何在 Linux 中挂载 ISO 文件
- Linux 如何挂载、卸载硬盘--以centos系统为例
- Linux中如何挂载windows共享文件以实现文件传输
- linux如何挂载windows下的共享文件
- 如何在linux正常启动的系统中(挂载rootfs)某个目录下来加载ubi文件类型的recoveryfs?
- Rhyme/ Linux 文件系统常用命令 光盘的挂载与卸载命令