Skip to content

Bless image without using virtual machine. #41

Answered by fadden
dsaul asked this question in Q&A
Discussion options

You must be logged in to vote

Blocks 0 and 1 hold the boot blocks on an HFS volume. The format is described here. I didn't try to set this up in the volume formatter because I wasn't sure if a "one size fits all" boot block would work generally, since it has executable 68K code in it. There's a flag in the version field that seems to disable execution of code in the boot block, so maybe the code is only needed for specific hardware or older machines? Might be worth playing with to see if there's a general solution that will save a step when creating new system volumes.

FWIW, you can save a copy of the boot blocks like this:

$ cp2 read-block bootable-image.dsk 0 > boot-block0.txt
$ cp2 read-block bootable-image.dsk 1 >…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dsaul
Comment options

@fadden
Comment options

Answer selected by dsaul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants