I have created iso files by using two commands:
- dd if=/dev/cdrom of=filename
- cp /dev/cdrom filename
What's the difference between the two, both have worked for me.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
For copying CDs then both are fine although I generally expliciatlly set the block size by doing
dd if=/dev/cdrom of=cdrom.iso bs=512
For other block devices then cp might not work if the block size on the device is unexpected.
Note that an attempt to copy the entire disk image using cp may omit the final block if it is an unexpected length; dd will always complete the copy if possible.
Using the dd command allows for a "byte-exact" copy of the specified input. If the dd command is used on a disk rather than the cdrom, it will be able to copy previously deleted files which cannot be seen by the cp command from the filesystem interface. But since you are using /dev/cdrom as the input (which doesn't have the same structure as a disk), there are no previously deleted files on the interface, so the commands should work exactly the same.
for more information: http://en.wikipedia.org/wiki/Dd_(Unix)