How to protect your computer from virus in pen drives

by Rohit Khurana on March 20, 2008



We have received lot of problems where computers got infected easily by the viruses in the pen drives, pen drives have become one of the most easiest carriers of various types of viruses these days.

We will tell you how pen drives normally infect your computer systems and how can you open pen drive safely and back up your important data.

How a virus in your pen drive infects?

Most of the active viruses infect your windows system as soon as you double click on the Pen Drive icon in your my computer. As virus always creates a autorun.inf file which is a system ,hidden and a read only file on your pen drive. It point to the main virus file which is also located on the pen drive. When user double clicks on the pen drive files pointed by the autorun.inf got executed which copies the virus files on your system.

The image below shows the Autorun file entries in some special characters when you right click on the drive.


Let’s see how can you protect yourself by following certain practices.


Let’s discuss these practices one by one:

1. Disable Autorun on Your Pen Drive:

  • Open to Start >> Run and type “gpedit.msc” (without quotes) and press enter. This will open Group policy editor.
  • Browse to Administrative templates >> System >> double click on Turn off Autoplay click on Enabled and Under Settings >> Select All Drives in the drop down and click OK (as shown in the image below)


2. Scan Your Pen Drive:


Whenever you insert your pen drive / portable drive into USB port on your system make sure to run a virus scan with your anti virus before opening your pen drive contents in windows explorer.

3. Use FreeCommander:

FreeCommander is again a file explorer like windows explorer, so you just need to download it by clicking here and install it.

After installing open your pen drive through FreeCommander (as shown in the image below)


Check if there are some additional files like autorun.inf , Funny UST Scandal.avi.exe ,Ravmon.exe ,New Folder.exe etc or any other file which you have not copied or created, delete all these suspicious files on your pen drive.


Quick Update: 26th March 2008

4. Use your virus infected pen drive: You can also use your virus infected pen drives to copy your important data in worst circumstances.


How to backup your important data when your pen drive is infected with a virus




a. Insert your pen drive into the usb port, if it detects your drive you will see it in my computer.

b. Now don’t double click on your drive, rather open the pen drive contents by typing the drive letter.

For Example: type g: and press enter if your pen drive is shown as new g drive under my computer.    

c. Copy your important files from your pen drive close the window and format your pen drive after then.


If you are still suspicious about the existence virus files on your pen drive, you can remove virus from your pen drive through command prompt by the method suggested by Madhur here in this article

Technorati Tags: pen-drive-virus,remove-virus-from-pen-drive

If you like this article or this article helped you, you can +1 to recommend this article on google plus.

You can follow us on Twitter or join our Facebook Fan Page. If you have a question to ask us, submit your question at Answers By Trouble Fixers.

Looking for something else? Search here :

{ 74 comments… read them below or add one }

Madhur Kapoor March 21, 2008 at 4:13 am

Thanks for the link buddy.

Gaganpreet singh March 25, 2008 at 9:33 pm

Hi ,

I am not able to open or format my pen drive. whrn i click on open it shows “Please insert a disk into drive”. I tried this pen drive on other system. and when i right click on pen drive it shows free space 0 and used drive 0 bt there is a light in pen drive. and in device manager it shows this drive is working fine.I think pen drive is fine. so, can you please suggest me what i need to do next.

Thanx and Regards
Gaganpreet singh

Rohit March 25, 2008 at 9:52 pm

@ Gaganpreet

Try to format the drive on some other computer. If the drive is not recognized by any of these, then u need to get it replaced under warranty terms.

harish April 3, 2008 at 6:59 pm

thank u

nihar April 4, 2008 at 9:55 am

my hard disk volumes r not opening whn i click that it leds to “OPEN WITH MENU”
i removed a virus amvo.exe(trojoan horse) from my computer after that i restarted my computer now PC run as usual then no virus is found in my mcafee virus scan 8.5 (updated)….pls post ur quries and ideas to my id

Rohit April 6, 2008 at 3:50 am
Raj April 21, 2008 at 11:48 pm

Thanx THNX thanks You verry much

dosh June 29, 2008 at 4:34 am

thks soo much

