从 FAT 32 恢复数据

从 FAT 32 恢复数据

我用相机拍了一些视频。SD 内存是 FAT 32。到家后,当我插入 SD 时,我收到错误 Error mounted /dev/sdb1 at /media/user/disk: can't read superblock on /dev/sdb1

我尝试恢复一些东西,testdisk但是没有成功。

请您提供任何建议。

谢谢,安德里亚

我按照这个论坛给出的建议进行操作,但这个问题似乎很难解决:这是我使用 mke2fs和的输出fsck

user@user-All-Series:~$ sudo mke2fs -n /dev/sdb1
mke2fs 1.46.5 (30-Dec-2021)
/dev/sdb1 contiene un file system vfat
Proceed anyway? (y,N) y
Creazione del file system con 3788800 4k blocchi e 948416 inode
Etichetta del file system=95371903-f8cf-494c-af08-b14b32582d07
Backup del superblocco salvati nei blocchi: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

user@user-All-Series:~$ sudo fsck -b 32768 /dev/sdb1
fsck da util-linux 2.37.2
Usage: fsck.vfat [OPTIONS] DEVICE
Check FAT filesystem on DEVICE for errors.

Options:
  -a              automatically repair the filesystem
  -A              toggle Atari variant of the FAT filesystem
  -b              make read-only boot sector check
  -c N            use DOS codepage N to decode short file names (default: 850)
  -d PATH         drop file with name PATH (can be given multiple times)
  -f              salvage unused chains to files
  -F NUM          specify FAT table NUM used for filesystem access
  -l              list path names
  -n              no-op, check non-interactively without changing
  -p              same as -a, for compat with other *fsck
  -r              interactively repair the filesystem (default)
  -S              disallow spaces in the middle of short file names
  -t              test for bad clusters
  -u PATH         try to undelete (non-directory) file that was named PATH (can be
                    given multiple times)
  -U              allow only uppercase characters in volume and boot label
  -v              verbose mode
  -V              perform a verification pass
  --variant=TYPE  handle variant TYPE of the filesystem
  -w              write changes to disk immediately
  -y              same as -a, for compat with other *fsck
  --help          print this message
user@user-All-Series:~$ sudo fsck -b /dev/sdb1
fsck da util-linux 2.37.2
fsck.fat 4.2 (2021-01-31)
There are differences between boot sector and its backup.
This is mostly harmless. Differences: (offset:original/backup)
  1:58/00, 3:43/00, 4:61/00, 5:6e/00, 6:6f/00, 7:6e/00, 8:45/00, 9:4f/00
  , 10:53/00, 14:a0/18, 15:18/03, 26:80/ff, 33:00/80, 34:76/ce, 35:00/01
  , 36:b0/74, 37:03/0e, 65:01/00, 71:45/4e, 73:53/20, 74:5f/4e, 75:44/41
  , 76:49/4d, 77:47/45, 78:49/20, 79:54/20, 80:41/20, 81:4c/20
  Not automatically fixing this.

请帮忙。谢谢

答案1

testdisk实际上是最佳方法。但与许多类似的数据恢复策略一样,这种方法可能有效,也可能无效。如果无效,你可能真的运气不佳。

您可以尝试photorec,但据我所知,这主要适用于意外删除的文件。如果您的 FAT32 文件系统已损坏,那么这种方法可能也行不通。

遗憾的是,SD 卡的使用寿命有限,尤其是使用 FAT 文件系统时,它会反复写入相同的几个磁盘块;这往往会磨损闪存介质。在某个时候,它们会停止工作,这时就需要更换 SD 卡了。

在相机中设置重复的卡槽并并行写入(类似于镜像/ RAID 1)有助于避免数据丢失,但我想这对您来说已经太晚了。

相关内容