In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to solve the Device is busy when unmounting mount". The explanation in this article is simple and clear, easy to learn and understand. Please follow the idea of Xiaobian and study and learn "how to solve the Device is busy when unmounting mount" together!
In Linux mount USB flash drive or mobile hard disk, often appear "Device is busy" prompt, oh ~ really annoying, in Windows that can not uninstall the mobile device problem, unexpectedly also jumped to Linux
In fact, the error is not in Windows or Linux, the reason why the mobile device cannot be uninstalled is because there are programs in the system that occupy files on the mobile device. If you force the uninstall, it may lead to data loss and device damage."Device is busy" is a protective measure.
Since he knew that there was a program occupying it, he just needed to find this program and deal with it again. Mini programs like fuser come in handy, and almost every distribution comes with fuser.
Fuser can show which program is currently using a file, mount point, or even network port on disk, and give details about the program's progress.
Assuming the device that cannot be uninstalled is/media/USB, run the following command:
$ fuser -m -v /media/USB/
user process number permission command
/media/BAK/: galeki 335 .. c.. gqview
The-m parameter indicates that the specified path is a mount point showing all processes using the specified file system, followed by a mount point, or dev device ( Thanks lisir :), the-v parameter gives detailed output, you can see that the original gqview program is still occupying the mobile device, fuser also gives the process number of the program, know the process number, you can do whatever you want with this program.
You can also add a-k parameter:
fuser -m -k /media/USB/
The requested URL/media/was not found on this server. If you're not sure if you want to kill all the hogging programs, you can add a-i parameter so that before killing each program, it asks:
$ fuser -m -v -i -k /media/BAK/
user process number permission command
/media/BAK/: galeki 371 .. c.. gqview
Kill Process 371 ? (y/N)
Thank you for reading, the above is the content of "how to solve the Device is busy when unmounting mount mount", after learning this article, I believe everyone has a deeper understanding of how to solve the Device is busy when unmounting mount, and the specific use situation needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.