Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2005 13:43:13 -0700
From:      garys@opusnet.com (Gary W. Swearingen)
To:        John Do <pcbsdguy@yahoo.ca>
Cc:        questions@freebsd.org, "Gary W. Swearingen" <garys@opusnet.com>
Subject:   Re: Boot Loader Problem
Message-ID:  <s2fys29kf2.ys2@mail.opusnet.com>
In-Reply-To: <20050918160553.11985.qmail@web35812.mail.mud.yahoo.com> (John Do's message of "Sun, 18 Sep 2005 12:05:52 -0400 (EDT)")
References:  <20050918160553.11985.qmail@web35812.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
John Do <pcbsdguy@yahoo.ca> writes:

fdisk, etc, looked good.

> boot0cfg -v /dev/ad0
>
> #       flag     | start  chs  |   type    | end chs  
>    |   offset  |  size
> 1       0x80       0:   1:1        0x07      1023 254:63      63         40001787

OK.

> boot0cfg -v /dev/ad2
>
> #       flag     | start  chs  |   type    | end chs  
>    |   offset  |  size
> 1       0x00       0:   1:1        0x07      1023 254:63      63         133114527
> 2       0x00     986:   2:1        0x05       903  15:63   133114590     10239138
> 3       0x00    1024 254:63        0x83      1023 254:63   143364060     48195

The type on line "2" should be 0xa5, not 0x05, but I suspect a typo.
I don't know if one of the flag's needs to be 0x80, or not.  Both of
my disks have one marked 0x80.  It's probably OK, and just means
you don't have a default slice, eg, set with "-s 2" in boot0cfg.

>> I don't remember who asked what before, but you should also try:
>> 
>> boot0cfg -B -s 5 -o packet ad0
>> boot0cfg -B -s 2 -o packet ad2

You didn't say if you tried those, but it doesn't seem to be the
problem (yet).  You would need -o packet on ad2 and LBA BIOS mode, I
think since your FreeBSD slice goes past 1024 cyls.

But that 133114590 number looks right, and I see no other problem.

So it looks like the the MBR code just doesn't see the second disk.
Probably because the BIOS doesn't play well with the MBR code, and I
can't think why.  It should even have to get the geometry right since
it only has to grab the first sector of the disk.  And you know other
software can see the disk.  At this point I'd give up on "boot0" and
try to find a Grub (or GAG?) floppy to boot from.  It should let you
boot both systems.  Or try a boot manager from the MSFT world.

Sorry.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?s2fys29kf2.ys2>