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
    0
    ·
    2 years 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.

    • Artemis_Mystique@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      2 years ago

      Yes it lives on BTRFS, I tried a few solutions but some gave this Read error Error demuxing input file 0: Input/output error video1.mkv: Input/output error and other things i tried said that i dont have hevc support(Yay Fedora) I might be wasting more time than necessary on the file.so i might just give up

        • Artemis_Mystique@lemmy.mlOP
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          Thank you I think i might distro hop considering how many problems fedora is giving me, as for the file; it refuses to budge, i have found another such file within the same set, i might just leave it there for future me.

        • Artemis_Mystique@lemmy.mlOP
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          I did a BTRFS scrub on the partiton and this is what came up Duration: 0:17:54 Total to scrub: 63.82GiB Rate: 60.85MiB/s Error summary: read=528 csum=48 Corrected: 570 Uncorrectable: 6 Unverified: 0 I dont know what else to do from here

            • Artemis_Mystique@lemmy.mlOP
              link
              fedilink
              arrow-up
              0
              ·
              2 years ago

              A SMART Test showed 6 bad sectors but overall disk assessment was ok(I dont think there is any connection between the file and the HDD), yes that file has not been fixed, the disk in question used to be my main bootdrive a few days ago, I shrunk the partition and created a new EXt4 and i am slowly copying files that are worth keeping, i removed the ODD from my laptop and installed a caddy, intend to use it as a second drive(The file in question has no sentimental value)

                • Artemis_Mystique@lemmy.mlOP
                  link
                  fedilink
                  arrow-up
                  0
                  ·
                  2 years ago

                  Thank you Id 197 and 198 reported 5 & 6 respectively(bad sectors decreased from 6 to 5), Is it possible to copy a file non sequentially; say back to front so i can just join those 2 parts together?

      • s38b35M5@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        What are the results of a scrub on the filesystem? I’m not familiar with BTRFS, but use ZFS, and a scrub is where I would start in your shoes.

        • Artemis_Mystique@lemmy.mlOP
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          I did a scrub and this is what it showed when i ran btrfs scrub status : Duration: 0:17:54 Total to scrub: 63.82GiB Rate: 60.85MiB/s Error summary: read=528 csum=48 Corrected: 570 Uncorrectable: 6 Unverified: 0