Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I copy my TV and movie DVDs to ISO files so as to have HandBrakeCLI rip away at them without having some GUI app eject a DVD 10 minutes after I go to sleep or head to work, thus doing nothing for hours and hours.
I've tried copying them using cat, dd (neither of which has error correction), readom (started throwing errors 1/2 way through) and readdvd (which silently hung 1/2 way through). No luck with any of them because of CSS encryption, even though readdvd decrypted the keys.
Brasero works great in GUI mode (but there's all that needless pointing and clicking), and is supposed to work in CLI mode, but I can't figure out the magic sauce to make it work.
So... any programs I've overlooked or ideas on how to make brasero work from the CLI?
To make an .iso mount the DVD (UDF) and then use something like
Code:
dd if=/dev/sr0 of=output.iso bs=2048
Barfs on CSS-encrypted disks.
Quote:
or
Code:
mkisofs -R -J /dev/sr0 -o /path/to/output.iso
Code:
$ mkisofs -R -J /dev/sr0 -o foo.iso
I: -input-charset not specified, using utf-8 (detected in locale settings)
genisoimage: No such file or directory. Invalid node - '-o'.
That's because mkisofs/genisoimage masters ISO images, not copies them.
Quote:
or
Code:
ddrescue –n –b 2048 /dev/sr0 output.iso
Use your own device nodes and syntax.
Code:
$ ddrescue –n –b 2048 /dev/sr0 output.iso
ddrescue: Too many files.
Try `ddrescue --help' for more information.
Anyway, it should barf on encrypted DVDs just as dd does.
Neither dd nor ddrescue should "barf" on CSS-encrypted DVDs, since, as its name says CSS scrambles the content of the disk, not its filesystem. And even if the filesystem would be encrypted or damaged dd/ddrescue simply wouldn't care and copy it anyway.
It may be that there are other copy protections in place and it is not CSS that causes your issues.
By the way, "barfs" is in no way a sufficient error description, it may help to see which error-message you exactly get.
Neither dd nor ddrescue should "barf" on CSS-encrypted DVDs, since, as its name says CSS scrambles the content of the disk, not its filesystem. And even if the filesystem would be encrypted or damaged dd/ddrescue simply wouldn't care and copy it anyway.
You'd think...
Code:
$ dd bs=2048 if=/dev/sr0 of=output.iso
dd: reading `/dev/sr0': Input/output error
73434+0 records in
73434+0 records out
150392832 bytes (150 MB) copied, 30.9552 s, 4.9 MB/s
ddrescue worked, but took forever. GUI brasero Just Worked.
Quote:
It may be that there are other copy protections in place and it is not CSS that causes your issues.
Doesn't appear to be the case, since brasero and dvdread go thru the whole "decrypting CSC keys" process.
I bought the DVD from Amazon, if that's what you mean.
That you bought the DVD does not mean that it is legal to copy it. This, of course, is dependent on the country you live in (in Germany it is for example illegal to circumvent any kind of copy-protection).
Distribution: slackware x86_64 , arm , slackware , AlmaLinux
Posts: 83
Rep:
Quote:
Originally Posted by TobiSGD
That you bought the DVD does not mean that it is legal to copy it. This, of course, is dependent on the country you live in (in Germany it is for example illegal to circumvent any kind of copy-protection).
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I have found this problem in the past when ripping DVDs to my hard drive using dd or dcfldd. Does anyone know a way around this without having to open the DVD in VLC or similar before ripping? It's quite tiresome when ripping a box-set for example.
Does anyone know a way around this without having to open the DVD in VLC or similar before ripping? It's quite tiresome when ripping a box-set for example.
That's the beauty of "cvlc :start-time=1 --stop-time=4": it does the opening and closing of vlc for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.