Tag Info

Hot answers tagged

26

All volumes, including DMGs, are mounted in /Volumes. You can get a list of mounted volumes by typing ls /Volumes in Terminal. You can navigate to a Disk Image using cd /Volumes/nameOfImage.


18

Technically, a .pkg is not a file, but a folder. So maybe collecting it into a single file is essential for downloading.


15

.dmg files are disk images, similar to an .iso file. You can think of them like a virtual CD. You put it into the CD drive (mount it), and its contents appear on your computer. When used for software downloads, they are simply a way to bundle up files, like in a ZIP archive. Their advantage is that it's possible to customize the design (e.g. Finder window ...


13

If you want to do it from the command line, you can use hdiutil like so: hdiutil create -volname WhatYouWantTheDiskToBeNamed -srcfolder /path/to/the/folder/you/want/to/create -ov -format UDZO name.dmg Man hdiutil for more details.


12

Yes, Disk Utility can do this. Use Convert then select your dmg file. In the Save As dialog that follows, select DVD/CD master. Disk Utility will insist on saving the new ISO as a .cdr file, but it is really an ISO. You can rename it to .iso in the Finder, if you like. At http://osxdaily.com/2012/07/18/convert-dmg-to-cdr-or-iso-with-disk-utility/ there are ...


11

From the DropDMG manual: Sparse bundle disk images appear as a single file but are actually stored as a folder with many files inside. This makes it more efficient to back them up using Time Machine or other backup utilities, as only the changed parts need to be copied. Additionally, sparse bundle disk images work well with the Compact ...


10

The hard-drive looking thing on the desktop is a mounted disk image; the .dmg file is the file where the data for the image is. To get rid of the image, unmount it. There are three four five good ways to do it: Drag the disk to the trash. The trash will turn into an eject icon while dragging. Highlight the disk on the desktop and select File > Eject in ...


10

I've been interested in this question since Nov 2012 and even set up a FreeNAS VM to reproduce the issue. I eventually gave up but since the question has been resuscitated I will share what I found out back then and in the last hours (luckily I didn't delete the VM) and what I think the cause for this issue is. I have also found a workaround. My setup ...


9

This is exactly what a dmg does. To create one use Disk Utility and hit the New Image icon. Then choose the size, encryption and choose the image format as one of the sparse images. Even if you choose a large size it will only take up space according to what you save in it.


9

An application on a Mac is just a folder full of files with a .app extension. However, OS X hides this fact from you and displays the folder as a file with an icon. Now when you download something it's very uncomfortable to download folders (without a download manager). Therefore this "App Folder" has to be put inside a single file somehow. This can be done ...


9

The problem appears to happen when you unmount the image using umount. Remount the image (either using hdiutil attach or just double click the image) and use the command hdiutil detach it again. This will unmount and eject the image. hdiutil detach /Volumes/<your image>


8

Data on DMG image can be checked for integrity with Disk utility. You can make it mandatory for the user to agree to license before mounting dmg. It could be locked from modification. You can easily add hidden files and folders on DMG. You can make background image. You can make it safe from stripping during transit through non-metadata aware file systems ...


8

First, mount the dmg image : sudo hdiutil attach <image>.dmg The image will be mounted to /Volumes/<image>. Mine contained a package which i installed with: sudo installer /Volumes/<image>/<image>.pkg -target /. Finally unmount the image: sudo hdiutil detach /Volumes/<image>.


7

An article written by someone else who did that: http://blog.whitehatsec.com/cracking-aes-256-dmgs-and-epic-self-pwnage/ The author did get his cracked, but had to borrow a supercomputer to do so even after he got custom software designed to use partial knowledge of the password he had chosen. It shows how hard a general cracking effort would be, but ...


6

