如何格式化受 Windows 病毒感染且具有写保护的 FAT32 文件系统

如何格式化受 Windows 病毒感染且具有写保护的 FAT32 文件系统

我有一个 FAT32 文件系统的 U 盘。它感染了病毒,不知道是什么病毒,但有 autorun.inf 并在文件夹中创建了 exe 文件。我尝试使用各种文件系统对其进行格式化,甚至尝试使用 GParted 将其删除,但无法做到,因为它说它受到写保护,我甚至无法删除文件。如何格式化它?

用户@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

karthick87 的更新

用户@explorerx:~$ sudo fdisk /dev/sdb

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
     switch off the mode (command 'c') and change display units to
     sectors (command 'u').

Command (m for help): d
Selected partition 1

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)

E

答案1

如果出现任何故障,您可能需要运行专有恢复工具超越以低级方式重新格式化您的 U 盘。

不幸的是这个工具需要视窗,此外你还需要你的产品序列号 (S/N)(在我的情况下,这仅印在产品的泡罩上)。如果您丢失了 S/N,则需要联系 Transcend。

答案2

你试过了吗:

sudo mkfs.vfat /dev/sdb1

dev 不应该被挂载

答案3

应该很简单。确保驱动器已卸载,然后删除当前分区,之后您将需要创建一个新分区。我找到了一个关于如何执行此操作的非常好的教程。对我有用。如何在 Ubuntu 中重新格式化和分区磁盘

相关内容