我有一个 16GB Sandisk 拇指驱动器,最近在传输数据时被“锁定”,现在我无法对该驱动器执行任何操作,只能读取剩余数据。下面是一些尽可能多地获取信息的尝试。
- 尝试将驱动器归零
sudo dd if=/dev/zero of=/dev/sdb dd: failed to open '/dev/sdb': Read-only file system
- 尝试获取 SMART 信息:
sudo smartctl -d scsi --all /dev/sdb smartctl 6.6 2016-05-31 r4324 [x86_64-linux-5.4.0-42-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Vendor: SanDisk Product: Cruzer Blade Revision: 1.27 Compliance: SPC-4 User Capacity: 15.744.892.928 bytes [15,7 GB] Logical block size: 512 bytes Serial number: 20044317411DEF60D95B Device type: disk Local Time is: Wed Aug 19 14:42:34 2020 WIB SMART support is: Available - device has SMART capability. SMART support is: Enabled Temperature Warning: Disabled or Not Supported === START OF READ SMART DATA SECTION === SMART Health Status: OK Current Drive Temperature: 0 C Drive Trip Temperature: 0 C Error Counter logging not supported Device does not support Self Test logging
- 尝试扫描
badblocks
:sudo badblocks -v /dev/sdb > badsectors.txt Checking blocks 0 to 15375871 Checking for bad blocks (read-only test): done Pass completed, 0 bad blocks found. (0/0/0 errors)
- 尝试删除 READ-ONLY 标志:
sudo hdparm -r0 /dev/sdb /dev/sdb: setting readonly to 0 (off) readonly = 0 (off)
我应该怎么办?
仅供参考:这个拇指驱动器的不幸与我的硬盘同时发生,它发布在如果 dd 0 没有“格式化”我的磁盘,我该怎么办?,硬盘就被判永远死了。
答案1
看起来,由于某种未知的原因,拇指驱动器无法进入这种状态......设备本身,而不是文件系统。
您可以尝试以下方法来重置标志:
hdparm -r0 /dev/sdb
类似的事情也发生在我身上:USB 拇指驱动器突然变成“只读”。不幸的是hdparm
,其他方法都失败了,所以我认为设备死了。