如何修复损坏的 NTFS

Mir*_*kan 3 linux backup hard-drive rsync

我试图使用 rsync 将我的 linux 盒 (ext4) 备份到外部 NTFS HDD 我遇到了一些失败错误,然后我使用“rm -r”和“rm -rf”删除了无法删除的外部 HDD 上的备份所有文件/目录,并且在此过程之后 HDD 发出一些奇怪的声音(即使它没有安装{是的,我仍然可以安装它})这发生了几次(重新备份并再次删除)然后我插入将设备插入 MS-Windows 并尝试使用“chkdsk /f”修复了声音问题并创建了一些名为“found.000 到 found.999”的文件夹/文件(即使使用隐藏选项,我也无法在 Windows 上看到它们)启用)它以某种方式恢复了我试图用 rm -rf 摆脱的东西,最后我决定用 rm -rf 在 linux 上删除所有 found.000-999 文件夹。

现在无论是在 Windows 上还是在 linux 上我都无法安装它,我可以看到在 Windows 上使用 diskmgmt.msc 的设备,并在灾难发生之前在 linux 上使用 lsblk/fdisk 它是一个单分区硬盘,现在它分为 4-5!

然而,保存数据非常重要/至关重要

这是一些输出

# fdisk -l /dev/sdc

Disk /dev/sdc: 1.8 TiB, 2000365289472 bytes, 3906963456 sectors
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: 0x6e697373

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sdc1  ?    1936269394 3772285809 1836016416 875.5G 4f QNX4.x 3rd part
/dev/sdc2  ?    1917848077 2462285169  544437093 259.6G 73 unknown
/dev/sdc3  ?    1818575915 2362751050  544175136 259.5G 2b unknown
/dev/sdc4  ?    2844524554 2844579527      54974  26.9M 61 SpeedStor

Partition table entries are not in disk order.
Run Code Online (Sandbox Code Playgroud)

,

# ntfsfix -d /dev/sdc
Mounting volume... ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 65535: Invalid argument
Record 0 has no FILE magic (0x0)
Failed to load $MFT: Input/output error
FAILED
Attempting to correct errors... ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 65535: Invalid argument
Record 0 has no FILE magic (0x0)
Failed to load $MFT: Input/output error
FAILED
Failed to startup volume: Input/output error
Checking for self-located MFT segment... ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 65535: Invalid argument
OK
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 65535: Invalid argument
Record 0 has no FILE magic (0x0)
Failed to load $MFT: Input/output error
Volume is corrupt. You should run chkdsk.
Run Code Online (Sandbox Code Playgroud)

谢谢

Mir*_*kan 5

我找到了一个很棒的开源工具testdisk并遵循了教程,是的,它为 HDD注入了新的活力