but i just have one question, if anyone could help please,
after using the free commander, and trying to delete those .exe files, these files appear again and again.

just need ur help here, i cant clean those virus.


Rohit June 29, 2008 at 7:25 am


If the files are appearing again themselves, there must be some more files which are generating them . Look for some suspicious autorun or dll files etc, that could be generating those executable files. Delete such suspicious files.

shahid July 4, 2008 at 11:02 pm

with thanking i have removed that problem. but there is still virus would u tell me how to delete all these virus.

shahid July 4, 2008 at 11:05 pm

i have one more question how i can safe my pc when i use internet.

anil July 13, 2008 at 10:57 pm

how to protect my computer pen drive &autoplay

raaghav July 20, 2008 at 10:41 am

i need information abt how to del driveguard.exe and flashguard.exe(win32:AutoIT-cH[wrm]

karan August 5, 2008 at 3:55 am

hi this is very good to remove your virus step by step
i get ride of virus in my phone memory card or in my phone memory and also in pen drive

farhan habib August 12, 2008 at 2:47 am

my name is farhan habib. i have a lot of problem.pls solution how to delete autorun.inf pendrive virus and also newfolder.exe file how to delete in pen drive

jayjeev August 24, 2008 at 10:11 am

Thanks for making available this type of solutions.
This is very useful.
I shall be obliged if the functions of registry keys will be made available to me.

german September 17, 2008 at 3:53 pm

every time i plug in my usb into a computer it restarts immediatley, on top of that any usb inserted to the same computer mine was gets this “virus” and then does the same thing to any computer, what can i do to fix my usb if i cant even plug it in

mahesh September 17, 2008 at 8:28 pm

thanks for these wonderful tips buddy
but my pen drive shows driveguard.exe
how should i remove it

mahesh September 17, 2008 at 8:30 pm

thanks buddy
but my pen drive have virus like driveguard.exe
& also RECYCLER as well as security these all shown in cmd
please help

Anil September 27, 2008 at 1:19 pm

the problem is that my pc do not detect mobile ,pen drive,& usb base keyboard

John-d October 2, 2008 at 2:56 am

hello trouble fixers team i work as computer technician and i always visited this web site its very good to got the knowledge from this sit i liked it .
i have got very good pen drive protector program called USB Disk Security its scan all kind of viruses and also have a tools you can include all the drives c: d: .. and pen drive by autorun.inf virus protector by disabling this virus to not act the computer when its trying to get throw it. you can see in all drives this autorun file and no need to update the virus signature .
thanks and good luck

aneesh October 17, 2008 at 9:42 pm

Dear sir,

I have a problem with my flash.when i connected it to the computer the following message appears.

” The disk can not be written because the it is write protected. Please remove the write protection from the volume in drive
\Drive\Device\Harddisk1\DR11 ”

When i try to format it, it apperas a message “Disk is write protected”.I can’t copy new files into it (windows and linux).
A virus like software is inside it called “DriveGuard.exe” (microsoft corporation)and its autorun file. Please tell me how to
remove these files from flash and how to remove write protection from flash.To my another flash can’t copy more than 600 MB
(its size is 2GB). When it overcomes 600 MB is also appears the write protected message. But it does not contain the “DriveGuard” and
autorun filefile.

S/N : G01GNMW680022
Model : PD1

Yours faithfully


Mustafa November 5, 2008 at 8:45 pm

Well my pen drive is not being detected on my pc..
So plz if u cud tell me any software through which i can make it poss…

Samsutheen December 26, 2008 at 6:19 am

I am having 32GB Kingston pendrive.It doesn’t work properly.
all my datas such as mp3,videos,image files are vanished.
But the used GBs are shown in properties.all the folders are empty. please give me a solution for this.I was completely fed up with this problem.

sabin January 10, 2009 at 9:01 pm

hey i have pendrive
if i tried formatting
then give message that
” currently used by another system process”
is their any solution

iftikhar alam February 10, 2009 at 3:50 am

when i inserted my pen drive or any cd to my cd-writer before stating my pc , my pc not stared only shows blinking,,,,

and if i want to start my pc without any inserted pen drive or cd it works or open smoothly,,
pls help what is the problem

Lonely March 4, 2009 at 10:44 am

I have a 4gb kingston pen drive.When i try to execute the data in the pen drive it doesn`t work.The data also gets corrupt sometimes.PLZZZZZZ.Help

eco April 24, 2009 at 7:33 pm

Master, i can delete using freecommander but after i plug the pendrive back again in my pc. the virs is coming back again… maybe my pc oo infected got anyway that i can delete my desktop virus too ?

bhavin April 29, 2009 at 8:25 am

I download idm515 trial version &install in Xp.Now Its period is over so I uninstall it &try to download idm516 trial version but unable to do it.

Rehman July 4, 2009 at 10:07 am

I have a 4 GB pen drive. which is infected from viruse Autorun.inf and I am not success to format it and i have no any antiviruse too.

sha john July 22, 2009 at 10:50 pm

Hi Boss,

My pendrive is SONY VAIO 20 GB. When i connect my pendrive to my computer i can copy all the things to it, but when i connect it any other system aftr sometime the files could not be opened and the file size will be increased to 32Gb, 40 GB etc. as @#@!!@# symbols only.

It could not be formatted or complete the check disc process.

May i know which virus is this and kindly tell me how to delete this virus…

Awaiting ur early reply..



deepa August 30, 2009 at 11:53 pm

hi…my pen drive gets hanged when i insert in system.I could not even format it.. wat can i do?

vipin September 20, 2009 at 6:50 am

i want

vipin September 20, 2009 at 6:51 am

i wany it for my pendrive

sanjana September 27, 2009 at 8:08 am

I have a 2 GB pendrive.If i try to open it,its coming as access denied.I want to copy the contents of what can i do.please suggest me.

kannan November 9, 2009 at 10:39 pm

“cannot open volume for direct access”


sameer December 18, 2009 at 1:12 pm

I heard that new pendrive came. that will scan autmatically. It contains one anti virus software that scan it. whenever we insert the pendrive to any pc.If yes .please tell me

hemanth January 18, 2010 at 7:33 pm

whenever i connect the pendrive to my pc it shows acess denied

aniket January 19, 2010 at 6:25 pm

whenever i insert my pendrive whose capacity is 2 gb it shows that only 2 mb space is there any solution to this problem???

jen January 20, 2010 at 1:58 pm

hello.. i cant open my USB please help..

its same situation like what other says in their comment.. wen evr i open my usb there is a dialog box telling to please insert a disk to the removable disk.. what should i do.?? hmm my files is very important hope you will help me thanks..

and by the way what is pen drive??

Anurag jain January 26, 2010 at 8:41 pm

how can i make a bootable cd with cd-rom device drive but without a floppy drive.

Biswajt Biswas March 4, 2010 at 9:12 pm

when i explore/click my pen-drive a notepad have opened. how i will prevent this problem without formating.

rammn May 16, 2010 at 12:59 pm

i have a pen drive its is not showing my data what should i do

Durgesh zala May 19, 2010 at 11:32 am

oll virus problem solve

Srinivas May 21, 2010 at 12:35 pm

I have a 2GB mp3 player, it is not playing mp3 files, please give suggest

aslam May 25, 2010 at 4:03 pm

my pen drive is not detected in my computer

Raj June 16, 2010 at 8:10 am


my pen drive infected with virus, so i cleaned with kaspersky antivirus. all virus cleaned. But all the files in the pen drive shows as one file like (USBCÇYè) and i can’t open it.

Awais June 26, 2010 at 4:53 pm


My pen drives shows its full of data and my anti virus software also scan the files but they are not displayed when i open my usb, i have also checked by enabling hidden files.. plz suggest wt to do in such circumstances?

Sujin July 8, 2010 at 5:45 am

go to command prompt by start -> run and type cmd
then type cd space and type ur drive letter and list then type dir…it will list all the files in the drive

Jenny July 20, 2010 at 6:38 pm

I think my pen drive and Mp3 infected by same virus. Even after I format both of them, there is still a text document inside it. The file named “service” and when I click in that file it just all “aaaaaaaaaaaaaaaaaaaa” inside. No matter how many times I format or deleted it manually, that file still will appear with the same name and contain. I have tried few anti viruses to scan it (panda/ avira/ norton/ 360) but all the anti viruses did not categorize this file as virus. Can anybody kindly advise the solution?

naveen July 29, 2010 at 6:29 pm

My pen drive got infected with virus called newfolder, which again infected my computer and Then My mobile and my memory card

nugandongol August 7, 2010 at 11:25 pm

I am having 32GB Kingston pendrive.It doesn’t work properly.
all my datas such as mp3,videos,image files are vanished.
But the used GBs are shown in properties.all the folders are empty. please give me a solution for this.I was completely fed up with this problem.

Rajesh September 10, 2010 at 2:45 pm

my data erupted(remove) in pen drive pls restore ideas…..

bhavya October 22, 2010 at 4:54 pm

hello i have a problem that my pen drive is not detected and after trying all the above methods it is not shown .
what should i do ?????
any way out pls help me >
ty !!!

Cham November 4, 2010 at 2:44 pm

Thanks mate, its a very useful tips, i never got infected anymore,but I dont know what to do with Other Computers that that has been infected with these viruses from Pendrives without reinstalling the whole system.Can you give us some tips on deleting them from the registry or something?I already know how to manually clean zhengbo.exe..etc, but there are a lot of viruses that do not even have a proper name…and there are some that keeps changing the virus names in the pendrives…?I would be very grateful If you could help me?

deepak November 20, 2010 at 12:10 pm

how i format my pen drive under user login

sheetal December 13, 2010 at 2:31 am

Dear Friends,

I have a transcend 4gb pen drive. When I insert my pendrive in my laptop, I can see it’s icon on my computer, but when i click on it’s properties it shows used space 0, available space 0. The pendrive contains important data, so i don’t want to loose it……What to do


Muhammad usman January 10, 2011 at 8:24 pm

I have got two of my USB memory sticks showing the message whenever I tried to open “The drive is not formatted, do you want to format it now”, Obviousely these are infected, my question: Do I have to foramt them at all, or is there any solution to disinfect and save the data in these drives?

Thanks for an answer

rajan February 28, 2011 at 11:58 am

when i was insert my pendrive i can’t open the shows “access denied” command.what shall i do plz
suggest to me.

manthira moorthi March 16, 2011 at 10:39 pm

i used cefc 2 gb pen drive. Yesterday i insert the pen drive in local dvd player usb port. that told no usb. after i can’t use my pen drive. because when i insert my pendrive in my computer usb port the pen drive light is working and suddenly open the auto play option. but now pendrive is light is off and my computer did not show the port. so i can’t use the pen drive. not only my computer. it’s not work other person computer and dvd players.
please help me if you know what the problem is?

Satyajit March 22, 2011 at 12:37 pm

Hi!! please help me from this great problem. I need to open my pendrive but could’nt. It asks to format every time. But i connot format, as because I need the important documents in it. Please advise how to copy those files out of the pendrive.

NARESH July 26, 2011 at 1:23 pm


Anil Shrestha October 21, 2011 at 7:40 pm

when i open my pen drive it open properly. there is no problem in writing data also. but if I remove my pen drive and insert again ,there will be no data. it is the problem of auto erasing. What to do
pls help Me!!

anonymous November 7, 2011 at 11:39 pm

how 2 remove the FUCKING (((RECYCLER VIRUS ))) from my pendrive. am unable to format thiz fucking virus from my pendrive as well as from my computer …. provide me with some solutions bro. i tried every thing but still am unable to delete it……..!!!

arun November 18, 2011 at 9:30 am

RECYCLER VIRUS ))) from my pendrive. am unable to format . how i can delete in my

Amit Kumar December 24, 2011 at 1:21 am

My Kaspersky Anti Virus did not save me. Had I received this advice earlier, I would have been saved by a lot of trouble. Thanks

sunil February 16, 2012 at 3:36 pm

hi, i have a memory card problem,
memory card not supported to my phone and also memory card not access through pc, so please give me suggestion how to recover the data from my corrupted memory card.

Leave a Comment

Previous post:

Next post:

© TroubleFixers – All about fixing computer troubles2007-2014 . All Rights Reserved.