Back up CD or DVD ie disk media with DD
So you need to find the device name by typing the “mount” command. Below you can see the device that is type iso9660 which is a give away that it is a optical media device.
$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/home/user/.Private on /home/bab type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_sig=8d1c115a6a1982b4,ecryptfs_fnek_sig=48a424107752079f,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)
gvfs-fuse-daemon on /home/bab/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=bab)
/dev/sr0 on /media/327 type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)
/dev/sr0 is the device name of the disk drive.
So as you can see below if= the source and of= is the destination.
$ dd if=/dev/sr0 of=/home/user/fileName.iso
54520+0 records in
54520+0 records out
27914240 bytes (28 MB) copied, 11.2879 s, 2.5 MB/s