How can I disable USB flash drive in linux?

Source: Internet
Author: User
In linux, the General Technology of Linux-Linux technology and application information of USB flash drives cannot be displayed. For details, refer to the following section. Today, I saw the startup problem of suowenair's friend vista. I just had a pe system in my USB flash drive and started it with grub. The configuration file in it may be useful to suowenair, therefore, you can insert a USB flash drive to search for it. However, the pop-up fails to be correctly displayed when it is found. Right-click to delete the file without any response.
Umount/dev/sdb1
Then
Umount:/media/KINGSTON: device is busy
Needless to say, the system also loads a file in the USB flash drive. If you forcibly dial out the USB flash drive, it will certainly hurt both the system and the USB flash drive.

Use
Ps-aux
Command to get a lot of processes being executed by the system, and write down the process format (as long as you know that the second column is PID) and then use
Ps-aux | grep sdb1
Command to find the file being executed by the USB flash drive.

Warning: bad syntax, perhaps a bogu '-'? See/usr/share/doc/procps-3.2.7/FAQ
Root 3216 0.5 4.5 65532 23680? S konqueror-mimetype inode/directory system:/media/sdb1
Root 3344 0.0 0.1 4152 672 pts/3 R + grep sdb1

At this time, we will know that the PID of the USB flash drive file executed by the system is 3216 and 3344, and then use
Killed 3216
Killed 3344
Two commands are used to kill the process. In the pop-up window, the process went smoothly!
Related Article

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.