I have some locally stored media i was copying between drives and one mkv file gave this error error reading 'video1.mkv': Input/output error and only copied 176/256 MiB; the copied file plays the video only up to a certain point before abruptly closing; I can play the original file fine albeit there is a noticeable hitch at that point but the video plays normally till the end I have tried zipping the file but it fails to zip it I tried copying it using ffmpeg but it also gave the same error I can copy the file in the same directory but trying to copy the copy also gives the same error I tried copying to a variety of different storage drives and it still gave me this error any ideas?

  • damium@programming.dev
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 year ago

    It’s very likely that your disk is failing.

    dd if=/path/to/file.mkv of=/new/file/path.mkv conv=noerror,sync bs=4k

    Should give you a file with just the damaged bits missing.