dmg2iso script for mac

To convert .dmg file to iso on MAC,

use this script.

     $> sudo vi /usr/bin/dmg2iso
           #!/bin/bash           echo "Converting "$1".dmg to "$1".iso:"           hdiutil convert "$1".dmg -format UDTO -o "$1".iso           mv "$1".iso.cdr "$1".iso
     $> sudo chmod +x /usr/bin/dmg2iso

     $> dmg2iso [filename without extension .dmg]


[Ref: http://hints.macworld.com/article.php?story=20040121135301830 ]

Another easy way. 

Open terminal

$>mount
Then, find ODD path like /dev/disk1s2. 

then 
$>dd if=/dev/dis1s2 of=image.iso

Easy isn't it?

Comments

Popular posts from this blog

[VS2010][VS2015] "stdafx.h 을 포함 소스를 찾을 수 없습니다" 에러 해결법