Problem Description:
Because the mount is wrong, I want to cancel the mount, but Umount reports the following error:
umount /dev/sdc1umount:/data1:target is busy. Info About processes, the device is found by lsof (8fuser(1))
According to the description should other processes occupy the mounted directory
Solution:
Closes the occupied process, but shows no command when using the Fuser command
fuser -m/dev/sdc1fuser: Command not found
Then you need to install:
Yum Install -y Psmisc
Then use the Fuser command to view the process:
fuser -m/dev/sdc1/dev/sdc1: 10246c
PS grep 10246 Root 10246 0.0 0.0 116460 3212 pts/0 ss+ Oct19 0:xx -bash
To close a process using the KILL command:
Kill -910246
Close the process and then umount the success:
Umount /DEV/SDC1
Finally, you can use Df-h to view the mount situation, you will find that the mount has been canceled successfully!
Centos7 execution Umount hint: device is busy or target is busy workaround