How to create an ISO file using Terminal (Mac OSX)
by ixzy24 on 28/06/2010ISO is a disk image / archive file of an optical disc defined by the International Organization for Standardization. ISO image files typically have a file extension of .ISO and is supported by many software vendor. The name ISO is taken from the ISO 9660 file system used with CD-ROM media, but an ISO image can also contain UDF file system because UDF is backward-compatible with ISO 9660. An ISO file contains the image of a disk, meaning that it contains every file and folder structure that the disk had.
There’s nothing about the ISO format that actually knows about files, folders or formats. It’s just the raw data from the disk. Now, naturally that raw data, if interpreted correctly, may know about files, folders and format. But, like a disk, the operating system has to look, see what format was used (things like FAT32, NTFS and the like), and interpret the contents of the ISO file as if it were reading the raw data from an actual disk.
Creating ISO file:
1. Insert CD/DVD
2. Open Terminal, type the following command to view the
$ drutil status Vendor Product Rev OPTIARC DVD RW AD-5630A 1AHN Type: DVD-R Name: /dev/disk1 Sessions: 0 Tracks: 2 Write Speeds: 2x, 4x, 6x, 8x Overwritable: 00:00:00 blocks: 0 / 0.00MB / 0.00MiB Space Free: 49:35:27 blocks: 223152 / 457.02MB / 435.84MiB Space Used: 00:37:09 blocks: 2784 / 5.70MB / 5.44MiB Writability: appendable Book Type: DVD-R (v5) Media ID: TTG02
3. Unmount the disk with the following command.
$ diskutil unmountDisk /dev/disk1
4. Now to create the ISO file (will take sometime):
$ dd if=/dev/disk1 of=image.iso bs=2048
It takes sometime, it took about 25 minutes for me to create an image from a DVD. After that you can see something like this from terminal.
2074720+0 records in
2074720+0 records out
4249026560 bytes transferred in 1494.992734 secs (2842172 bytes/sec)
5. Test the created ISO image by mounting or opening with Finder:
$ hdid image.iso
6. ISO image is ready for use. Enjoy. (The default location the file will be saved is the User folder)
