On Sat, May 9, 2009 at 7:35 PM, Feifei (7I7I) <[email protected]> wrote:
> Yes, actually I have read this "man biosboot", but the point is I don't
know
> how to resolve this issue :-(.
...
>> > I installed the OpenBSD 4.5 some days ago, but boot failed after all
>> > installation were completed. I flag the partition of OpenBSD bootable
>> > ,but only get "loading ... ERR M" error code,
Can you describe _how_ you installed OpenBSD 4.5? From an official CD
and the '(U)pgrade' option? From source? Some other method?
Next, you say you've read the biosboot manpage, so you've seen this:
ERR M Bad magic. The ELF ``magic number'' \7fELF in boot(8)'s header
was not found. This indicates that the first block of boot(8)
was not read correctly. This could be due to disk corruption,
failing to run installboot(8), giving an invalid boot(8)
program
as the boot argument to installboot(8), or incorrect geometry
translation.
There are four error conditions listed there:
1) disk corruption
2) installboot wasn't run
3) bad boot program when installboot was run
4) incorrect geometry
I asked above how you did the installation because that might point to
or rule out condition (2).
To test condition (3), I would start by examining the output of
ls -l /boot
file /boot
(I find your partitioning scheme, with extended partitions nested four
deep but only 6 real partitions, to be bizarre, but hey, whatever
floats your boat.)
Philip Guenther