How to delete a USB stick virus under Linux

Source: Internet
Author: User

When using a USB flash drive under Linux, every time you see a file such as auto, suspect is a virus.

But the input ls-l command found that the attributes are all not?

The result is that it can't be erased.

After a multi-query to know the reason is that Linux can not process the "." End of the file. So in this place cannot be deleted.

But there are some ways to solve it.

Here's how:

If you are the system automatically mount USB drive, please first umount

Then, enter the following:

sudo mount-t msdos/dev/sd*/media/disk

The difference here and the default is

The-t parameter changes from VFAT to MSDOS. Because VFAT is for FAT32. MSDOS is for FAT16.

When you open the USB flash drive again, you will find. The name has become Autorn. Because the FAT16 file name can only display 6 bits. If there is more to be used, omit.

However, this will remove the virus.

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.