Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-18-2007, 04:58 PM   #1
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Rep: Reputation: 30
cdrecord - what parameters do you like to use?


I have used cdrecord to burn a few .iso disc and in general these are fine. But I was curious to know what kind of parameters oldhand longtime users like to use.

I mean off the bat for burning iso - I found using (for example)
cdrecord -dummy -v speed=6 dev=/dev/scd0 kubuntu-7.10-dvd-i386.iso
does a good job of burning the dvd (after testing first with -dummy) at a reasonable speed (x6 speed) and provided me plenty of information.

I used the line below to determine the speed (which gave me x6 write). It's actually 16x write but not to argue!
cdrecord dev=/dev/scd0 -prcap
So, what extra parameters or switches do regular users find useful that I may have overlooked in the man file? I did a good read but felt I extracted enough above for the purpose. I did see -V (which gave more info but with a warning).

Actually one thing I spotted from the log was:
WARNING: Phys disk size 2244045 differs from rzone size 2298496! Prerecorded disk?
WARNING: Phys start: 196608 Phys end 2440652
Blocks total: 2298496 Blocks current: 2298496 Blocks remaining: 54451
This was on the 2nd run after the dummy run was tested. The dvd disc was blank and never used. I'm guessing the cdrecord was making some assumptions that some blocks were already written to. Testing the dvd it was fine.

One improvement I can think of here is writing the output to a log file? Like...
cdrecord -dummy -v speed=6 dev=/dev/scd0 kubuntu-7.10-dvd-i386.iso <2/tmp/cdrecord_log.txt
Apologies, if I got the redirect wrong, as I haven't really covered that yet.

Last edited by hamster; 11-18-2007 at 04:59 PM. Reason: spelling...
Old 11-19-2007, 12:13 AM   #2
Bruce Hill
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Here's some tidbits ...

To burn an .iso image to DVD:
growisofs -dvd-compat -Z /dev/hd*=image.iso

To make a CD from the .iso image:
cdrecord -v -eject driveropts=burnfree dev=/dev/hda /path/to/file.iso
(may need to add -overburn if the image is larger than the CD)

To erase a CD-RW:
cdrecord -v dev=/dev/hd* blank=fast

To blank a DVD+RW:
growisofs -Z /dev/dvd=/dev/zero
dvd+rw-format -force -lead-out /dev/dvd

To burn an image of a CD to the hard drive:
dd if=/dev/hda of=namethecd.iso

To make and save a copy of a data CD:
gzip < /dev/cdrom > name-it.iso.gz

To create a CD .iso image from a directory:
mkisofs -r dir | gzip > cdrom.iso.gz

To view/edit the contents of an .iso image:
mount -oloop cdrom.iso /mnt/dir
(mount the cdrom image at /mnt/dir)

Rip audio tracks from CD to .wav files in current directory:
cdparanoia -B
(you might need lame installed for this, also)

To make and audio CD from all .wav files in current directory:
cdrecord dev=/dev/cdrom -audio *.wav

To make .ogg files from .wav files:
oggenc --tracknum='track' track.cdda.wav -o 'track.ogg'

To make .mp3 files from .wav files in current directory:
for i in *.wav; do lame "$i" "`basename "$i" .wav`".mp3; done
(you will need lame installed for this)

To copy from one drive to another:
cdrdao copy --device /dev/hda --source-device /dev/hdc
(This will copy a VCD when I couldn't find anything else to do that job)
Where you see /dev/hd* you should substitute your drive letter.

Last edited by Bruce Hill; 11-19-2007 at 12:16 AM.
Old 11-19-2007, 02:22 AM   #3
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Original Poster
Rep: Reputation: 30
Thanks - you obviously know your cdrecord.

Interesting about growisofs - I never used it - must be fairly recent. Must try this for next time!

To burn an .iso image to DVD:
growisofs -dvd-compat -Z /dev/hd*=image.iso


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
Parameters nagrcm Programming 1 09-14-2007 12:19 PM
many parameters... os2 Programming 3 07-30-2005 05:56 PM
DDD parameters`? jnusa Linux - Software 0 12-06-2004 03:52 AM
Cdrecord parameters. glore Linux - Newbie 2 05-15-2004 10:06 AM
using ld parameters artur Programming 4 02-13-2004 03:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 PM.

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