backup drive bootabel

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Nov 13 02:05:48 PST 2003


On Wed, Nov 12, 2003 at 02:32:20PM -0800, Noah wrote:
> 
> > i) Make the 2nd disk an identical copy to the 1st one.  In this case
> > should the 1st drive go AWOL, you would have to open the case and
> > either remove the first drive or modify the jumpering on the disks to
> > swap their order on the bus.  You will need to mark the FreeBSD slice
> > bootable in the disk partition label by running:
> > 
> >     # boot0cfg -B -b /boot/mbr -s 1 da1
> 
> 
> okay this is the command I was Looking for but I am arriving at an error:
> 
> # boot0cfg -B -b /boot/mbr -s 1 da1
> boot0cfg: /boot/mbr: unknown or incompatible boot code
> 
> I think the partitions are about the same so I am not clear why this is happening.

Hmmm... What FreeBSD version are you using?  I had assumed 4.x,
because that's what I'm using.  It may well be the case that the
sample mbr has been moved somewhere else in the filesystem.

Checking the fdisk(8) and boot0cfg(8) man pages for clues doesn't
confirm that though.

The mbr should be a 512 byte file generated from the assembler sources
in /usr/src/sys/boot/i386/mbr

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031113/87595f09/attachment.bin


More information about the freebsd-questions mailing list