What should I do when deviceisbusy is used to mount a disk partition in linux to a directory? open this directory and you will see the content in the disk partition. The opposite operation is umount, which disconnects the disk partition from the directory. But sometimes when umount... when device is busy, how does one mount the disk partition in linux to a directory. The opposite operation is umount, which disconnects the disk partition from the directory. However, sometimes umount reports an error, for example, Code: # umount/usr/local/umount:/usr/local: device is busy. This indicates that another program is using this directory, to ensure program running, umount cannot be uninstalled by default. However, umount did not say which program is being used, and thought this was a design defect. Fortunately, there is a program named fuser. the introduction of man fuser is: Code: fuser-identify processes using files or sockets fuser. after adding the resources to be checked, you can know which processes are in use, example: Code: # fuser-m //: 2017100000000000000008992rc 8996rc 8997rc 8999rc 9006rc 9007rc 9010rc 20179015rc 2017100009033rc 20179039rc 9058rc 9379rc 9379rc 201710000000000000000what needs to be done next is to stop the relevant process, and then umo. PS: Thanks to pnt for reminding me that umount has another-l option, which is used to uninstall the file system directly when the reference is not busy: Code: umount-l Lazy unmount. detach the filesystem from the filesystem hierar-chy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later .)
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