Linux如何卸载挂载文件
来源:互联网 发布:阿里云cdn防盗链 编辑:程序博客网 时间:2024/05/20 10:12
文章链接:http://blog.csdn.net/davil_dev/article/details/7084682
在我们进行远程文件操作的时候,我们经常会出现文件服务出现卸载掉哦情况。例如
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命令进行查看。
- Linux如何卸载挂载文件
- Linux如何卸载挂载文件
- Linux如何卸载挂载文件
- Linux如何卸载挂载文件
- Linux卸载挂载文件
- Linux如何卸载正在执行的挂载文件
- linux挂载文件
- Linux 挂载文件系统
- Linux挂载文件系统
- Linux 挂载文件系统
- Linux挂载文件系统
- Linux 挂载文件系统
- linux挂载文件系统
- linux下挂载文件系统
- linux 下挂载文件系统
- linux下创建挂载文件
- Linux创建和挂载文件系统
- Linux mount挂载文件系统磁盘分区
- 1st round, 285 Inorder Successor in BST
- xml解析(配置文件的pull解析)
- 读《游戏物理引擎开发》
- linux signal, sigaction.sa_mask, sigwait的区别
- elipse启动报错
- Linux如何卸载挂载文件
- 使用Qt
- 英语音标 什么是音素
- OpenCV之Python学习笔记
- 关于DevOps的一些误解
- QT——QT4.8.5安装与配置
- sql语句
- Android Stuido卡顿解决方法
- [leetcode-动态规划]--96. Unique Binary Search Trees