Simplest Way To Rip A DVD To An ISO

dd if=/dev/dvd of=mynew.iso bs=2048

Now you can mount the iso as if it were an actual DVD or CD:

# mount -o ro,loop -t iso9660 mynew.iso /mnt/iso

This assumes that you have the mount point /mnt/iso already created.

Also if you were going to modify the image somehow you might want to leave off the ‘ro’ option.

If you want to make an ISO image of files or a directory that have long filenames then do something like this:

# mkisofs -o mynew.iso -J [files or directory]

Determine what device your CD/DVD burner is

The device is not always going to be /dev/cdrom or /dev/dvd or whatever. To determine what device you have do this:

# dmesg | grep ROM

The output looks something like this:

[    1.625249] ata1.00: ATAPI: TEAC DVD-ROM DV28EV, R.AB, max UDMA/33
[    1.657106] scsi 0:0:0:0: CD-ROM            TEAC     DVD-ROM DV28EV   R.AB PQ: 0 ANSI: 5
[    1.672009] Uniform CD-ROM driver Revision: 3.20
[    1.672165] sr 0:0:0:0: Attached scsi CD-ROM sr0
[ 8795.604839] scsi 4:0:0:0: CD-ROM            Memorex  MRX-650LE v1     9M62 PQ: 0 ANSI: 0
[ 8795.756728] sr 4:0:0:0: Attached scsi CD-ROM sr1

So I have a Teac CD-ROM at scsi id 0:0:0:0 as /dev/sr0
and a Memorex at scsi id 4:0:0:0 as /dev/sr1
So if I want to burn a DVD to the Memorex Burner I use /dev/sr1

Burning ISO images to DVD

Now if you want to create an actual DVD:

# growisofs -dvd-compat -Z /dev/dvd=mynew.iso


# growisofs -dvd-compat -Z /dev/[device]=mynew.iso

Or use whatever device the DVD writer shows up as.

Verify the burned DVD’s md5sum

To verify the burning to DVD:

# dd if=/dev/[device] | head -c `stat --format=%s mynew.iso` | md5sum

The resulting number you get should match the md5sum of the iso image.

Burning ISO images to CD

You need to determine the SCSI address of the CD burner. As root, issue the command:

# cdrecord --scanbus

In my case the CD Burner is on 2,0,0:

Cdrecord-Clone 2.01 (cpu-pc-linux-gnu) Copyright (C) 1995-2004 J�rg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to
Note: The author of cdrecord should not be bothered with problems in this version.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c      1.83 04/05/20 Copyright 1997 J. Schilling').
        2,0,0   200) 'TSSTcorp' 'DVD+-RW TS-L632H' 'D400' Removable CD-ROM
        2,1,0   201) *
        2,2,0   202) *
        2,3,0   203) *
        2,4,0   204) *
        2,5,0   205) *
        2,6,0   206) *
        2,7,0   207) *

Then to burn the CD do:

# cdrecord --dev=2,0,0 name.iso

To erase a re-writable CD before burning do:

# cdrecord --dev=2,0,0 --blank=fast