Home  >  Article  >  Operation and Maintenance  >  A certain directory in Linux cannot be entered, causing a stuck problem

A certain directory in Linux cannot be entered, causing a stuck problem

王林
王林Original
2019-12-03 14:05:106044browse

A certain directory in Linux cannot be entered, causing a stuck problem

If you have folder A in a directory, the following operations will cause it to freeze directly:

1. Use ls -ls in the directory of the same level as folder A to view it. Stuck;

2. Calculating disk space in the same directory as folder A got stuck;

3. Directly cd into folder A and got stuck.

In this case, it is very likely that the directory is mounted to another address, and that address is no longer accessible.

Recommended online video tutorial: linux video tutorial

Solution:

1. Query the usage of the current system mount:

mount -l

2. Cancel the mount

umount 文件夹A

3. If it cannot be canceled, force the uninstall:

umount -f 文件夹A

4. If it prompts that the directory is busy, use delayed uninstallation. It will wait until the directory is not busy. Then uninstall

umount -l 文件夹A

For more articles and tutorials, please visit: linux tutorial

The above is the detailed content of A certain directory in Linux cannot be entered, causing a stuck problem. 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