![从损坏的 SD 卡恢复数据](https://linux22.com/image/1149897/%E4%BB%8E%E6%8D%9F%E5%9D%8F%E7%9A%84%20SD%20%E5%8D%A1%E6%81%A2%E5%A4%8D%E6%95%B0%E6%8D%AE.png)
我的手机和电脑无法再访问我的 SD 卡,这可能是因为块/扇区损坏。我尝试了所有方法,因为它包含我迫切需要的一些有用数据。它仍然列在$ lsblk但 dd 失败了。我甚至尝试了 ddrescue。如果有人能帮忙就太好了。以下是一些输出:
$ dmesg
mmcblk0: timed out sending r/w cmd command, card status 0x900
[ 369.099492] mmc0: tried to reset card
[ 379.098130] mmcblk0: timed out sending r/w cmd command, card status 0x900
[ 399.097725] blk_update_request: I/O error, dev mmcblk0, sector 0
[ 409.097205] Buffer I/O error on dev mmcblk0, logical block 0, async page read
[ 1338.184806] SQUASHFS error: squashfs_read_data failed to read block 0x0
[ 1338.184811] squashfs: SQUASHFS error: unable to read squashfs_super_block
[ 1416.122514] mmc0: card 1234 removed
[ 1432.666914] mmc0: new high speed SDHC card at address 1234
[ 1432.668118] mmcblk0: mmc0:1234 SA08G 7.29 GiB
$ sudo dd if=/dev/mmcblk0 of=/home/Documents/sd.img
dd: error reading '/dev/mmcblk0': Input/output error
0+0 records in
0+0 records out
0 bytes copied, 19.9988 s, 0.0 kB/s
$ sudo ddrescue /dev/mmcblk0 /home/Documents/sd.img
ddrescue: Can't open output file: Not a directory
$ sudo ddrescue /dev/mmcblk0 /home/Documents/
ddrescue: Can't open output file: Is a directory