I want to create a bit-by-bit backup of my DVD and a Blu-ray disc without removing its encryption. Is dd be the best method, and if so, what flags or settings should I use? Also, is comparing the SHA-256 hash of the generated ISO file with the hash of the original disc’s raw data (read from /dev/sr0) the best method for verifying the backup’s integrity?

  • Majestic@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    17 minutes ago

    This is silly. You’re approaching this with wrong-headed thinking. Just use makemkv.

    What you will have if you used hacked firmware to bypass physical anti-copying methods present on BluRay discs to actually get a bit for bit copy of your disc is a useless blob of encrypted data that you have no way of verifying for accuracy (that it was copied correct or that the disc itself didn’t have subtle physical damage which gave you something damaged because you can’t play it to verify) and which you have no way of using. You’ll have no way of ripping it or turning it into usable data in future if your disc does go bad because no one else uses this method so there’s no software that will allow you to turn this encrypted blob easily back into a playable movie and to burn it to a new BluRay writable disc would break laws anyway because you’re engaging in duplication and secondly all BluRay authoring (burning) programs are built around building and burning unencrypted video files to a disc not around burning an encrypted blob to a disc (often specific sectors containing specific data must be written to specific parts of the disc to make it playable, something no public program will help you with when trying to bit for bit copy in reverse and which blindly bit for bit copying at low level isn’t likely to achieve).

    Everyone else breaks the encryption and dumps a copy of the disc including the AACS keys and certs to prove ownership and you should do the same rather than thinking you’re particularly special or vulnerable. If you’re that much an enemy of the state or media companies they’ll do you just as much for having the encrypted copies and state you had INTENT to break it (and indeed defeated DRM mechanisms on the drive firmware itself first which may be a violation of law in order to get that copy) if they’re trying to make an example out of you because you’ve pissed them off.

    In practice no media company is likely to go after someone breaking the encryption while retaining the discs and keeping the copies only for themselves. There’s simply no incentive to harassing paying customers in that way if you’re not uploading the contents or hosting a for-profit Plex or Jellyfin server of the contents or burning bootleg copies of the films. You’d have to go around publicly bragging in your own name about breaking the encryption and pretty much dare them to get you for them to know or care enough to do anything about it short of you otherwise breaking the law as I outlined above.

  • non_burglar@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    9 hours ago

    Blueray have anti-copying built into non-data areas, plus Cinavia DRM on the content most of the time. This means your 1-to-1 copies won’t play.

    If you are hoping to make a playable bluray, use one of the tools that reads past both and creates a non-drm image.

    Depending on where you live, this likely breaks copywrite, but isn’t illegal.

    • H0NEYB3RRYGREEN23@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 hour ago

      I know it won’t work with DRM, but my main goal is just to back it up as close to the original as I can. If the disc breaks later, I can burn it to a DVD or Blu-ray and get everything back up and running.

  • eleijeep@piefed.social
    link
    fedilink
    English
    arrow-up
    5
    ·
    15 hours ago

    I would look at the tools that the preservation groups use for doing this. The optical media layouts are funky and IIRC using dd on the block device is not enough to archive a bit-for-bit copy. There are details about the track layout and so on that need to be recorded separately. This is why formats like BIN/CUE exist.

    eg. https://wiki.redump.info/Redump#Technical_Questions

    • H0NEYB3RRYGREEN23@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 hour ago

      Thanks for mentioning the redump wiki. I hadn’t considered others might be working on this for preservation. I’ll need to dive deeper into it.

    • eldavi@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 hours ago

      i was going to extol dd_rescue’s virtues, but my own efforts to do what OP is trying to accomplish proves that they’ll have limited success thanks to drm.

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    13 hours ago

    dd is neither the best nor a suitable method (dd is a scalpel not a shovel, use cp or cat). But optical media are tricky either way, with purposedly placed reading errors and stuff. redumper was made for a disc preservation initiative. Does a good job so far for me, but best to use old SATA drives with it. Those between 2010 and 2015 (pre-DRM-crackdown) also don’t need libredrive.

    • H0NEYB3RRYGREEN23@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 hour ago

      Thanks for mentioning redumper. I’ll check it out. In your experience, after completing the disk dump with redumper, did you have a method to verify the copied data matched the original exactly?

  • ArsonButCute@programming.dev
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    23 hours ago

    I’d recommend ddrescue over dd for optical media backups only because if you’ve got bad blocks it will try them again at a different speed/angle

      • ten8tp@reddthat.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        22 hours ago

        If so this is clever. In the wild event they get into some sort of trouble with copying, they have a bit-for-bit copy proving they own/owned the BluRay instead of a ripped copy.

    • Ŝan • 𐑖ƨɤ@piefed.zip
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      13
      ·
      23 hours ago

      Not OP, but DVD and BlueRays have a shelf life of 3-5 years. Þey will probably be fine for 10, maybe longer, but mass market products tend to be printed wiþout concern for longevity. I’ve had CDs delaminate; storage conditions definitely play a factor.

      Þere is a BD-compatible archival standard called alternatively M-DISC or BDXL which uses different materials and processes and is guarateed for 100 year, with a reasonable expectation of usability wiþin a millenium.

      So: OP could be wanting backups in case of accident or loss; or þey want to migrate media from 5y DVD to 100y M-DISC; or maybe every 5y þey reclone þeir entire library, buying þemselves anoþer guaranteed 5ys. Lots of reasons.

      Why not strip þe DRM? Scared of the US paramilitary enforcing capitalism? Or þey believe þey’ll have perpetual access to it and it’s too hard. I dunno.

      Lots of reasons.

      • BCsven@lemmy.ca
        link
        fedilink
        arrow-up
        7
        ·
        edit-2
        22 hours ago

        I have CDs from the 80s they are perfectly fine. I think people bought super cheap R/W at some point and found them crappy, but a factor CD/DVD last a very long time

        • cmnybo@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          4
          ·
          19 hours ago

          Pressed discs last for decades, but they still fail and should be backed up. I’ve never heard of anyone wanting to keep the DRM before though.

        • nixFREAK@sopuli.xyz
          link
          fedilink
          arrow-up
          3
          ·
          19 hours ago

          Yeah I was going to say , that’s not right, optical format can survive if the median is taken care of.