After completed Frozen Throne, I wanted to play Warcraft III from my Mac. My friends gave me the Frozen Throne .iso image which enable me to run without cd. Although I have Warcraft installed in my Mac, I do not have the .iso image for Warcraft III. I am too lazy to insert and eject the cd too as I play it regularly. I can’t just keep the cd by myself as I am sharing it with my house mate. So time to learn to create cd image file (This should work the same way as Linux/Ubuntu).
So after I put in the cd, when I type ‘mount’ command, I will have this:
[html]
lindaoctalina$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local)
fdesc on /dev (fdesc, union)
map -hosts on /net (autofs, automounted)
map auto_home on /home (autofs, automounted)
/dev/disk1s1s2 on /Volumes/Warcraft III (hfs, local, nodev, nosuid, read-only, noowners)
The last line of the above code is for my Warcraft III cd drive. I need to ‘umount’ the cd before I can process the iso file. (Note: You might need to use root/sudo user)
[html]
lindaoctalina$ sudo umount /dev/disk1s1s2
Then start to create the iso image:
[html]
lindaoctalina$ dd if=/dev/disk1s1 of=warcraft3.iso bs=1k
The process of dd command is to copy the file to the harddisk, convert it and format the file. For the ‘if=/dev/disk1s1′ means that read from cd room instead of stdout and ‘of=warcraft3.iso’ means that copy to local harddisk with the name of warcraft3.iso. ‘bs’ is to specified the number of blocks per bytes (can have kB, MB, etc)
You need to wait for few minutes to let the image file being created, then you will get the following code:
[html]
687548+0 records in
687548+0 records out
704049152 bytes transferred in 540.453743 secs (1302700 bytes/sec)
After finish, remember to eject the cd. As it is not mounted, we need to do manually (in Mac can use disk utility to eject the disk). Use below code to eject manually from terminal:
[html]
eject /dev/disk1s1
Note: it works for any application that requires CD and not only Warcraft III and Starcraft.