恢复 USB 存储介质几何形状

恢复 USB 存储介质几何形状

我想使用 Linux 工具恢复 USB 驱动器,损坏是由于驱动器错误断开连接造成的。当 U 盘连接到 Linux 时,没有挂载 fs。

我开始了“旅行”,寻找输出dmesg

[  738.226184] usb 1-7: USB disconnect, device number 3
[  741.572530] usb 1-7: new high-speed USB device number 4 using xhci_hcd
[  741.722069] usb 1-7: New USB device found, idVendor=090c, idProduct=3259
[  741.722074] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  741.722077] usb 1-7: Product: SM3259AA MEMORY BAR 
[  741.722080] usb 1-7: Manufacturer: Silicon Motion,Inc. 
[  741.722860] usb-storage 1-7:1.0: USB Mass Storage device detected
[  741.723116] scsi host4: usb-storage 1-7:1.0
[  742.752857] scsi 4:0:0:0: Direct-Access     SMI      USB MEMORY BAR   1000 PQ: 0 ANSI: 5
[  742.753591] sd 4:0:0:0: Attached scsi generic sg2 type 0
[  742.756871] sd 4:0:0:0: [sdc] Attached SCSI removable disk

一切似乎都正常,但当我使用时,lsblk驱动sdc器没有显示。我重复了lsblk带有-a选项的命令(该选项显示所有块设备,甚至是空的块设备),然后sdc驱动器出现了,但没有关于它的信息。

然后我使用hdparam -g /dev/sdc命令显示它的几何形状:

/dev/sdc:
 geometry      = 1024/0/62, sectors = 0, start = 0

我认为问题就在这里。我猜想几何结构遵循标准命名法C/H/S。显然,该hdparm -t /dev/sdc命令显示“计时缓冲磁盘读取:read() 命中 EOF - 设备太小”消息。

然后我去了解该设备的原始几何形状并使用hdparm -I /dev/sdc

/dev/sdc:
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

ATA device, with non-removable media
    Model Number:       *S`�Ccon Motion,Inc.
    Serial Number:      EMOMYRB RA  0100�
    Firmware Revision:      
    Media Serial Num:   2$XArd��������@� `��B�OOT����
    Media Manufacturer: ���������??����
    Transport:          Parallel; Revision: 0x0703
Standards:
    Used: unknown (minor revision code 0x0020) 
    Supported: 5 
    Likely used: 5
Configuration:
    Logical     max current
    cylinders   2   0
    heads       2560    0
    sectors/track   58  0
    --
    Logical/Physical Sector size:           512 bytes
    device size with M = 1024*1024:         145 MBytes
    device size with M = 1000*1000:         152 MBytes 
    cache/buffer size  = unknown
Capabilities:
    IORDY(may be)(cannot be disabled)
    Standby timer values: spec'd by Vendor
    R/W multiple sector transfer: Max = 32  Current = ?
    DMA: not supported
    PIO: unknown
Integrity word not set (found 0x0000, expected 0xfea5)

我不知道为什么信息中会出现奇怪的(非 ASCII)字符(显示dmesg正确),但我看到了“最大”配置和当前配置(全部为零),我认为它可以恢复(我猜是的)。

有办法恢复 USB 驱动器吗?(里面的信息并不重要,可能会被删除或覆盖)。

笔记:我尝试使用fdisk/sfdisk/testdisk但没有成功,因为“未找到介质”。

相关内容