Home>Article>Operation and Maintenance> What to do if Linux cannot umount

What to do if Linux cannot umount

WBOY
WBOY Original
2022-07-15 16:17:47 2929browse

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

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

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!

Statement:
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
Previous article:What is acpi in linux Next article:What is acpi in linux