我有一个USB驱动器,我的Ubuntu机器无法格式化。我认为问题源于我在Windows VM中使用Rufus或UNetBootin并获得蓝屏时。那里没有重要的数据,我只是希望能够使用它。它可能不值得麻烦,但我想了解问题,以防它再次发生。我尝试了各种各样的工具,但它们似乎都不足以重写分区表。
以下是我尝试过的一些工具的输出。您可以注意到,没有sdb1或任何找到的分区,因为该表不可读。如果唯一的解决方案是使用一些" .exe"我也可以使用Windows主机。但如果可能的话,我宁愿使用UNIX终端工具。
ls -l /dev/ | grep sdb
brw-rw---- 1 root disk 8, 16 Mar 26 10:57 sdb
sudo hdparm -r0 /dev/sdb
/dev/sdb:
setting readonly to 0 (off)
readonly = 0 (off)
sudo partprobe -s /dev/sdb
Warning: Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Warning: Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Warning: Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
/dev/sdb: msdos partitions
sudo gparted /dev/sdb
libparted : 3.2
Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
/dev/sdb: unrecognised disk label
sudo fdisk -l /dev/sdb
Disk /dev/sdb: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
sudo partx -l /dev/sdb
partx: /dev/sdb: failed to read partition table
sudo partx -d /dev/sdb
partx: specified range <1:0> does not make sense
sudo fsck.fat -n /dev/sdb
fsck.fat 3.0.28 (2015-05-16)
Logical sector size (65535 bytes) is not a multiple of the physical sector size.
sudo blkid -pi /dev/sdb
DEVNAME=/dev/sdb
MINIMUM_IO_SIZE=512
PHYSICAL_SECTOR_SIZE=512
LOGICAL_SECTOR_SIZE=512
sudo wipefs -a /dev/sdb
wipefs: error: /dev/sdb: probing initialization failed: Read-only file system
答案 0 :(得分:0)
显然Ubuntu上的Startup Disk Creator根本不关心驱动器上的内容。我想它总是创建自己的分区表。因此我将它与Ubuntu图像一起使用,假设它会失败并且非常惊讶。然后我使用GParted有一个空的FAT32分区,现在我可以使用我的驱动器没有任何问题(除了未来的格式)。奇怪的是,GParted首先认为我的驱动器是60GB并成功创建了一个分区表,但创建分区失败了。在错误消息之后,驱动器的大小正确显示为16GB,因此我成功创建了分区。
答案 1 :(得分:0)
遇到同样的问题,先卸载然后格式化对我有用,
这里假设/ dev / sdb1是我的设备所在的位置。
sudo umount /dev/sdb1
sudo mkdosfs -F 32 -I /dev/sdb1