Home>Article>Operation and Maintenance> What to do if Linux cannot umount
Solution: 1. Use the lsof command to find the process and command that cannot umount the file. The syntax is "lsof | grep specified file"; 2. Use the ps command to find the command that executes this process. The syntax is " ps -ef|grep specify the process"; 3. Use "kill -9 specify the process" to forcefully terminate the irrelevant process.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
The Linux umount (English spelling: unmount) command is used to unmount the file system.
umount can unmount the file system currently mounted in the Linux directory.
Grammar
umount [-ahnrvV][-t <文件系统类型>][文件系统]
The problem is as follows:
Solution:
1. Find the processes and commands that use this file, the specific operation code
2. Then execute the ps command to find it Execute the command of this process
3. Forcefully end the irrelevant process
[root@localhost ~]# kill -9 8510
Then uninstall the relevant mount
[root@localhost ~]# umount /drbd
Recommended learning:Linux video tutorial
The above is the detailed content of What to do if Linux cannot umount. For more information, please follow other related articles on the PHP Chinese website!