LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-25-2007, 03:56 PM   #16
trox
Member
 
Registered: Jan 2006
Distribution: Linux Mint 12, FreeBSD, Ubuntu 12.10, Mac OS X
Posts: 83

Rep: Reputation: 15
Copy DVDs with the dd command


Quote:
Originally Posted by Bruce Hill
Originally posted by demerson3

Your guide looks good from a cursory read. May I give you one CLI pointer?
How to cut out K3B -- which is my favorite thing to do with GUIs, especially
if they're part of KDE.

What is your device?
Code:
mingdao@silas:~$ dmesg | grep -i atapi                                                                                                     
hda: PIONEER DVD-RW DVR-109, ATAPI CD/DVD-ROM drive
hdc: TSSTcorpCD/DVDW TS-H552U, ATAPI CD/DVD-ROM drive
hda: ATAPI 40X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache, UDMA(66)
hdc: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)
Now use the power of "dd" to make that exact copy you want:
Code:
mingdao@silas:~$ dd if=/dev/hdc of=China.iso
And check it, too.
Code:
mingdao@silas:~$ diff /dev/hdc China.iso -r
mingdao@silas:~$
Now burn, baby, burn!
Code:
mingdao@silas:~$ /usr/bin/growisofs -dvd-compat -Z /dev/hdc=China.iso
And you've successfully made an exact copy faster than K3B
using the raw power of GNU/Linux, and any errors while you
burn will be right there in front of you.

NB: You can always look at the K3B log and see what commands it used.
I tried these instructions and the dd command did seem to want to copy the data from /dev/hdc, but here is what I got:

sai:~$ dd if=/dev/hdc of=TheBluesShow7.iso
dd: reading `/dev/hdc': Input/output error
1504+0 records in
1504+0 records out
770048 bytes (770 kB) copied, 5.81758 seconds, 132 kB/s
sai:~$ diff /dev/hdc TheBluesShow7.iso
diff: /dev/hdc: Input/output error

What happened here? What should I do next? I prefer the command line myself too.

Thanks in advance to all replies

trox
 
Old 07-25-2007, 04:21 PM   #17
trox
Member
 
Registered: Jan 2006
Distribution: Linux Mint 12, FreeBSD, Ubuntu 12.10, Mac OS X
Posts: 83

Rep: Reputation: 15
usind cat to copy DVDs

Quote:
Originally Posted by Laban
cat readss the device (your cd/dvd drive). What it reads is piped (sent) to bzip2 which is a compression utility like zip/rar/gzip etc. The -vv part is just to show that something is happening. Bzip2 sends the now compressed information out to a file - my_file.iso. But just to show that the file is compressed, we'll add .bz2 as well.

So:
cat YOUR_DVD_DRIVE_GOES_HERE | bzip2 -vv > FILENAME_OF_SAVED_IMAGE.iso.bz2

Made any sense?
I followed your directions using "cat" and this is what I get:

tsai@tsai:~$ cat /dev/hdc | bzip2 -vv > TheBluesShow7.iso.bz2
(stdin):
cat: /dev/hdc: Input/output error
block 1: crc = 0x528d4d08, combined CRC = 0x528d4d08, size = 47252
too repetitive; using fallback sorting algorithm
final combined CRC = 0x528d4d08
117.332:1, 0.068 bits/byte, 99.15% saved, 770048 in, 6563 out.

What is happening here? What should I do now?

Thanks,

tsai
 
Old 07-25-2007, 07:44 PM   #18
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by trox
I tried these instructions and the dd command did seem to want to copy the data from /dev/hdc, but here is what I got:

sai:~$ dd if=/dev/hdc of=TheBluesShow7.iso
dd: reading `/dev/hdc': Input/output error
1504+0 records in
1504+0 records out
770048 bytes (770 kB) copied, 5.81758 seconds, 132 kB/s
sai:~$ diff /dev/hdc TheBluesShow7.iso
diff: /dev/hdc: Input/output error

What happened here? What should I do next? I prefer the command line myself too.

Thanks in advance to all replies

trox
Perhaps a bad DVD? Dirty, scratched? Clean it and try again ... also try running as root rather than user. And also try another DVD -- perhaps a new one?
 
Old 08-07-2007, 12:22 PM   #19
demerson3
Member
 
Registered: Sep 2004
Location: Seattle area
Distribution: debian stable
Posts: 51

Original Poster
Rep: Reputation: 15
I still believe dd is the wrong approach

To cut to the chase: check out dvdbackup. There may be other tools as well.

I still believe dd is the wrong approach. There are special considerations, including error correction, that should be utilised when reading optical media. dd was not designed for optical media. It was designed for magnetic disks, which are far more reliable in terms of getting a good read the first time.

"cdparanoia" is an example of a program that extracts audio tracks from audio cd's, using error correction and other techniques that assist in reading optical media. You can get a much better read from cdparanoia than from dd, because it reads intelligently.

So, for your CLI needs, check out dvdbackup, and look around for other tools that are designed to read dvd's. I'll integrate this into my main post when I have the time.
 
Old 04-20-2018, 10:38 AM   #20
ilovepenquins
LQ Newbie
 
Registered: Jul 2013
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by demerson3 View Post
cdparanoia
just to update, afaik cdparanoia has been part of cdda2wav for some time and may be obsolete or misbehave /going from some user reports online, may be wrong/
 
Old 04-20-2018, 10:42 AM   #21
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by ilovepenquins View Post
just to update, afaik cdparanoia has been part of cdda2wav for some time and may be obsolete or misbehave /going from some user reports online, may be wrong/
Probably because that post is 11 years old?
 
Old 04-20-2018, 10:59 AM   #22
ilovepenquins
LQ Newbie
 
Registered: Jul 2013
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
Probably because that post is 11 years old?
yeah and it shows in search results
 
  


Reply

Tags
burn, dvd, howto, rip


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ac3 Codec For .vob Dvd Needed, Playing a DVD lagu2653 Linux - Software 2 10-27-2005 10:13 AM
Splitting VOB to create DVD ISO image jerryk Linux - General 1 05-17-2005 12:31 AM
DVD backup: howto copy subtitle streams?? psychotron1 Linux - General 6 01-24-2005 12:34 PM
How do I make an exact copy of a movie DVD u6jaf Linux - Software 1 07-08-2004 12:45 PM
DVD copy question (using an ISO) eallen Linux - Software 4 03-10-2003 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration