USB 驱动器处于只读状态,我无法修复它。
首先我尝试使用以下命令擦除它dd
:
root@yurko-laptop:/home/yurko-laptop# ls -l /dev/disk/by-id | grep usb
lrwxrwxrwx 1 root root 9 Дек 18 23:45 usb-Generic_Flash_Disk_C173828A-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Дек 18 23:45 usb-Generic_Flash_Disk_C173828A-0:0-part1 -> ../../sdb1
root@yurko-laptop:/home/yurko-laptop# dd if=/dev/zero of=/dev/sdb
dd: запись в «/dev/sdb»: На устройстве кончилось место
8257537+0 записей считано
8257536+0 записей написано
скопировано 4227858432 байта (4,2 GB), 942,633 c, 4,5 MB/c
之后我想使用以下命令创建新的文件系统fdisk
:
root@yurko-laptop:/home/yurko-laptop# fdisk /dev/sdb
You will not be able to write the partition table.
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): p
Disk /dev/sdb: 4227 MB, 4227858432 bytes
4 heads, 63 sectors/track, 32768 cylinders
Units = cylinders of 252 * 512 = 129024 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 18 32768 4126596 b W95 FAT32
Command (m for help):
fdisk
显示该分区仍然存在,并且我无法写入分区表。
我尝试删除现有的分区:
Command (m for help): d
Selected partition 1
Command (m for help): w
Unable to write /dev/sdb
root@yurko-laptop:/home/yurko-laptop#
为什么我无法写入分区表?
这是否意味着发生了某些硬件故障?
是否可以修复当前的 USB 驱动器?
我尝试使用hdparm
并且它显示readonly
标志已打开:
root@yurko-laptop:/home/yurko-laptop# hdparm /dev/sdb
/dev/sdb:
SG_IO: bad/missing sense data, sb[]: f0 00 05 00 00 00 00 0a 00 00 00 00 26 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
multcount = 0 (off)
readonly = 1 (on)
readahead = 256 (on)
geometry = 1016/131/62, sectors = 8257536, start = 0