I have a DVD ISO file and I want to burn through the terminal.

We have many command formats but I am unable to choose the best & safe one. so please give me a best command to burn the ISO through the terminal.

up vote 63 down vote accepted

There are several ways to do this, but here are just two ways that I use regularly. Please replace /dev/sr1 with the device identifier of your target drive (find out what it is with inxi -d), and replace myiso with your iso and its disk location if necessary.

  • wodim -eject -tao speed=2 dev=/dev/sr1 -v -data myiso.iso

  • growisofs -dvd-compat -Z /dev/sr1=myiso.iso

More information about the read and write capabilities of your drive can be found with the following command, again substututing my example /dev with your device identifier:

wodim -prcap dev=/dev/sr1

For more options relating to wodim and growisofs, see their respective manpages, by entering man wodim and man growisofs. (Note: wodim is a fork of the original cdrecord program)

  • fine @Mik . its worked with some background . – rɑːdʒɑ Aug 14 '12 at 2:44
  • @Mik, can you explain in which package we can find inxi? – guntbert May 22 '13 at 20:53
  • 2
    @guntbert See this question for how to install inxi; I forgot it wasn't in the repositories. – user76204 May 22 '13 at 22:42

Use the following command to locate your DVD drive:

wodim --devices

It will list an output like below (bold emphasis mine):


    wodim: Overview of accessible drives (1 found) :
    -------------------------------------------------------------------------
     0  dev='/dev/sg1' rwrw-- : 'TSSTcorp' 'CDDVDW SH-S223F'
    -------------------------------------------------------------------------

From the above output, we can determine the drive location. In this case, /dev/sg1 is the drive location.

Now, to burn the ISO, you can use the following command:

wodim -v dev=/dev/sg1 speed=10 -eject /home/$USER/file.iso

Replace /home/$USER/file.iso with your preferred path.

  • Thanks for answering. Already we have one on wodim. But no issues. From next time onwards please check your answer is already in the list or not. If its not you can post it. Just a suggestion .hope you don't mind – rɑːdʒɑ Jan 12 '14 at 2:02
  • 4
    I saw the other answer. I think it's okay to have similar answers on the same thread. I just wanted to post the outputs as well. Also in the accepted answer, it uses inxi which may not ve available on all systems. I have added wodim --devices as an alternative. – Amal Murali Jan 12 '14 at 4:00
  • I see that. Nice point . – rɑːdʒɑ Jan 12 '14 at 4:21
  • 1
    wodim --devices does not seem to work, use wodim -checkdrive instead – Joao Costa Sep 17 '17 at 18:29
  • 1
    the whole point of these are the best answer gets voted up. This answer is excellent. – jouell Jun 12 at 18:59

bashburn is your friend.

sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install bashburn

enter image description here

Currently BashBurn can:

  • Burn data CDs/DVDs (Including CDRWs)
  • Burn music CDs
  • Burn CD/DVD-images
  • Rip data/music CDs
  • Manipulate ISO-files
  • and probably more…

Source

  • 1
    How do you come up with all this stuff? You're a genius! ;-) – Fabby Dec 12 '15 at 23:18

I came to know that we can use dd also to write.Open your terminal ( CTRL + ALT + T )

dd if=/path/image.iso of=/dev/cdrom1

if- Input File , path where you have the image.iso. of- Output File , where this file have to sent .

  • 2
    I tried this once, made my drive spin like hell. – szx Feb 9 '15 at 16:41
  • 1
    This doesn't work with DVDs. – Keith Mar 20 at 5:53

An easy to remember command line:

wodim CD.iso

It will use some defaults and try to guess your drive, which is fine in most cases.

That way you only need to set other options, like speed, if you really need to.

Another possibility is to replace wodim with Jorg Schilling's cdrecord from Brandon Snider's PPA. This has often solved odd burning problems for me and has been tested extensively under my Trusty Tahr installation. First add the repository:

sudo add-apt-repository ppa:brandonsnider/cdrtools

Note that this will replace the wodim package with cdrecord as well as installing cdda2wav. Then find the appropriate device address for your DVD drive by running:

cdrecord --scanbus

Finally run a commandline like the following (your own device address will be different):

cdrecord -v dev=0,0,0 -speed 8 driveropts=burnfree fs=32m -eject my_distro.iso

A modern cdrecord has no issues with either CD or DVD burning, or Bluray for that matter...

References:

You could use Brasero, using command line arguments

brasero --help
  • 3
    No thats failed me many times . thats why I want to try terminal . – rɑːdʒɑ Aug 12 '12 at 4:13
cdw 

I would recommend this nice app for burning disks with ncurse interface...

::: cdw 0.8.0 ::: ScreenShot

protected by andrew.46 Aug 27 '17 at 3:57

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.