How to format FAT32 filesystem infected with windows virus and that is write protected

Posted by explorex on Ask Ubuntu See other posts from Ask Ubuntu or by explorex
Published on 2010-12-31T07:05:39Z Indexed on 2010/12/31 7:59 UTC
Read the original article Hit count: 430

Filed under:
|
|
|

Hi,

I have a pendrive with FAT32 filesystem. it is infected with virus dont know which but has autorun.inf and create exe file within folder. I tried to format it with various filesystems and even try to delete it with GParted but couldn't because it says it is write protected i can't even delete files. How to format it?

user@explorerx:~$ sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbd04bd04

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         498     3998720   82  Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2             499       19457   152287585+   f  W95 Ext'd (LBA)
/dev/sda5            5100       10198    40957686    7  HPFS/NTFS
/dev/sda6           10199       14787    36861111    7  HPFS/NTFS
/dev/sda7           14788       19457    37511743+   7  HPFS/NTFS
/dev/sda8             499        5099    36956160   83  Linux

Partition table entries are not in disk order

Disk /dev/sdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc13bc13b

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1        9729    78143488    7  HPFS/NTFS
/dev/sdc2            9729       19457    78143488    7  HPFS/NTFS

Disk /dev/sdb: 4194 MB, 4194304000 bytes
112 heads, 47 sectors/track, 1556 cylinders
Units = cylinders of 5264 * 512 = 2695168 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               2        1557     4091904    b  W95 FAT32

© Ask Ubuntu or respective owner

Related posts about filesystem

Related posts about usb-drive