J.Bakshi wrote:
Hi,
I am a Xcdroast and K3B user. these two frontends actually depend on *cdrecord* to a great extent. I am very much interested to know about
1) how can I copy a file/folder to a writeable cd using cdrecord command ?
2) is it possible to diskcopy (cd to cd) using cdrecord command ? (here reader and writer both are same drive)
3) how to burn a cd image using cdrecord ?
thanks for your time.
-- To unsubscribe, send mail to [EMAIL PROTECTED] with the body "unsubscribe ilug-cal" and an empty subject line. FAQ: http://www.ilug-cal.org/node.php?id=3
1) how can I copy a file/folder to a writeable cd using cdrecord command ?
This requires two steps, and sufficient free disk space. Assuming that all the files you wish to write to the CD are contained in the directory ~/myfiles and that your /tmp directory has sufficient free space to hold the resulting ISO filesystem (which will be somewhat larger that the total space taken up by all the files in ~/myfiles), you first create an ISO filesystem:
mkisofs -J -r -o /tmp/x.iso ~/myfiles
The -r ensures you get long filenames when you read the CD in Linux and the -J ensures that you get the same in Windows. Then you burn this x.iso to the CD with cdrecord:
cdrecord -v -data -multi speed=16 dev=X.Y.Z driveropts=burnproof -eject /tmp/x.iso
Here the speed value is set acccording to what is indicated on your CD; I've found that cdrecord works best with the speed set close to the maximum allowable. The X, Y & Z have to be determined for your system with the 'cdrecord -scanbus' command; for example, on my system X = Y = Z = 0.
With this you can write to a blank CD; the -multi option keeps live the possibility of adding more files later (multi-session).
2) is it possible to diskcopy (cd to cd) using cdrecord command ? (here reader and writer both are same drive)
Again, a two-step process, for the first of which you put the original CD in the drive, mount it as usual, and say:
dd if=/dev/scd0 of=/tmp/x.iso bs=1024
Assuming that your CD drive is indeed /dev/scd0, this will dump the entire contents of the CD in a raw format to the file /tmp/x.iso on your hard disk.
The second step is to write this out to a blank CD using cdrecord, exactly as for case (1).
- Manas Laha
***************************************** This Mail is Certified to be Virus Free. CIC Network Security Group, IIT Kharagpur *****************************************
-- To unsubscribe, send mail to [EMAIL PROTECTED] with the body "unsubscribe ilug-cal" and an empty subject line. FAQ: http://www.ilug-cal.org/node.php?id=3
