Skip to content

Instantly share code, notes, and snippets.

@pankaj-gecko
Created October 24, 2021 06:43
Show Gist options
  • Save pankaj-gecko/949a6cb61ef86d1e0005c1e07000eb94 to your computer and use it in GitHub Desktop.
Save pankaj-gecko/949a6cb61ef86d1e0005c1e07000eb94 to your computer and use it in GitHub Desktop.
Burning cd/dvd image on linux using terminal
Playing with Images
=====================
Creating An Image Copy Of A CD-ROM
----------------------------------
If we want to make an iso image of an existing CD-ROM, we can use dd to read all the
data blocks off the CD-ROM and copy them to a local file. Say we had an Ubuntu CD
and we wanted to make an iso file that we could later use to make more copies. After in-
serting the CD and determining its device name (we’ll assume /dev/cdrom), we can
make the iso file like so:
Example:
------------------------------------------------------------------
pankaj@pankaj-Satellite-C850 ~ $ sudo dd status=progress if=/dev/sr0 of=/home/pankaj/pank.iso
1407048+0 records in
1407048+0 records out
720408576 bytes (720 MB, 687 MiB) copied, 139.587 s, 5.2 MB/s
pankaj@pankaj-Satellite-C850 ~ $
------------------------------------------------------------------
Writing CD-ROM Images
---------------------
After we have an image file, we can burn it onto our optical media.
To write an image, we will use a tool named as wodim, specifying the name of the
optical media writer device and the name of the image file:
wodim dev=/dev/cdrw image.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment