Hdiutil from manpage: hdiutil — manipulate disk images (attach, verify, burn, etc).
Native Apple command line utility for working with disk images (*.DMG). It uses the DiskImages framework. Disk images (usually with a .dmg, .img, or .iso file name extension) are often used for distributing programs and for burning CDs/DVDs, I use it to share my Data wirh friends, lets look how it works:
You have a folder that you will share with your friends, of course you can create a archive like zip, but this is a kind of alternative method:
Creating a disk image from a folder:
1 | create Dropbox.dmg -srcfolder Dropbox -volname "IDs Dropbox Image" |
Mount Image manualy (or click on it from Finder))):
1 | hdiutil mount Dropbox.dmg |
Umount Image:
1 | hdiutil unmount /Volumes/IDs\ Dropbox\ Image/ |
Burn images to CD/DVD with hdiutil (before you go on insert a blank CD/DVD):
1 | hdiutil burn debian-6.0.4-amd64-i386-netinst.iso |
Create an encrypted disk image:
1 | hdiutil create Dropbox.dmg -srcfolder Dropbox -volname "IDs Dropbox Image" -encryption |
During the creation of the disk image, you will be prompted to enter a password that will allow access to the contents of the disk image. Please remember this password, otherwise you cant access your data in the image!
Leave a Reply