Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Sep 2005 21:56:55 -0700
From:      Glenn Dawson <glenn@antimatter.net>
To:        John Do <pcbsdguy@yahoo.ca>, freebsd-questions@freebsd.org
Subject:   Re: Stand-alone GRUB HELP
Message-ID:  <6.2.3.4.2.20050911214618.096c8b80@cobalt.antimatter.net>
In-Reply-To: <20050912041842.57957.qmail@web35801.mail.mud.yahoo.com>
References:  <20050912041842.57957.qmail@web35801.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 09:18 PM 9/11/2005, John Do wrote:
>Hi guys
>
>I have been reading documentation and I'm still
>confused.
>
>I have Windows on ad0 and FreeBSD on ad2
>
>I installed the BSD bootloader but it is only booting
>Windows.
>
>There is some limitation or problem and no matter what
>I try in the emergency shell I cannot configure
>boot0cfg to work properly.
>
>So I need two solutions to try:
>
>How do I configure the BSD boot loader to work to boot
>both Windows and FreeBSD?  I have tried commands like
>
>boot0cfg -B -s 2 ad2 and it doesn't seem to help or
>boot

I think what you want is:

test54# boot0cfg -B -s 5 ad0
test54# boot0cfg -B -s 1 ad2

If you reboot, you should end up booting from the first slice on ad2.

This is what everything looks like on one of my test boxes:

test54# boot0cfg -v ad4
#   flag     start chs   type       end chs       offset         size
1   0x00      0:  1: 1   0x07   1023:254:63           63     20964762
2   0x80   1023:255:63   0xa5   1023:254:63     20964825     20964825
3   0x00   1023:255:63   0x07   1023:254:63     41929650     61432560
4   0x00   1023:255:63   0xa5   1023: 80:63    103362210    287359758

version=1.0  drive=0x80  mask=0xf  ticks=182
options=packet,update,nosetdrv
default_selection=F5 (Drive 1)

test54# boot0cfg -v ad6
#   flag     start chs   type       end chs       offset         size
1   0x80      0:  1: 1   0xa5   1023:254:63           63    156296322

version=1.0  drive=0x80  mask=0xf  ticks=182
options=packet,update,nosetdrv
default_selection=F1 (Slice 1)

Not exactly the same as your setup, but close.  On ad4, 1 is windows, 
2 is FreeBSD, 3 and 4 are non-bootable.  On ad6, 1 is FreeBSD.

-Glenn



>Second solution:
>
>Stand-alone GRUB install
>
>How can I install GRUB stand-alone? How do I install
>it into /boot?  I guess /boot = some mounted partition
>of a unix OS?
>
>Would it be best to make /boot under the existing
>FreeBSD partition?
>
>The more exact details the better.  I've been
>scratching my head over this for days
>
>thx!
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"




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