CD from CD, the live filesystem, or even an http download

Both source CD and the burner are on separate device chains (Primary and Secondary 
IDE, or IDE and SCSI)
To make a real time copy of a CD

# dd if=/dev/hdb | cdrecord  -v speed=12 dev=0,0,0 fd=8m –data -

- argument to cdrecord means that the data track should be read from STDIN (Standard 
Input) instead of from a file.
dd line is feeding the cdrecord pipe with a copy of the CD in the slave drive on the 
primary IDE chain (hdb)
fs=8m parameter makes the write FIFO (first-in first-out special file, named pipe) a 
bit bigger, to help offset any momentary pipeline hiccups.
To avoid making an iso before burning a copy of data from the filesystem

# mkisofs –r /home/ftp | cdrecord –v speed=12 dev=0,0,0 fs=8m –data –

mkisofs writes to STDOUT (Standard Output) by default. This is then fed to STDIN of 
the cdrecord process, bring the ISO as its created, in real time.

Note
If your data source is > than the size of your CDR (btwn 650 and 700MB) you’ll end 
up with an unusable disk

Get an idea of how much space you’ll need with du

# du –hs /home/ftp/
412M /home/ftp

A 412M ISO will fit nicely

Anything that can print ISO data to STDOUT is a candidate for the left hand side of a 
pipeline. How about doing a real-time network burn

[EMAIL PROTECTED]: ~# mkisofs -r backup/ \
| ssh superchicken "cdrecord -v speed=12 dev=0,0,0 fs=8m -data - "

or copying a local CD to remote burner over the network?

[EMAIL PROTECTED]: ~# dd if=/dev/cdrom \
| ssh superchicken "cdrecord -v speed=12 dev=0,0,0 fs=8m -data - "

or even downloading an ISO and burning it, all in one pass?

# curl http://my.server.com/slackware-9.0-install.iso \
| cdrecord –v speed=0 dev=0,0,0 fs=8m –data -

A network burn over wireless isn’t recommended. You’d want a solid 100Mbps 
Ethernet Cable for this job.

The above example demonstrates the power of a UNIX pipeline: any program can be 
plugged into nearly any other, to make things happen that the designer of either 
program likely hadn’t even thought.




__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455


---------------------------------------------
This service is hosted on the Infocom network
http://www.infocom.co.ug

Reply via email to