脚步:

脚步:

如何将 USB 恢复出厂设置?

我有一个 hp 4gb usb,似乎分区表混乱,ubuntu 无法识别所有空间。我尝试在磁盘中格式化它。但没用。如何在 ubuntu 上让 usb 恢复如新?

我以默认方式格式化它 - FAT。最初发生的事情是我执行了 sudo dd if=memtest86-usb.img of=/dev/sdb 以在 usb 上安装 memtest86。完成后,我以默认方式格式化它,但 Ubuntu 在 nautilus 中一直将其称为 51mb 卷。我格式化它并尝试将其与 winusb 一起使用。

winusb 给了我一个错误。

Installation failed ! Exit code: 256 Log: Formating device... Error: The backup GPT table is not at the end of the disk, as it should be. This might mean that another operating system believes the disk is smaller. Fix, by moving the backup to the end (and removing the old backup)? Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space (an extra 7655424 blocks) or continue with the current setting?

Error: You requested a partition from 1000kB to 4077MB. The closest location we can manage is 17.4kB to 157MB.

然后我尝试按照第一个答案中的建议进行操作页面。我现在正尝试将 USB 与 winusb 一起使用,但 winusb 只是不断尝试对其进行格式化。

输出sudo parted -l

Model: ATA TOSHIBA MK5076GS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size    Type      File system  Flags
 1      1049kB  496GB  496GB   primary   ext4         boot
 2      496GB   500GB  3868MB  extended
 5      496GB   500GB  3868MB  logical


Model: USB DISK 2.0 (scsi)
Disk /dev/sdb: 4077MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0.00B  4077MB  4077MB  fat32


Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/cryptswap1: 3868MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End     Size    File system     Flags
 1      0.00B  3868MB  3868MB  linux-swap(v1)

默认方式:Ubuntu 14.04程序“磁盘”-格式化-(快速)(FAT)

winusb 是一个用于制作 Windows 安装磁盘的 Linux 程序。

答案1

磁盘对我来说很少管用,但 Gparted 是一个很好的替代方案。我知道有人已经建议使用 Gparted,你试过了,但失败了。我认为这是因为你没有先创建一个新的分区表,而且我相信你当前的表已损坏,因为它显示为“循环”,所以我建议再次尝试 Gparted;你有什么损失呢。这次创建一个新的分区表,然后创建一个新的分区。你将丢失驱动器上当前的所有数据。

脚步:

  1. 在终端类型中sudo apt-get install gparted

  2. 从应用程序屏幕打开 Gparted。

  3. 从最右边的下拉菜单中选择您的设备。

  4. 从顶部菜单中单击“设备”,然后选择“创建分区表”。

  5. 从分区表菜单中选择分区表类型。[MBR 和 GPT 是最常用的。如果您不确定选择哪个,请选择 MBR。在 Gparted 中,MBR 称为“msdos”。]

  6. 该驱动器现在应显示为未分配。右键单击它并选择“新建”。更改所需选项,然后单击“添加”。

[我使用的设置的截图:https://copy.com/qvCWZBqdKfRz]

  1. 单击顶部菜单上的绿色复选标记,然后单击提示上的“应用”。

  2. 点击提示中的“关闭”。您的设备现在已可供使用。

笔记:

  • Gparted 仅支持快速格式化。

答案2

你尝试过 gparted 吗?

sudo apt-get install gparted

插入 USB,打开 gparted,选择 USB 设备,通常名称为 /dev/sd*,其中 * 是字母。删除所有分区,然后创建一个新分区,格式为 fat32 或任何你想要的格式。

答案3

有时,如果您创建的分区小于实际的存储棒大小,可能会发生这种情况,可能是使用其他工具(?)。我使用 HP USB 磁盘存储格式化工具(在 Windows 中运行,需要管理员权限)解决了该问题。

HP USB 磁盘存储格式化工具 (Windows)

相关内容