Skip to content

Instantly share code, notes, and snippets.

@smothiki
Created June 1, 2019 18:13
Show Gist options
  • Save smothiki/e7167b8835ca8c391f42a9136d5f445c to your computer and use it in GitHub Desktop.
Save smothiki/e7167b8835ca8c391f42a9136d5f445c to your computer and use it in GitHub Desktop.
an be done, but not from a nice user interface.
I was playing around with the gparted Linux live partitioning distro. I had used this to re-arrange the partitions on my Linux VMWare image so it could be easily resized. This ISO is a hybrid and and doesn't mount from the finder. Here are some interesting commands. (All run from root)
hdiutil imageinfo gparted-live-0.25.0-3-i686.iso
Display all kinds of information about the image
hdiutil pmap gparted-live-0.25.0-3-i686.iso
Display the partition map
And here is the good stuff...
hdiutil attach -nobrowse -nomount gparted-live-0.25.0-3-i686.iso
Attach to the image but don't mount anything. It will print out the useable partitions like so:
/dev/disk2 FDisk_partition_scheme
/dev/disk2s2 0xEF
Since this is a hybrid image, the one I want is the first one.
mount -t cd9660 /dev/disk2 /tmp/cd
Where I have created /tmp/cd (as root). Now the full CD is mounted at /tmp/cd
When I'm done, do the following...
hdiutil detach /dev/disk2
"disk2" unmounted.
"disk2" ejected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment