LinuxQuestions.org
Visit Jeremy's Blog.
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 08-31-2003, 06:50 AM   #1
buttersoft
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 178

Rep: Reputation: 30
Lightbulb Writing to a dvd with cdrecord


Let me say straight away, as a newbie, how I am loving Linux! It is a great living O/S.

I just love the way one can string together commands.

My burning question of the moment is that I use mkisofs to create 3 .iso files, system does this quickly, now I have a Pioneer DVD writer and I want to record all these .iso images to 1 DVD. Where or how do I update cdrecord? I see something called cdrecord-ProDVD, but cannot find a .rpm file for SuSE 8.2......

mkisofs -R -o opt_20030831.iso /opt;mkisofs -R -o var_20030831.iso /var;mkisofs -R -o home_20030831.iso /home;cdrecord dev=1,0,0 /home/buttersoft/*.iso

I just think this is a great way to do a meaningful backup of my data and important files.

Any help I appreciate greatly, whilst I am very computer literate, that is in the windows world, and as a Linux user I am a newborn, trying to learn fast!
 
Old 08-31-2003, 02:06 PM   #2
buttersoft
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 178

Original Poster
Rep: Reputation: 30
I can answer my own question!

http://skybuilders.com/users/jesse/docs/linuxCD-RW.html
shows how to write DVD with dvdrecord, although my first attempt gave an error warning, I was pleasantly surprised to see it had recorded what I asked of it!

mkisofs -R -o opt_20030831.iso /opt;mkisofs -R -o var_20030831.iso /var;mkisofs -R -o home_20030831.iso /home;dvdrecord -dao speed=2 dev=1,0,0 /home/buttersoft/*.iso

In other words this works!

Don't I just love Linux! I also take my hat off to all the programmers in the Open Source world. Freedom is what it is all about.
 
Old 09-05-2003, 04:39 AM   #3
priyesh
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
Link unavailable

I need the same info. I tried the link but unavilable.... can u help me?

Priyesh.
 
Old 09-05-2003, 11:48 AM   #4
buttersoft
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 178

Original Poster
Rep: Reputation: 30
Well it did not work again for me at work, but at home just now it worked:-

This info is based on RedHat, it worked for me but I have SuSE 8.2...


Getting a CD-RW to work in the linux RedHat environment has only recently become a relatively easy task. There have been difficult issues in the past concerning kernel support and SCSI emulation for IDE/ATAPI based devices. The required kernel module for this device support, without the need for SCSI emulation, is ide-cd. You may check for its existance by using the following command and response:


[cdbackup]# modprobe -l | grep ide-cd
/lib/modules/2.4.18-14/kernel/drivers/ide/ide-cd.o


As you should notice linux kernel version 2.4.18-14, shipping with RedHat 8.0, supports ide-cd de facto.


An indispensible reference document on this subject is maintained at The Linux Documentation Project (http://www.tldp.org/) called, CD-Writing HOWTO by Winfried Trümper.


Two CD-RW tools needed, at least for command line CD burning, are cdrecord and mkisofs. The installation packages for these tools are part of the standard RedHat 8.0 distribution. (You will need to actually install the cdrecord and mkisofs rpms to use these tools.)

[Optional:] It is necessary to use the mkisofs command before running cdrecord. The first thing to is to collect the metric for the cdrecord option 'tsize'. (I found that this is actually optional in my experimentation, but command documentation includes it.) Obtain the metric from the following command/response:


[cdbackup]# mkisofs -q -print-size home/
64


Then the actual data to be written to a writable CD needs to be formatted for that particular medium's format. The following use of the mkisofs command will do this, creating the file 'cd_image_test', residing in /var/cdbackup/ and made from /var/cdbackup/home, in our example:


[cdbackup]# mkisofs -r -o cd_image_test home/


It is necessary to determine the 'dev' argument settings for the cdrecord command. In the example below they are set to 0,0,0. (Don't be put off by the SCSI references in the cdrecord -scanbus command output - they are a relic preceding IDE/ATAPI support.)


[cdbackup]# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) ' ' '52X24X52 CD-RW ' '1.04' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *


Finally we are now ready to run the cdrecord command for its ultimate purpose, to write the data to CD. This may be done simply with the following:


[cdbackup]# cdrecord -v speed=2 dev=0,0,0 -data cd_image_test


These commands can be run via the X-CD-Roast GUI interface. The RPM for the package requires the cdrdao and cdda2wav packages, which are both for audio CD recording.. (My initial attempts to run X-CD-Roast failed, but that was before I had successfully run the mkisofs and cdrecord commands

This is an excerpt from the X-CD-Roast rpm info file:


Description :
X-CD-Roast provides a GUI interface for commands like cdrecord and
mkisofs. X-CD-Roast includes a self-explanatory X11 user interface,
automatic SCSI and IDE hardware setup, support for mastering of new
ISO9660 data CDs, support for production of new audio CDs, fast
copying of CDs without hard disk buffering, and a logfile option.


I will add more on GUIs for use of the CD-RW as I learn about them.

Appendix A: Using a DVD-RW

Using a DVD-RW is much the same as a CD-RW. The use the common fstab entry and both mount as /mnt/cdrom. The use of the mkisofs tool is also the same. The DVD-RW device requires a tool different than cdrecord, namely, dvdrecord, an RPM for which ships with RedHad 8.0. Using the '-scanbus' option with the dvdrecord command will yield the following output:


[cdbackup]# dvdrecord -scanbus
dvdrtools v0.1.3
Portions (c) 2002 Red Hat, Inc.
Based on:
Cdrecord 1.11a15 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'PIONEER ' 'DVD-RW DVR-105 ' '1.30' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *


After making the ISO file (mkisofs -r -o dvd_20030422.iso ../Friday) running the dvdrecord command will yield the following:


[cdbackup]# dvdrecord -dao speed=2 dev=0,0,0 dvd_20030422
dvdrtools v0.1.3
Portions (c) 2002 Red Hat, Inc.
Based on:
Cdrecord 1.11a15 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.5'
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'PIONEER '
Identifikation : 'DVD-RW DVR-105 '
Revision : '1.30'
Device seems to be: Generic mmc2 DVD.
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).
Driver flags : SWABAUDIO BURNFREE
Supported modes: PACKET SAO
Starting to write CD/DVD at speed 1 in write mode for single session.
Last chance to quit, starting real write in 4 seconds.


_ _

skyWrite
 
  


Reply


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
New DVD writer writes CD-R at 4x with cdrecord super-momo Linux - Hardware 2 08-02-2005 12:40 AM
Can't record to dvd with cdrecord billehunt Linux - Software 6 06-08-2005 04:37 AM
LG DVD+-RW/RAM won't mount after writing DVD (growisofs/k3b) jaws_tas Linux - Hardware 1 03-25-2005 01:52 AM
CDRecord accidently put in DVD CWLim Linux - Newbie 2 01-04-2005 01:59 PM
cdrecord causes hard crash (SuSE 7.3) writing data CDs tobythelard Linux - Software 6 11-24-2002 03:42 PM

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

All times are GMT -5. The time now is 01:36 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