What to do if Linux cannot umount

WBOY
Release: 2022-07-15 16:17:47
Original
2824 people have browsed it

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.

What to do if Linux cannot umount

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What to do if Linux cannot umount

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 <文件系统类型>][文件系统]
Copy after login

The problem is as follows:

What to do if Linux cannot umount

Solution:

1. Find the processes and commands that use this file, the specific operation code

What to do if Linux cannot umount

2. Then execute the ps command to find it Execute the command of this process

What to do if Linux cannot umount

3. Forcefully end the irrelevant process

[root@localhost ~]# kill -9 8510
Copy after login

Then uninstall the relevant mount

[root@localhost ~]# umount /drbd
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!