Burning Cd using Linux command Line
This tutorial describes how to burn CD using Linux command line.
Introduction
I suppose here you got mkisofs, cdrecord and cdrdao What you need ?
- CD-Drive
- a CD-RW
We have to check the device of our drive(dev) to burn Cd using command Line,
For Linux Kernels 2.6.x, we got:
My drive is a Matshita UJDA730, it can read DVD. dev=1,0,0. If your kernel is 2.4.X, you have two ways to check your device, first:
second
How to make an image iso
Command mkisofs will allow us to make an image iso of a directory. The following image iso will be named image.iso, you can call it foo.iso or save.iso, and path_of_your_directory is the absolute path of your directory, for example /home/user/project
you can also do it for a file
Some explanations about the options used:
- -v is the verbose mode
- -r to reset the rights
- -J is the Joliet extension, it allows to support Long names of files
- -o is the output, here it is image.iso
Burning
The idea is to make an image iso with mkisofs and next to burn this image in our CD. Once iso have been created, we use cdrecord
Fast Burning
Burn a CD could be faster without making ISO. We can do it through /dev/null. First, we have to find the size of ISO like follows:
If you want to burn a file:
We obtain an integer, it is the image size, look at this example
Now, the idea is to use a pipe on cdrecrord with the device. We are going to burn cd without making an image iso, just by using the image size (here 30147):
for a file, if the size is 65432:
Erase a CD-RW
You can find here the fast method:
and the complete one
If you found this post or this website helpful and would like to support our work, please consider making a donation. Thank you!
Help Us