我使用这个 USB 在这台机器上安装了 Ubuntu(所以它是一个可启动的 USB,用一些我不记得的程序创建),然后我尝试使用 gparted 对其进行格式化。我删除了所有可以删除的分区,只剩下一个,但每当我尝试创建一个新分区时,它都会显示:
Invalid argument during seek for write on /dev/sdb
另外,打开后,上面还写着:
The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
但是我可以简单地单击“忽略”这些。Gparted 似乎认为该设备有 60GB 大,而实际上它是 16GB;以下是打印:
gparted 上的设备信息 (这是在尝试创建新分区之后)
我不知道是什么导致了这个问题,我想过简单地在 Windows 中启动并尝试通过那里进行格式化,但现在 USB 甚至不再显示在“正常 GUI”上。(我假设这是由于我之前的“所有分区擦除”策略造成的)。
我只想将其格式化为 fat32,但如果您能告诉我是什么原因造成的,我将更加感激。
编辑:我有来自 gparted 的日志:
这是尝试创建 14Gb 的分区:
GParted 0.25.0 --enable-libparted-dmraid --enable-online-resize
Libparted 3.2
Create Primary Partition #1 (fat32, 13.67 GiB) on /dev/sdb 00:00:04 ( ERROR )
create empty partition 00:00:01 ( SUCCESS )
path: /dev/sdb2 (partition)
start: 1024
end: 7169023
size: 7168000 (13.67 GiB)
clear old file system signatures in /dev/sdb2 00:00:01 ( SUCCESS )
write 512.00 KiB of zeros at byte offset 0 00:00:00 ( SUCCESS )
write 4.00 KiB of zeros at byte offset 67108864 00:00:00 ( SUCCESS )
write 512.00 KiB of zeros at byte offset 14679539712 00:00:00 ( SUCCESS )
write 4.00 KiB of zeros at byte offset 14679998464 00:00:00 ( SUCCESS )
write 8.00 KiB of zeros at byte offset 14680055808 00:00:00 ( SUCCESS )
flush operating system cache of /dev/sdb 00:00:00 ( SUCCESS )
set partition type on /dev/sdb2 00:00:02 ( SUCCESS )
new partition type: fat32
create new fat32 file system 00:00:00 ( ERROR )
mkfs.fat -F32 -v -I -n " " /dev/sdb2 00:00:00 ( ERROR )
mkfs.fat 3.0.28 (2015-05-16)
/dev/sdb2: No such file or directory
libparted messages ( INFO )
The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
========================================
另外,我在某处看到我应该“卸载”126KB 分区,但该选项在右键单击菜单上显示为灰色。
重新创建可启动 USB 后的输出(如评论所建议):
GParted 0.25.0 --enable-libparted-dmraid --enable-online-resize
Libparted 3.2
Create Primary Partition #1 (ntfs, 11.72 GiB) on /dev/sdb 00:00:05 ( ERROR )
create empty partition 00:00:02 ( SUCCESS )
path: /dev/sdb2 (partition)
start: 1024
end: 6145023
size: 6144000 (11.72 GiB)
clear old file system signatures in /dev/sdb2 00:00:01 ( SUCCESS )
write 512.00 KiB of zeros at byte offset 0 00:00:00 ( SUCCESS )
write 4.00 KiB of zeros at byte offset 67108864 00:00:00 ( SUCCESS )
write 512.00 KiB of zeros at byte offset 12582387712 00:00:00 ( SUCCESS )
write 4.00 KiB of zeros at byte offset 12582846464 00:00:00 ( SUCCESS )
write 8.00 KiB of zeros at byte offset 12582903808 00:00:00 ( SUCCESS )
flush operating system cache of /dev/sdb 00:00:01 ( SUCCESS )
set partition type on /dev/sdb2 00:00:02 ( SUCCESS )
new partition type: ntfs
create new ntfs file system 00:00:00 ( ERROR )
mkntfs -Q -v -F -L "" /dev/sdb2 00:00:00 ( ERROR )
Failed to access '/dev/sdb2': No such file or directory
The device doesn't exist; did you specify it correctly?
libparted messages ( INFO )
The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
========================================
如果我尝试右键单击格式化,则会出现以下输出:
This partition cannot be modified because it contains a partition table; please reinitialize layout of the whole device. (udisks-error-quark, 11)
重新创建可启动 USB 并用于gdisk
从 MRB 更改为 GPT 之后 gparted 中信息的屏幕截图;
NTFS,大小正确,但仍然不起作用...... 我错过了什么?
答案1
一些安装程序使用混合闪存/DVD 配置,这可能会在 MBR 中分区表信息的预期位置留下随机数据。
我可能会将 MBR 清零,再三确认 sdX 是正确的驱动器,例如 sdb,并使用 parted -l 注意 el,而不是 1 也不是大写的 I。
sudo parted -l
sudo dd if=/dev/zero of=/dev/sdX bs=512 count=1
可能还会使用 fixparts 或 gdisk 来修复驱动器末尾的备份 gpt 分区表。我确实对所有新的较大闪存驱动器都使用 gpt