12 July 2012

Using command line wodim tool to burn iso image

Instead of conventional burning method using GUI application there are also many ways on how to burn a ISO image to a CD-RW or CD-R from a command line. One way is to use a wodim command. Firs we use wodim to detect our burning device:

# wodim --devices


wodim: Overview of accessible drives (1 found) :
0 dev='/dev/scd0' rwrw-- : 'TSSTcorp' 'CD/DVDW SH-S183L'

now we can combine the device file of our burning device with wodim command to write actual ISO image:

wodim -eject -tao speed=0 dev=/dev/scd0 -v -data /my/directory/image.iso

if you get an error mesage saying : wodim: trying to use a high speed medium on low writter try use higher burninng speed such us speed=1 or speed=2:

wodim -eject -tao speed=1 dev=/dev/scd0 -v -data /my/directory/image.iso


Purpose: In my earlier post, we saw 10 useful programs to burn CDs/DVDs in Linux amongst which cdrecord was one of them. In this blog post we will learn how to use the cdrecord program to burn CDs and DVDs. The package cdrecord is just a dumy package in Debian Lenny which provides wodim, the real utility which does the burning work.

Step 1: Find your CD/DVD Writer

# wodim –scanbus

1,0,0 100) ‘ATAPI ‘ ‘iHAS120 6 ‘ ’7L02′ Removable CD-ROM
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *

# wodim –devices
wodim: Overview of accessible drives (1 found) :
0 dev=’/dev/scd0′ rwrw– : ‘ATAPI’ ‘iHAS120 6′


Step 2: Erase your Re-writable CD/DVD

# umount /dev/cdrom

# cdrecord device=1,0,0 blank=fast

# wodim dev=/dev/scd0 blank=fas

Step 3: Burn an ISO image

# wodim -v -dao speed=4 dev=/dev/scd0 /root/projects/debian-500-i386-netinst.iso

Step 4: Create an ISO image and then burn it

# mkisofs -r -o mycdimage.iso /home/kushalk/mydatadirectory

# wodim -v -dao speed=4 dev=/dev/scd0 mycdimage.iso

That’s it. Happy cdrecording!

No comments:

Post a Comment