I have an external hard drive with several installers on it. All you need to do is make several partitions, each large enough for the disc you're imaging. (My drive has 10.4 Tiger PPC, 10.5 Leopard PPC, 10.5 Leopard Intel, and 1.6 Snow Leopard on it, and I have a Lion USB flash drive.) I made the images using Disk Utility's Restore feature. Select the ...


6

You should be able to mount the .dmg using: hdiutil attach /path/to/file.dmg And then copy its contents (which appears in /Volumes) where ever you like.


5

The /Applications folder is just a convenient place to store all of your applications. You can theoretically story them anywhere. Some software (such as Butler) will automatically search for applications in these standard locations, so if you store them elsewhere (such as /Users/Shared/Applications) such software won't find them by default. Generally there ...


5

I created a Folder Action script in Applescript, that might do just what you want. Copy and paste it into a new Applescript, and save it as an Application (without a starting dialogue!) into "/Library/Scripts/Folder Action Scripts/". You can then attach it to any folder (most likely your ~/Downloads/ folder ) by right clicking on the folder and selecting ...


5

Setup a new volume on your Nexenta/OS box for your backup and set it to share out as an iSCSI LUN. Then use one of several iSCSI initiators for MacOS X to attach the backup volume on your back. On your mac, format the volume as HFS+. Now you can use CCC or rsync, etc. to do your backups.


5

After Mountain Lion is installed, your Mac auto-deletes "Installer Mountain Lion.app". So before installs or upgrades like that, you must make a backup (compress it and move file compressed to anywhere, where you put storage data). And now, you need to download "Installer Mountain Lion.app" again from the App Store.


5

A DMG can be set to display a license agreement before it will allow you to open it. This is normal and nothing to be alarmed about. Once you accept the license agreement, it will mount and open the normal Finder window showing its contents. See this thread on Cocoa Builder. There is no way to disable it and nothing is being auto-run.


5

DropDMG I use and recommend DropDMG since it has many features that make it useful for sharing software such as scripting the building of a DMG file directly from my CI server when I promote a build using the included CLI tool dropdmg. Above: Many options for configuring a DMG file, including layouts and showing a license when opening the DMG.


4

One possible reason could be that Safari by default automatically mounts DMG files, and that a Finder window would pop up with the contents. In turn the DMG folder could be styled with for example a background image. I assume that could be considered more user-friendly than having to look in your Downloads folder for an installer, but I agree it's pretty ...


4

You can not write to a disk image where the format is compressed … files in and out … The compressed formats do not allow addition, edition or removal. You can use existing files to create an image with a compressed format. Write once. If you create a new blank disk image that is compressed — with or without encryption — it will be relatively ...


4

Sparse bundle disk image is an optimized form of the sparse disk image. It optimizes intentionally to reduce network load upon backup of changes to the filesystem at the expense of time and space. Specifically it uses a hashing function to store bits of data across a large directory structure which allows changes to be isolated in smaller band files. When ...


4

Different file systems and disk formats have different block sizes, which all files are rounded up to in size. If you have a lot of small files on one file system, and try to move them all to a different file system or media format with much larger block sizes, the total space required can balloon.


4

Here are a few online guides to creating auto-opening DMG files. From the first guide by Bill Bateman, step 23 seems to be the key: Click Convert on the toolbar. Enter a new filename and make sure the image format is compressed. Click Save. This creates a new image. Another guide (via this post) has a bunch of information. The info regarding the ...


4

If you mean volumes that are shown after you mount dmg files, you can uncheck this checkbox: You can eject volumes from Finder's sidebar or by selecting their icons and pressing ⌘E.


4

The files on an encrypted disk image are encrypted. As you can see currently you can have 128 bit AES and 256 bit AES. As is pointed out 256 bit will be slower but more secure, however both methods will leave your data encrypted, until it is decrypted. The real issue is how strong the password for the encrypted volume is. If the password is not a ...


4

The Mavericks installer comes with a tool to make bootable installer. Just use sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction



Only top voted, non community-wiki answers of a minimum length are eligible