How to format a memory card which is infected by a virus and antivirus is not able to delete it

1

I've bought a memory card which is recently infected by a virus. I tried to scan it with latest Bitdefender 2014 and Norton 2014 they both failed to delete the virus. Then I deleted the partition and created a new partition in gparted for Linux, but the virus remains.

Please advice me on how to remove the virus from the memory card.

Anirudh Pulikonda

Posted 2014-01-02T12:01:33.237

Reputation: 101

5If you deleted the partition and the virus came back, its the actual computer your using to access the storage device, that is infecting it. – Ramhound – 2014-01-02T12:16:24.903

1What do you mean by this ?

" Then I deleted the partition and created a new partition in gparted for Linux, but the virus remains."

What do you think is the virus in ur pc ? – Unnikrishnan – 2014-01-02T12:36:38.503

I second Ramhound. If you've cleared properly your card, then the only option left is your PC that reinfects it (or a quite sophisticated virus). – EliadTech – 2014-01-02T18:40:05.297

1If your anti-viruses cannot find this virus, what makes you so sure there is one ? It cannot survive deletion of partition, thus either the is no virus or you computer is infected, as explained by the others. – Levans – 2014-01-02T20:14:07.813

Answers

7

This probably happens because your computer is infected. You might delete it but then your computer is going to re-infect it again.

My vote goes to use a linux machine to format it, since it doesn't execute code upon plugging the flash drive. Then clean your computer before plugging it and infecting it again!!

If on the other hand your machine is already linux, clean the machine first with the card away and then clean the card.

brunch875

Posted 2014-01-02T12:01:33.237

Reputation: 373

No my computer is perfect I've tried in fresh linux ubuntu and kali linux but no use – Anirudh Pulikonda – 2014-01-02T12:25:17.560

@AnirudhPulikonda What exactly did you try from Linux? – slhck – 2014-01-02T12:36:00.563

i tried to format it using the "disks" software but no use – Anirudh Pulikonda – 2014-01-02T12:37:44.793

1

when you boot in linux, go to the console.

determine the device by using the command: fdisk -l

then zero your out your memory card

dd if=/dev/zero of=/dev/sdb (assuming that sdb is your memory card)

Krijn Swinnen

Posted 2014-01-02T12:01:33.237

Reputation: 86

0

Paranoid mode: Get a Linux LiveCD after checking the MD5 sum, disconnect the hard drive cable inside the PC's case, unhook the Ethernet cable, disconnect the USB Wi-Fi radio or flip the mechanical switch to turn the wireless off, then use the terminal with dd to zero out the memory card. Do it with /dev/urandom then re-boot to the Live CD again, then do it with /dev/zero again. Then make ABSOLUTELY SURE the target PC you are using the memory card on is virus free.

In the old days I had to use a rare-earth magnet on floppy disks to make sure the viruses were gone.

Brent Fisher

Posted 2014-01-02T12:01:33.237

Reputation: 41