Every Flavour Beans

“The time has come…to talk of many [technologies].” –Lewis Carroll(’The Walrus and the Carpenter’)
Development Tools. Web Frameworks. GNU/Linux. Nokia N800. Video Encoding.

November 21, 2005

Burning a CD/DVD in GNU/Linux

Filed under: GNU/Linux — tabrez @ 2:01 pm

One thing that prevented me from completely switching over from Microsoft Windows to GNU/Linux was the relatively difficult way to burn a CD/DVD media in GNU/Linux OS. Printing came a close second. Hardware support and Games were also way better supported in Windows than in GNU/Linux. Now, atleast burning media has become extremely easy in GNU/Linux, arguably easier than burning it in Nero under Windows(infact, there is a version of Nero for GNU/Linux too, but who cares to use propriety software when there is so much of choice with the Free burning tools?).

If you have an ISO file(files ending in .iso extension), which is the most popular file format for making and sharing images of CDs and DVDs, then this simple command will burn it on an empty disc:

sh# cdrecord dev=/dev/hdc file.iso        [1]

That’s it! ofcourse, there are tons of options that you can pass to ‘cdrecord’ if you want more control over the burning process, like specifying the speed of burning(as in 4x):

sh# cdrecord dev=/dev/hdc file.iso speed=4

For more information regarding the options of cdrecord, see its man pages[2].
If you want to rather burn a directory which contains your data files, first make an ISO file:

sh# mkisofs -o file.iso -RJ /home/user/directory/

and then burn ‘file.iso’ using the above procedure. You can also first mount an ISO file on a directory to check its contents before burning it:

sh# mount -o loop file.iso /home/user/mountdir
sh# ls /home/user/mountdir

To erase a CD-RW, use:

sh# cdrecord dev=/dev/hdc blank=fast (‘blank=all’ will do a complete erase)

If you are not a command-line guy, then K3B is an excellent graphical tool to burn a CD/DVD under GNU/Linux and should get the job done with equal ease[3]. You won’t need more than a few clicks to burn a CD!! It is the best CD/DVD writer of all IMHO.

Notes:
[1] Where hdc is your cd-rom drive. If you don’t know what is the the name of your cd-rom drive, then try:

sh# cat /etc/fstab | grep /mnt/cdrom
OR
sh# cat /etc/fstab | grep /media/cdrom
OR
sh# dmesg | grep ‘^hd.:’

Or use this guide:
hda->primary master
hdb->primary slave
hdc->secondary master
hdd->secondary slave

If you use an older kernel:

sh# cdrecord dev=0,0,0 file.iso

or better, upgrade the kernel!!

[2] use man or info command to get more help:

sh# man cdrecord

[3] you can also try X-CD Roast which boasts of more features and better stability, but I strongly suggest K3B for its user-friendliness and simplicity.


If you want to receive future posts by email, enter your email address here:

Related Posts:

  • K3B and amaroK: Only KDE applications I use
  • What do you plan to do on the Software Freedom Day(Sep 15th)?
  • Killer Looks of KDE in Kubuntu Entices a Long Time GNOME User!
  • Installing Grails in Ubuntu GNU/Linux Using Package Manager
  • Five More Desktop Blog Editors for GNU/Linux Users
  • A Visual Tour Of Windows Vista Beta 2 (50+ Screenshots!) (Page 1)
  • GNU/Linux Users vs Rest of the world :)

  • Readers who viewed this page, also viewed:


    No Comments »

    No comments yet.

    RSS feed for comments on this post. TrackBack URI

    Leave a comment

    Subscribe without commenting


    Copyright (c) 2006, 2007 Tabrez Iqbal.
    Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. Verbatim copying and distribution of this entire article is permitted in any medium without royalty provided this notice is preserved. A copy of the license is included in the section entitled "GNU Free Documentation License".


    Powered by WordPress
    This website is hosted by Dreamhost