Jir*_*bow 4 partitioning usb gparted
我用这个 USB 在这台机器上安装了 Ubuntu(所以它是一个可启动的 USB,用一些我不记得的程序创建),我尝试使用 gparted 对其进行格式化。我删除了所有可以删除的分区,只剩下一个分区,但是每当我尝试创建一个新分区时,它都会说:
Invalid argument during seek for write on /dev/sdb
Run Code Online (Sandbox Code Playgroud)
此外,打开它时,它还会说:
The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
Run Code Online (Sandbox Code Playgroud)
但我可以简单地点击“忽略”。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.
========================================
Run Code Online (Sandbox Code Playgroud)
此外,我在某处看到我应该“卸载”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.
========================================
Run Code Online (Sandbox Code Playgroud)
如果我尝试右键单击格式,这是输出:
This partition cannot be modified because it contains a partition table; please reinitialize layout of the whole device. (udisks-error-quark, 11)
Run Code Online (Sandbox Code Playgroud)
重新创建可启动 USB 并gdisk用于从 MRB 更改为 GPT后 gparted 中的信息的屏幕截图;
NTFS,正确的大小,但仍然无法正常工作...... 我错过了什么?
一些安装程序使用混合闪存/DVD 配置,然后可能会在 MBR 中分区表信息的预期位置留下随机数据。
我可能会将 MBR 归零,确保 sdX 是正确的驱动器,例如带有 parted -l note el,而不是 1 或大写 I 的 sdb。
sudo parted -l
sudo dd if=/dev/zero of=/dev/sdX bs=512 count=1
Run Code Online (Sandbox Code Playgroud)
也可能使用 fixparts 或 gdisk 来修复驱动器末尾的备份 gpt 分区表。我确实将 gpt 用于所有新的更大的闪存驱动器
| 归档时间: |
|
| 查看次数: |
4132 次 |
| 最近记录: |