Using dd on cygwin for making ISO

With mosts Cd’s you can make a 1:1 copy with dd and burn this ISO 9660 image using any standard tool.

dd if=<filepath or device> of=<filepath or device>

/dev/sda first hard disk (whole disk)
/dev/sda1 first hard disk (first partition)
/dev/sr0 first cdrom

create a cdrom iso:

dd if=/dev/sr0 of=cdrom.iso

more: http://www.cygwin.com/cygwin-ug-net/using-specialnames.html

This does not work with Playstation-Cd’s because the data track is written in mode 2 which dd can’t read, and because the Cd’s are multitrack (one data-track and several audio-tracks).

To read a CD and make a image pair:

cdrdao read-cd –read-raw –datafile <filename.bin> –device <bus,id,lun> –driver generic-mmc-raw <filename.toc>

create a cdrom iso:

cdrdao read-cd –read-raw –datafile cdrom.bin –device ATAPI:1,0,0 –driver generic-mmc-raw cdrom.toc

One Response to Using dd on cygwin for making ISO

  1. I was sort of hoping dd would also be able to write directories to an iso. I guess only mkisofs does that.

Leave a comment