Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save barseghyanartur/2c1872418db8f133a957feb96ef25981 to your computer and use it in GitHub Desktop.
Save barseghyanartur/2c1872418db8f133a957feb96ef25981 to your computer and use it in GitHub Desktop.
Copy protected DVD on Linux

Copy protected DVD on Linux

Identify the volume size

Identify the volume size as follows:

isoinfo -d -i /dev/sr0 | grep -i -E 'block size|volume size'

Example:

~$ isoinfo -d -i /dev/sr0 | grep -i -E 'block size|volume size'
Logical block size is: 2048
Volume size is: 2516480

Copy the DVD

Then use the identified volume size to copy the DVD to /home/me/Videos/dvd_x.iso:

dd if=/dev/sr0 of=/home/me/Videos/dvd_x.iso status=progress bs=2048 count=2516480 conv=noerror,notrunc,sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment