The "Device is busy" problem that occurs when Umount is resolved under Linux __linux

Source: Internet
Author: User
fuser can show which program is currently using a file on disk, mount point, or even network port, and give details of the program process. If the device that cannot be unloaded is/media/matlab, run the following command:
$ sudo fuser-m-v/media/matlab/
                       user     process number    permission   command
/media/matlab/:        galeki      335    . C..  Gqview
$ sudo umount/media/matlab

#-m parameter shows all processes using the specified file system, followed by the mount point, or the dev device
#-v parameter gives detailed output, you can see that the original is Gqview This program is still hogging the mobile device # Fuser also gave the process number of the
program, know the process number, you can dispose of the program as a matter of

---------------------------------------- ------------------------------
# In addition you can also add a-K parameter:
$ sudo fuser-m-k/media/matlab/         # This trick automatically occupies the/media/ matlab/program kills
$ sudo umount/media/matlab

# If you're not sure if you're going to kill all the device-hogging programs, you can also add a-I argument so that every program that kills one will ask:
$ sudo fuser-m-v-i-k/media/matlab/
                          user     process number      permission   command
/media/matlab/:         galeki      371     .. C..   Gqview
kills process 371? (y/n)
$ sudo umount/media/matlab
Very smooth solution of the "Device is busy" problem ~

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.