public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Cloning movie DVDs with dd - only works after accessing disk with another command?
@ 2009-08-11  4:43 Stroller
  2009-08-11  4:47 ` Stroller
                   ` (3 more replies)
  0 siblings, 4 replies; 32+ messages in thread
From: Stroller @ 2009-08-11  4:43 UTC (permalink / raw
  To: gentoo-user

Hi there,

Now I've got this new machine with all this space on it (or rather:  
now I seem to be more interested in doing stuff with this machine I  
built a while ago), I'm starting on the process of ripping all my DVDs.

In the past I tried media-video/undvd for DVD ripping, but its .mp4  
support now is broken, and probably won't be fixed.

This week I've been trying HandBrakeCLI, and it seems to work pretty  
darn lovely.

But the difference is that undvd has a simple --clone option which  
copies the DVD to disk first, and HandBrakeCLI doesn't.

To save wear & tear on my optical drive I have been cloning the DVD to  
disk before ripping, and I've noticed that it doesn't seem to work if  
I just do `dd if=/dev/cdrom of=disc.iso`. It seems like I have to  
access the disk using some other command first, then dd works just  
fine (in exactly the way I tried a moment before).

Can anyone explain this, please?

I'm guessing it has something to do with DeCSS encryption, but firstly  
I don't understand how that applies to dd, because I'd have assumed  
that treats the drive as a block device. Secondly, if this is related  
to DeCSS, I don't understand why accessing the disk with one command  
leaves it unlocked for another command to access the disk a minute  
later.

Anyone got any thoughts, please?

I haven't looked into this deeply myself, yet, so I'm not able to give  
a full analysis of how exactly the behaviour is manifesting itself. I  
tried dd'ing one disk and it didn't work, so I started undvd working  
with the --clone option and cancelled when the cloning had finished  
(and the rip began). I basically wanted to see if it worked or failed,  
and it worked just fine, so I looked through undvd's source and it  
_seems_ (I say "seems" lest I'm reading undvd's perl code wrongly)  
just to use dd itself. So next I tried `dd if=/dev/cdrom  
of=disc_manual_dd.iso` myself and not only did it work just fine, but  
the md5sums of the two images (the one produced by undvd & the one  
produced by my manual dd) were identical.

So I tried with a different disk - take a look at the attached  
cloning.txt - and dd fails repeatedly at 770kB. Then I run scandvd on  
the disk and after that dd works perfectly, "8027521024 bytes (8.0 GB)  
copied". scandvd is a tool which is packaged with undvd and it runs  
mplayer (I'm sure) on the disk, then shows the number of tracks on the  
disk in a pretty format.

This is no kind of a show-stopper for me, because I've described the  
workaround above, it's just a curiosity. I guess I'm not alone on here  
in wanting to know how these computer things work.

I'd be really interested if anyone else's DVD drives show the same  
behaviour. Does dd fail for you when you try it on a new movie? If you  
don't have undvd installed, just run `mplayer dvd://`, cancel it and  
then try dd again.

Sorry if I've been a little verbose with my explanation, BTW. It's a  
little late here, I'm a little tired, and with these weird things that  
I almost don't believe myself I always like to explain  
comprehensively, and it prolly reads like I'm blabbering.

Thanks for any thoughts,

Stroller.




^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2009-08-14  7:01 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11  4:43 [gentoo-user] Cloning movie DVDs with dd - only works after accessing disk with another command? Stroller
2009-08-11  4:47 ` Stroller
2009-08-11  6:51   ` [gentoo-user] " Remy Blank
2009-08-11  7:33 ` [gentoo-user] " Neil Bothwick
2009-08-11  7:47   ` Stroller
2009-08-11 10:24     ` Neil Bothwick
2009-08-11 18:58       ` Stroller
2009-08-12 11:05         ` Neil Bothwick
2009-08-12 20:05           ` [gentoo-user] HandBrakeCLI & undvd. was: Cloning movie DVDs with dd Stroller
2009-08-12 20:43             ` Neil Bothwick
2009-08-14  7:01               ` Stroller
2009-08-11  8:07   ` [gentoo-user] Bash script inquiry Richard Marza
2009-08-11  8:24     ` Etaoin Shrdlu
2009-08-11  8:59     ` Alex Schuster
2009-08-11  9:27       ` Richard Marza
2009-08-11  9:55         ` Etaoin Shrdlu
2009-08-11 10:17           ` Richard Marza
2009-08-11 10:28             ` Etaoin Shrdlu
2009-08-11  9:38     ` Peter Humphrey
2009-08-11  7:50 ` [gentoo-user] Cloning movie DVDs with dd - only works after accessing disk with another command? Joerg Schilling
2009-08-11 19:16   ` Stroller
2009-08-11 19:31     ` Paul Hartman
2009-08-11 19:36       ` Stroller
2009-08-11 20:02         ` Paul Hartman
2009-08-11 20:41           ` [gentoo-user] HandbrakeCLI vs dvd::rip was: Cloning movie DVDs with dd Stroller
2009-08-11 19:31     ` [gentoo-user] Re: Cloning movie DVDs with dd - only works after accessing disk with another command? Grant Edwards
2009-08-11 20:22       ` Stroller
2009-08-11 22:49         ` Paul Hartman
2009-08-12  0:55           ` Stroller
2009-08-12 10:06         ` Richard Marza
2009-08-11 15:28 ` James
2009-08-11 19:29   ` Stroller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox