CENTOS7 execution Umount Hint: device is busy or target is busy workaround

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.