0
我有一个USB驱动器,我的Ubuntu机器无法格式化。我认为这个问题起源于我在Windows VM中使用Rufus或UNetBootin并出现蓝屏。这里没有重要的数据,我只是想能够使用它。这可能是不值得的麻烦,但我希望了解这个问题,以防万一它再次发生。我尝试了各种工具,但没有一个似乎足以重写分区表。格式USB与坏分区表(只读FS)
这是我尝试过的一些工具的输出。正如你可以注意到的,没有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
如果有人有一个低级解决方案,也许使用GRUB,我仍然想知道它。我不知道我是否可以重新创建问题,所以我可能无法测试它。 – lagagne