Saturday, February 18, 2012

Linux: Burning an ISO Image from the Command Line

Here's a little tip (and reminder for myself) if you ever need to burn an ISO image to CD from the command line:

  $ cdrecord -v -eject speed=<speed> dev=<cdrom device> </path/to/iso>

Here's an example I used to burn the latest copy of Linux Mint Debian:

 $ cdrecord -v -eject speed=48 dev=/dev/cdrom \
/home/prystasj/Downloads/linuxmint-12-gnome-cd-nocodecs-64bit.iso

No GUI needed!

1 comment:

  1. Not always so. On Ubuntu 13.04, you may have trouble with wodim (the package which actually performs the burn) not detecting your drive, e.g.:

    wodim: No such file or directory.
    Cannot open SCSI driver!

    You can bypass this by calling wodim directly:

    # wodim dev=/dev/cdrom -v -data myfile.iso

    which Just Plain Works(tm)

    ReplyDelete