On Tue, Sep 19, 2006 at 11:26:49PM -0500, Benjamin Collins wrote:
> When I boot one of my boxen up, it fails to boot.  As soon as it hits
> hd0, I see this:
> 
> Using drive 0, partition 3.
> Loading...
> ERR M

>From biosboot(8):

     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.

To diagnose:

Boot a cd image, enter shell.  Issue:

     # fdisk wd0
     # disklabel wd0

if the output of both fdisk and disklabel appear fine, then and only then
would I assume the problem is a relocated /boot file.  To fix:

     # /usr/mdec/installboot -n -v /boot /usr/mdec/biosboot wd0

See installboot(8) for additional information.

Reply via email to