Linux Copy cdrom to ISO using dd

=How to backup a Cdrom, DVD or BluRay drive=

First, find the volume size and the block size of the CD or DVD as shown below using isoinfo command.

 * Syntax: isoinfo -d -i DEVICE-Of-CD-DVD


 * 1) isoinfo -d -i /dev/cdrom

CD-ROM is in ISO 9660 format System id: WIN32 Volume id: RQ0010 Volume set id: Publisher id: Data preparer id: Application id: ULTRAISO V9.3 CD & DVD CREATOR, (C)2008 EZB SYSTEMS, INC.	Copyright File id: Abstract File id: Bibliographic File id: Volume set size is: 1 Volume set sequence number is: 1 Logical block size is: 2048 Volume size is: 1825 Joliet with UCS level 3 found NO Rock Ridge present

Next, copy the CD or DVD image as an ISO file using the dd command as shown below.

 * 1) dd if=/dev/cdrom bs=2048 count=1825 of=mydata.iso

1825+0 records in	1825+0 records out 3737600 bytes (3.7 MB) copied, 4.43782 seconds, 842 kB/s


 * notes from Saint DanBert user
 * Saint DanBert April 5, 2010 at 2:08 pm
 * Within the ‘dd’ command, the bs=nnnn option must be (a) the same, or (b) an integer multiple of the block size reported by isoinfo.
 * Within the ‘dd’ command, the count=nnnn option is optional.
 * Cheers,
 * 8d;-Dan
 * Cheers,
 * 8d;-Dan

=How to find out the device that your DVD/CD rom is attached to, type the following at the command prompt.= $ cat /proc/sys/dev/cdrom/info CD-ROM information, Id: cdrom.c 3.20 2003/12/17

drive name:            sr0 (...)

=More information=
 * http://linux.101hacks.com/unix/create-iso-file-from-cd-dvd/
 * http://linux.101hacks.com/unix/create-iso-file-from-cd-dvd/

=See Also= Mounting_ISO_file