Linux.com

Home Linux Community Community Blogs Desktops Quick 'n' dirty command line for cd/dvd burning

Quick 'n' dirty command line for cd/dvd burning

Here's a quick post with few quick and dirty commands for creating/burning cd/dvd from the command line.

Graphical tools are nice but even boring and slow, if you've few bash scripts you'll see how fast you can handle with CDs with no worry

Here's what I do to create an ISO, let's take an example, you've a dir full of Virtual machines, images or whatever you want, let's create an ISO from it

~$ cat bin/iso.create
mkisofs -V 'label' -A 'label' -R -joliet-long -o 'image.iso' $1


This script takes directory name as input an creates an iso "image.iso" ready for storing or burning

 

Here's what I do for burning a DVD/CD

~$ cat bin/iso.burn
sudo cdrecord -eject -verbose $1 -dev=/dev/cdrw


Script takes ISO filename as first parameter so you can burn easily for favorite CD distro without too much troubles, /dev/cdrw is the name of your dvd/cd burner, after finishing its job the cd is ejected so you can see it

 

Hope it helps

Ben 

 

Comments

Subscribe to Comments Feed

Upcoming Linux Foundation Courses

  1. LFD320 Linux Kernel Internals and Debugging
    03 Nov » 07 Nov - Virtual
    Details
  2. LFS416 Linux Security
    03 Nov » 06 Nov - Virtual
    Details
  3. LFS426 Linux Performance Tuning
    10 Nov » 13 Nov - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board