Questions tagged [hdiutil]
16 questions
19
votes
13 answers
I'm unable to mount a DMG, getting a "no mountable filesystems" error
I downloaded a DMG of some commercial Mac software (CSSEdit) but I found that the DMG wouldn't mount. I tried another image from the same company, and then a number of images I had laying around from other software. About half of them mount and…
Peter Burns
- 1,731
17
votes
2 answers
Shrink a .sparseimage
I have a .sparseimage that occupies 90GB of space on my hard drive despite only having 30GB of files in it. How can I reclaim the empty space used by the .sparseimage and compact the file?
squircle
- 6,773
17
votes
7 answers
Bypass a licence agreement when mounting a DMG on the command line
I'm automating my Mac installation using puppet. As a part of it I need to install several programs that come in a .dmg format.
I use the following to mount them:
sudo /usr/bin/hdiutil mount -plist -nobrowse -readonly -quiet -mountrandom /tmp…
Vitaly Kushner
- 1,550
10
votes
2 answers
Converting .iso to .img in Mac OS X 10.6
I'm trying to convert an .iso file (Ubuntu disc image) to a .img file.
I run a command like so:
hdiutil convert -format UDRW -o ubuntu.img ubuntu-11.04-server-amd64.iso
But no matter what, I get the error: hdiutil: convert failed - not…
AKor
- 275
9
votes
3 answers
Mounting an ISO image with readwrite permission
I am following these instructions for creating a cross-platform CD. I am coming across a problem in Mountain Lion where I cannot mount the image as read-write.
When I enter the following in Terminal:
hdiutil attach -readwrite ~/2013CD.iso
I get the…
colincameron
- 525
9
votes
2 answers
hdiutil on Linux
Anyone know of a Linux port of the Mac OS tool hdiutil (http://www.unix.com/man-page/osx/1/hdiutil/)?
psychotik
- 276
5
votes
3 answers
Can't unmount dmg. Keep getting "Resource Busy"
"Workspace" is an encrypted dmg where I keep my code. I don't usually unmout it but I need to take a backup and it's refusing to let me unmount:
mark@mark-macbook-air /Volumes$ lsof | grep Workspace
mark@mark-macbook-air /Volumes$ lsof…
Mark
- 151
3
votes
1 answer
Create single disk image from drive with multiple partitions
I'm running Mac OS X 10.11.6. I have a variety of old CD-R's that contain multiple partitions (I would imagine this also applies to an HD). When I insert the disk, each partition mounts as a separate volume on my desktop. Lets say the device is…
utt50
- 51
- 1
- 4
3
votes
1 answer
format disk with APFS, the new apple file system?
Has anyone managed to format an actual real disk with the new apple filesystem APFS in Mac OS Sierra ?
the documentation explains how to make a disk image with APFS:
hdiutil create -fs APFS -size 1GB foo.sparseimage
However, when trying to restore…
user1259710
- 245
3
votes
0 answers
Is it safe to cancel hdiutil compact?
A sparse image is a type of disk image file used on Mac OS X that grows in size as the user adds data to the image, taking up only as much disk space as stored in it (quoth Wikipedia). If a sparse image takes up more space than the data it contains,…
Frungi
- 215
2
votes
0 answers
Mount the second partition of an image with hdiutil
I'm trying to open a partition on my Mac (OSX Mavericks).
Particularly, I've got a file.img image which includes two partitions: a boot partition and a second partition formatted in ext2.
When I launch the command hdiutil mount file.img it only…
auino
- 123
1
vote
0 answers
Determine exact size of DMG to hold data
Let's say that I have three files with the following sizes:
FileA: 15468bytes
FileB: 3874235bytes
FileC: 10452326bytes
and I want to create a UDIF, GPTSPUD, HFS+ DMG with hdiutil which will exactly the size needed to hold these files. I can, of…
ericg
- 584
1
vote
0 answers
Recover Time Machine sparsebundle backup
I have a Time Machine backup from an old computer that I can't open. When I double click on the sparsebundle file, I get "no mountable filesystems".
I've next tried this:
hdiutil attach -nomount -noverify -noautofsck Emily’s\ iMac.sparsebundle
This…
Jon Roberts
- 111
- 1
1
vote
0 answers
Creating a base image for macOS High Sierra with Apple File System (APFS)
I used to be able to create a single dmg file of a Mac disk drive (contains all partitions including recovery partition) and then deploy it to another Mac as per these instructions: https://support.apple.com/en-us/HT202841. However this no longer…
KeithJ
- 31
0
votes
1 answer
Attach disk drive in Linux
Is there a Linux equivalent of the Mac's
sudo hdiutil attach -imagekey -diskimage-class=CRawDiskImage -nomount
I have an imagine I want to attach as a disk drive, but I don't want to mount it. The image is HFS+ formatted and I'm running Ubuntu.
HtS
- 323