zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Mac OS hdiutil

July 17, 2012 by Igor Drobot Leave a Comment

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"

create Dropbox.dmg -srcfolder Dropbox -volname "IDs Dropbox Image"

Mount Image manualy (or click on it from Finder))):

1
hdiutil mount Dropbox.dmg

hdiutil mount Dropbox.dmg

Umount Image:

1
hdiutil unmount /Volumes/IDs\ Dropbox\ Image/

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

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

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!

Filed Under: Linux Tagged With: burn, create DMG, hdiutil

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok