从 USB 驱动器复制文件失败 - I/O 错误或参数无效

从 USB 驱动器复制文件失败 - I/O 错误或参数无效

我正在尝试将文件从 USB 记忆棒复制到另一个驱动器。至少文件名似乎已损坏,ls显示为:

'ZHECMIv'$'\027''.PDF'
'ZHEKMI>2.P─F'
 ZHENIL~1.PDF
'эeloѤyfɯrɥvdr.2uOroä䁲igez_o_聴eŢe'$'\340\240\256''Ű聤f'
'ၙan­P⁩ѥòѳen-ၐoint-M䁯rѴ&`df'

复制失败并出现如下错误:

cp: error reading '/media/pg/VERBATIM/2012/03/MVANES~0.PDF': Input/output error
cp: cannot create regular file '/media/pg/Elements SE/verba/2012/03/ERANmS~3.P'$'\004''B': Invalid argument
cp: cannot stat '/media/pg/VERBATIM/2014/09/f5'$'\004''7'$'\004''0'$'\004''.': No such file or directory

如果只有文件名损坏,我尝试了以下方法:

pg@TREX:~$ cp /media/pg/VERBATIM/2012/02/'YQ83A1'$'\177''0.╨DF' ./1.pdf
cp: error reading '/media/pg/VERBATIM/2012/02/YQ83A1'$'\177''0.╨DF': Input/output error

fsck.vfat -n显示:

fsck.fat 4.2 (2021-01-31)
There are differences between boot sector and its backup.
This is mostly harmless. Differences: (offset:original/backup)
  65:01/00
  Not automatically fixing this.
FATs differ but appear to be intact.
  Using first FAT.
Cluster 113918 out of range (67222785 > 1968189). Setting to EOF.
Cluster 113928 out of range (2211211 > 1968189). Setting to EOF.
Cluster 113929 out of range (67222860 > 1968189). Setting to EOF.
Cluster 113937 out of range (2211092 > 1968189). Setting to EOF.
...
Cluster 657871 out of range (1). Setting to EOF. (Several)
...
Cluster 1940714 out of range (1342259Internal error: next_cluster on bad cluster
52 > 1968189). Setting to EOF. (once)

fdisk -l输出:

pg@TREX:~$ sudo fdisk -l /dev/sde
Disk /dev/sde: 30.05 GiB, 32262586368 bytes, 63012864 sectors
Disk model: STORE N GO      
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start      End  Sectors Size Id Type
/dev/sde1          32 63012863 63012832  30G  c W95 FAT32 (LBA)

这些文件是否会永久丢失,或者是否有我可以尝试恢复它们的工具?

  • Debian Bullseye 已完全更新
  • $LANG设置为 en_US.UTF.8
  • USB 记忆棒 32GB,VFAT
  • 使用Win10 Pro将数据添加到驱动器

答案1

cp: error reading <filename>: Input/output error表明文件名以外的位置也存在损坏。

fdisk对于 GPT 分区的外部磁盘,输出是正常的。大小与您所说的 32 GB 不匹配,但 1.82 TiB 与Elements SE 25FD报告的磁盘型号一致:您的命令fdisk真的针对正确的磁盘吗?fdisk

根据cp命令输出,您似乎列出了fdisk正在恢复文件的磁盘的输出,而不是您要恢复的 USB 记忆棒

我建议使用ddrescue镜像失败的 USB 记忆棒并处理副本,和/或使用摄影记录尝试恢复文件,因为它是专为从失败的闪存类型媒体中拯救文件而设计的。

相关内容