February 10, 2010
Convert OSX DMG files to dd/img files

osx .dmg files can be easily converted to raw disk dumps (for use with the venerable dd) thusly:

    hdiutil convert -format UDTO -o new.dd original.dmg


Then you can ‘burn’ the image onto a thumbdrive or the like:

    dd if=./new.dd of=/dev/disk2 bs=2m


Note that if you get the output file parameter wrong, you run the risk of overwriting something you might not want to, like your boot disk.

11:00pm  |   URL: http://tmblr.co/ZDaFtx2agKus
  
Filed under: osx cli disk 
February 9, 2010
Mount .iso images in osx

For some reason, osx doesn’t magically mount .iso images (i.e. dvd or cdrom backups). Fortunately, you can use the following:

/usr/libexec/vndevice attach /dev/vn0 image.iso && mount_cd9660 /dev/vn0 /your/mountpoint

You will find the contents of the iso image in /your/mountpoint

11:00pm  |   URL: http://tmblr.co/ZDaFtx2agfaO
Filed under: osx 
Liked posts on Tumblr: More liked posts »