VeraCrypt icon indicating copy to clipboard operation
VeraCrypt copied to clipboard

Failed to mount Input/output error

Open LogWell opened this issue 1 year ago • 0 comments

中文 我在ubuntu系统中挂载了一个机械硬盘,里面有备份的数据src,然后用vercrypt创建了一个加密盘dst,用代码将src复制到dst,隔了几个小时后我发现机器卡死(可能是硬件故障),强制重启后出现如下错误,请问该如何解决? 注:我的电脑只安装了ubuntu系统

English I mounted a HDD in the Ubuntu system. There is backed up data src in it. Then I created an encrypted disk dst with Veracrypt. I used code to copy src to dst. After a few hours, I found that the machine was frozen (possibly due to hardware failure). After a forced restart, the following error occurred. How can I solve this problem? Note: Only the Ubuntu system is installed on my computer.

import subprocess


def rsync_sync(path_src, path_dst):

    rsync_command = [
        "rsync",
        "-av",
        "--delete",
        "--exclude=TempDY/*",
        path_src + '/',
        path_dst,
    ]

    try:
        subprocess.run(rsync_command, check=True)
        print("Sync completed successfully.")
    except subprocess.CalledProcessError as e:
        print(f"Sync failed: {e}")


if __name__ == "__main__":
    path_src = '[...]/backup/archive-20241222'
    path_dst = '/media/veracrypt1/archive-20241222'
    rsync_sync(path_src, path_dst)

image

image

VeraCrypt_001

$MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/mapper/veracrypt1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.

LogWell avatar Jan 13 '25 14:01 LogWell