unable to remove autorun.inf (probably infected) from flashdrive
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
clamscan says that this file is infected. So I tried to use the --remove option of clamscan. It complained about the file system being read-only. Then I tried to delete the file manually as root. Still the same message
Quote:
rm: cannot remove `/media/74DE-7E42/autorun.inf': Read-only file system
I tried googling but all solutions I found were Windows-specific.
Any idea how I can remove the file?
P. S. There is no file named iyvda.exe in the pendrive.
Perhaps you are using a Sandisk Cruzer USB device? Or, more specifically, a USB device using U3 technology? Perhaps then you might want to read a recent discussion about that problem:
Slackd, I didn't want to enter windows, lest the virus did some harm. But thanks any way. I don't know much about the U3 system. I'll read up on it. :-)
I read somewhere on the net that if I create a autorun.inf folder in the pendrive, it will prevent any future attempts by malicious programs to create a autorun.inf file and hence they will not be able to autorun themselves. Has any one tried it actually?
Usually when you face this kind of problem, check once if the Flash Drive is in NTFS, and mounted in read-only mode. If its read-write, then you will be easily able to delete the files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.