无法在 Fedora 中安装使用 ddrecovery 制作的映像

无法在 Fedora 中安装使用 ddrecovery 制作的映像

我最近换到了 Fedora。我有一个 NTFS 磁盘映像,是使用 ddrecover 从 Ubuntu 上的一个故障硬盘创建的。

在 Ubuntu 下,我可以正常挂载映像并恢复文件,但是在 Fedora 中,它似乎不太好用。

因此,在使用 mount 时遇到问题后,我明白了 kpartx 能为我做些什么。它似乎正确地检测到它是磁盘下的 1.0TB 循环设备。该映像是由 NTFS 磁盘制作的。但是,当我尝试将其挂载时,我收到此错误:

Error mounting /dev/loop0 at /run/media/User/Rock: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/loop0" "/run/media/Jesuszilla/Rock"' exited with non-zero exit status 12: Failed to read last sector (1953519615): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
   or it was not setup correctly (e.g. by not using mdadm --build ...),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/loop0': Invalid argument
The device '/dev/loop0' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
 (udisks-error-quark, 0)

到底发生了什么事?有没有办法解决这个问题?

编辑:找到解决方案了!我必须使用以下命令在磁盘上运行 ntfsfix:

ntfsfix /dev/loop0

然后它就安装好了!

答案1

找到解决方案了!我必须使用以下命令在磁盘上运行 ntfsfix:

ntfsfix /dev/loop0

然后它就安装好了!

相关内容