Wednesday, October 04, 2006

Command Line to burn a cdrom

Getting Device Description
Use "cdrecord -scanbus" to scan your SCSI bus to determine the device description. (i.e. 0,0,0). This will perform a scan and provide results for real SCSI systems or for the virtual SCSI subsystem Linux uses with IDE CD/DVD's.

Blanking a CD-RW
* Fast blanking. Data is not overwritten:
cdrecord dev="0,0,0" -v -eject speed=4 blank=fast
* Full blanking. Data is overwritten and entire media is erased:
cdrecord dev="0,0,0" -v -eject speed=4 blank=all
where dev is the device defined in "cdrecord -scanbus"

Backup a directory to a CD
mkisofs -r -R -J -l -L /home/user1 | cdrecord dev=0,0,0 -v --eject speed=4 -

Make sure directory does not hold more than CD capacity (700Mb typically). Check with the command: du -s /home/user1 You can use speed=0 if you want to write in maximum write speed of cdrom.
where dev is the device defined in "cdrecord -scanbus"

You can type "cdrecord -help" for more information on using cdrecord

You can visit http://yolinux.com/TUTORIALS/LinuxTutorialCDBurn.html for more information on cd burning

No comments: