Page 1 of 1

Disk Images

Posted: Sun Oct 25, 2020 5:52 pm
by WizKid
Is there a way to mount disk images formatted with Mac OS Standard (HFS) in recent OS X versions read/write?

All I get is the infamous error "please convert."

I've tried the updated version of HFS for osxfuse with no luck.

Re: Disk Images

Posted: Sun Oct 25, 2020 6:12 pm
by mabam
There’s hfsutils which can be installed via homebrew:

I’ve never used it myself, though.

Re: Disk Images

Posted: Mon Oct 26, 2020 5:00 am
by Elyus
Sadly, it's no longer easy for Macs to handle standard HFS. :sad: Apple continues to remove many backwards-compatible technologies, and mabam's advice of hfsutils is about the only workable solution.

It's worth noting that hfsutils is just a collection of command line tools; it has neither a GUI of its own nor support for mounting images to browse in Finder. This was enough of a hurdle that I ended up using Sheepshaver, but if you want to use macOS, I would recommend this helpful blog post. Basically, you have to connect the disk, call hmount, and then you can read/write data using hcopy until releasing with humount.

The author of that post was connecting a physical disk, so for an image, you'll need to use hdiutil to assign it a /dev endpoint:

Code: Select all

sudo hdiutil attach -nomount <path to image>
You can then use "diskutil list" to find the virtual disk number and run hmount. It can be later removed with hdiutil detach /dev/disk#.

Best of luck in your endeavor!

P.S. In case it's helpful: while you may not be able to mount HFS partitions for browsing in Finder, you can with ISO9660 partitions. I was working with hybrid CD images and even though the mount_cd9660 command line tool can't create traditional mounted images, it can mount to a folder:

Code: Select all

sudo mount_cd9660 -o nodev,nosuid,rdonly <path to image>  <path to empty folder to serve as mount point>