【发布时间】:2017-03-26 15:48:25
【问题描述】:
我有一个我的 Ubuntu 机器无法格式化的 USB 驱动器。我认为问题源于我在 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
【问题讨论】: