When you first run the OpenBSD installer, it asks if you want to use a MBR or HFS partition map. Actually, the terminology isn’t quite accurate, since HFS is a disk format, not a partition map, but whatever. The idea is that if you want an OpenBSD only system, choose MBR. If you want to dual-boot with MacOS, choose HFS. This is documented (see above ftp link), but it’s not obvious when just running through the installer. However, even when I choose MBR, it didn’t work. I’d get all the way through the install, and then get a message about being unable to mount hd0i: device busy. I had to go into apple’s Disk Utility and re-partition the drive as a single partition, DOS-fat formatted, with MBR partition map before OpenBSD would fully install.
Even once I did that, however, the OpenBSD install would not boot. As it turns out, there is some open-firmware jiggering needed. It is actually sort of documented here, but those directions aren’t complete. For one thing, those directions seemingly for when you are sharing the disk with MacOSX, which is not the case here. For another, those directions boot into the installer (even when booting from the HD), not the full OS. And finally, those directions only give you a one-time boot- you still have to go into Open Firmware every time you want to boot OpenBSD, which is inconvenient at best.
The solution, as it turns out is to set the “boot-device” Open Firmware environment variable as such:
setenv boot-device hd:,ofwboot /bsd
reset-all
The reset-all is necessary to save the variable. If you just do a setenv followed by a mac-boot, you will boot into OpenBSD, but as soon as you restart the machine you are back to the computer not recognizing the boot disk. Also notice that the last argument of the setenv command is /bsd rather than bsd.rd as shown in one of the documents. If you use bsd.rd it will boot, but you will get the installer every time, not the normal OS. Using /bsd gives a normal boot. Apparently it is also acceptable to simply leave off the /bsd, but I haven’t tried this.
So in summary, the steps needed to transform a PPC mac mini into a OpenBSD Mac mini are as follows:
- Use Disk Utility to repartition the drive as a single DOS formatted partition with a MBR partition map.
- Install OpenBSD for MacPPC
- Drop into open firmware (command-option-o-f on boot) and issue the following commands:
setenv boot-device hd:,ofwboot /bsd
reset-all
And with that, you should have a fully-functional OpenBSD Mac Mini box that boots directly to OpenBSD every time! Good luck!