Ubuntu: How To Create an ISO Image from a CD or DVD

Contributor Icon Contributed by shamanstears Date Icon January 29, 2008  
Tag Icon Tagged: Linux

I do a great deal of experimenting with virtual computer environments and utilize ISO images quite often instead of constantly going back to the same CD repeatedly. Ubuntu makes it easy to create an ISO image from your CD or DVD.


1. Insert the CD or DVD that you want to make an ISO image of.

2. Open a terminal window.

3. Execute the following command:cat /dev/scd0 > /home/shamanstears/test.iso

where /dev/scd0 is the device name for your drive (to find this, go to the Main Menu, click on System, mouseover Administration and select System Monitor. Click the File Systems tab. The device name will be listed in the Device column). Also make sure to change the path and iso filename to the desired path and filename.

The disc will begin to spin and the ISO image will start being constructed. Once it has completed, you have an ISO image of your CD. To verify that the image was properly created, mount the ISO file and check the contents.

Previous recipe | Next recipe |
 
  • Anonymous
    i have a problem
    when i set the path to the file i want i get a permission denied
    now i know how to use the nautilus thing because i didnt have permission to access my font and icon files but i have no idea how to do this in terminal because this isnt a file i need access to it is an action i need to do and it isnt letting me
    please help!
  • Aman
    use sudo with the command for permission, if the account you are using is a sudoer.
    eg: $ sudo cat /dev/scd0 > *.iso
  • Daniel
    Works great thanks :)
  • Creating the ISO right now as we speak! Thanks, this was a pretty simple command that works.
  • Mihailo Joksimovic
    Thanks alot, I didn't know that it's so easy to create .iso on Ubuntu :-)

    Thanks again !
  • Gah! That's horrid, for a number of reasons.

    First, you're using the wrong tool for the job. This would be the equivalent of using a wrench to hammer a nail in the wall. They both get the job done, but gah!

    Second, this command doesn't have any checking. What happens if you have some wild hard drive activity, and you don't get all the bits copied? You have a bad ISO, and you won't know it.

    Instead, you should be using the right tool for the right job. In this case, you need to check out the 'readom' command (read optical media). It does exactly what you're looking for, and has built in error checking.

    readom dev=/dev/scd0 f=/home/shamanstears/test.iso

    If you want to record the ISO, then you should be using 'wodim', not 'dd', or any other horrible "solution".

    wodim -v -eject /home/shamanstears/test.iso

    This will burn your 'test.iso' to your blank CD, assuming it's already inserted, and eject when it's finished. It'll even be verbose about it's output along the way. These sort of shoddy tips and tricks are what get a lot of users in trouble. Remember- use the right tools for the right job, and everyone will be happy.
  • John
    Ubuntu Intrepid, simply right hand click CD or DVD desktop icons for context menu to copy, or write. Simple, no fuss and a result..
  • Olivier
    Ubuntu use readom when you right click on the icon.
    So the method of Aaron Toponse is the good one if you want to do it in command line.
  • I have installed 9.04 Jaunty and now right click and copy brings up Brasero that I believe does create an image (.toc) but not an ISO file. So if you want to stay on the safe side go with Aaron (just make sure the cd is not mounted! Gnome automount and that prevents the command from working)

    Briga
  • Jii
    Since Ubuntu is supposed to be "Linux for human beings", here's a method for human beings. Just right click on the disk icon, then click "Copy disk...". I'm using Jaunty, and the default destination file is a .toc type. To change it, click Properties, and then at the bottom of the window change the file type to .iso, or .cue, or .raw, or whatever you want. Then run it, and there ya go.
blog comments powered by Disqus