Burn CD images in Linux command line

advertisement logo

 

This tip will be brief, it concerns about writing bootable linux iso images to CDROM. What you need is cdrecord, cd-writer drive, blank cd-r and iso image (and maybe mkisofs).

Howto burn ISO images to CD
Insert the blank CD-R, and run

cdrecord -v speed=4 dev=/dev/cdrom ubuntu-6.10-desktop-i386.iso

and you're done.

Howto burn (backup) files to Data CD
You'll need mkisofs and cdrecord to burn your data files to a CD,

Run,

mkisofs -r -J -o yourbackup.iso /home/path_to/your_files

cdrecord -v dev=/dev/cdrom  -data  yourbackup.iso

and that's the easiest way to burn cds on command-line linux.

Tags: , , , , , , ,

Bookmark this article These icons link to social bookmarking sites where readers can share and discover new web pages.
  • digg
  • YahooMyWeb
  • NewsVine
  • Netvouz
  • Reddit
  • Spurl
  • Furl
  • del.icio.us
  • StumbleUpon
  • Technorati
  • TwitThis

Keep updated with this website! : Subscribe to your email

Recommended Reading

6 smashing comments for this post.

  1. niza Said:

    i am using fedora core 5, and oracle 10g as my database.how should i do to backup my data direct to dds and cdrom.

  2. burn cd image linux - Web - WebCrawler Said:

    [...] [...]

  3. Login | mister-wong.de | Social Bookmarking Tool Said:

    [...] Bookmark hinzufügen Du möchtest folgenden Link zu Mister Wong hinzufügen: Burn CD images in Linux command line : mypapit gnu/linux blog (http://blog.mypapit.net/2006/12/burn-cd-images-in-linux-command-line.html)Um diesen Link zu speichern musst du dich entweder einloggen sofern du schon einen Account hast oder dich unten kostenlos registrieren. Registrieren [...]

  4. fak3r Said:

    Thanks, was looking for a simple way to script this so I don’t have to run a GUI every time I just want to burn an ISO. I’ve wrapped your command in a short script, here it is:

    #!/bin/bash
    #
    if [ $# -ne 1 ]
    then
    echo “No ISO specified, run again with ISO called out.”
    echo ” usage: $0 ” >&2
    exit 1
    fi
    #
    cdrecord -v speed=8 dev=/dev/cdrom $1
    #
    exit 0

  5. mypapit Said:

    hi there fak3r, thanks for your script suggestion

  6. Ghi đĩa CD từ dòng lệnh « Software Freedom - Tự Do Phần Mềm Said:

    [...] Burn CD images in Linux command line [...]

Leave a Comment

Subscribe by email

Enter your Email