For a file system mounted on a Linux system, it is usually impossible to uninstall. You can forcefully uninstall it by using the command. The following small series introduces you to how to use the umount command to force the file system to be unmounted.
umount command
solution linked to the file system. Umount [-ahnrvV][-t "File System Type"][File System]
umount removes the file system currently hanging in the Linux directory.
There is a problem with the online nfs access, causing the /data1 directory ls to fail to output and need to be uninstalled. However, when the directory is directly unloaded, the directory is being occupied by other processes and cannot be directly umount. Here, the uuser is unloaded in conjunction with the fuser.
1. Direct Uninstall
[root@localhost /]# umount /data1/img
umount: /data1/img: device is busy
Umount: /data1/img: device is busy
2. The prompt is occupied, use forced uninstallation
[root@localhost /]# umount -f /data1/img
umount2: Device or resource busy
umount: /data1/img: device is busy
umount2: Device or resource busy
umount: /data1/img: device is Busy
Note: When using the -f parameter for forced unloading, it is generally recommended to wait for a while and then perform the following operations. In some cases, it takes 1-2 minutes to process.
3, using umount -f, the problem remains. Use the fuser command to first confirm that those processes are occupying the directory
[root@localhost /]# fuser -cu /data1/img
/data1/img: 1757c(mysql)
The above view shows that the process starting from the mysql user with pid 1757 is occupying this directory.
4, confirm that the process started by mysql can be killed, you can directly use the k parameter of the fuser to kill (you can also manually stop the 1757 process and then uninstall)
[root@localhost /] # fuser -ck /data1/img
/data1/img: 1757c
Note: Here k is the meaning of kill, please be careful to use this parameter before confirming.
In addition, when umount is abnormal, lsof is often used to specify which process the file is occupied by.
The above is the way to use Linux to use the umount command to force the file system to be unloaded, even if the prompt is occupied. Can be uninstalled by command.
Using shell scripts under Linux can easily implement multi-threaded operations. Not only can shell s
For Linux systems, users must be impressed with its powerful commands, but many Lin
In the Linux system operation, the content of the text will inevitably appear dupli
The find command is mainly used for file search. It has been described in detail in the previous art
How to use the tar command correctly under Linux system
Ubuntu 14.04 prohibits the apport error report window startup method
How to undo operations in Git in Linux
How to use commands to transfer files between Mac and Linux
How to use sed command in Linux
Linux viewing system installed kernel operation method
Ways to debug network performance using tools under Linux
How to install Ruby and rvm on Ubuntu 11.04
CentOS uses the split command to split the file instance
Windows operating system troubleshooting methods
Win10 quick start can not be opened normally.
Win8.1 Update can't start? Emergency command to help repair
Win10 system running software prompts missing LIBEAY32.DLL solution
Win8 multiple daily operation speed measurement is super Win7
How to install XenServer on Windows 8
Windows Explorer plugin at a glance
Win8 can not be installed on the Internet to reinstall the problem
How to solve the problem that Win10 system file resource manager can't open
Windows7 Ultimate system startup "Missing operating system" how to do