dmg2iso script for mac
To convert .dmg file to iso on MAC,
use this script.
$> 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?
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
#!/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