Sunday, September 9, 2012

How To Create ISO File From CD/DVD-ROM Using The Terminal - Ubuntu/Linux Mint



In this tip, we will see how to use the terminal under Ubuntu/Linux Mint to create ISO images of CDs or DVDs inserted into your CD/DVD-ROM drive. The command line tool that we will use is dd which allows to make backup copies of your CD/DVD discs and hard drives.

Getting Started

1. Check firstly where your CD/DVD is mounted using this command:

mount

For my system, the CD is mounted as /dev/sr0:



2. I need now to unmount it with this command:

umount /dev/sr0

Replace /dev/sr0 with your own details as displayed in the output of the "mount" command.

3. Create now the iso image with this command:

dd if=/dev/sr0 of=~/image.iso

  /dev/sr0 --> the input that we will read from

  ~/image.iso --> the name of the iso image that will be created (the iso file will be created in your home, but you can set any other path of your choice)

Note: if you are creating the iso image in a system folder, don't forget to add "sudo" at the beginning of the command.

Also, if you want to add a progress bar for the dd command, install the dcfldd package:

sudo apt-get install dcfldd

The command for creating the ISO image will be as follows:

dcfldd if=/dev/sr0 of=~/image.iso

PV also allows to display a progress bar for the dd command. Install it on Ubuntu/Linux Mint:

sudo apt-get install pv

Then create the iso file using this command:

dd if=/dev/sr0 | pv | dd of=~/image.iso

No comments:

Post a Comment