Backing up a data to CD-R

        mkisofs -T -r -o /tmp/mycd.iso  /data
        cdrecord -v -eject -fs=4M speed=8 dev=0,0,0 /tmp/mycd.iso

Run “cdrecord -scanbus” to search for the CD burner on your machine.

        mkisofs -T -r /data | cdrecord -v -eject -fs=4M speed=8 dev=0,0,0 -

If you prefer to use “tar” to backup your data to CD-R, here is another trick.

        tar -czf - /data | cdrecord -v -eject -fs=4M speed=8 dev=0,0,0 -

This won't be mountable as a normal CD, and you won't be able to put it in a Windows system, but it works fine on Linux.

blog/linux/backing_up_a_data_to_cd-r.txt · Last modified: 2007/03/19 11:31 (external edit)
Back to top
Open Systems Lab
Indiana University Computer Science Department
Lindley Hall 215
150 S. Woodlawn Ave.
Bloomington, IN 47405-7104

chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0