First, I'll start by explaining how I got my problem, this will help me get across what I need.
A few months ago, my laptop hard disk broke. I had no quick replacement, but I needed that laptop the next day, so all I could do was to rip the 2.5" drive out from my router. The router was actually an ATX PC, running OpenBSD 4.9. Now, since I needed that drive very quickly, I created an image with dd on my desktop computer, put the drive into the laptop and installed Fedora.
OK, now I have a replacement hard drive for my laptop, and before I start installing stuff on the hard drive that is going back into the router, I was asking myself, how I could mount the image that I made when I started...
The point is, I could make a fresh install of the latest OpenBSD and then just use things like config files from the image. The only thing I know of that I can do now, is simply write the image back to the disk with dd. This should work and all that, but I'd like to use the opportunity to upgrade the system as well.
I tried mounting the OpenBSD partitions before making the image, but it didn't work, and I had very little time (only a couple of hours on this one evening). Should I write back the image to disk, then try to mount it, recover the files I need and then install the latest OpenBSD?
ddandmount+ actual error messages. Also output offdisk -l backup.imgwould be nice. Have posted one answer, – comment if any problems.