Skip site navigation (1)Skip section navigation (2)
Date:      14 May 2000 09:46:30 -0700
From:      Harry Putnam <reader@newsguy.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Lilo->Freebsd
Message-ID:  <m266shjd09.fsf@reader.ptw.com>
In-Reply-To: Zhihui Zhang's message of "Sun, 14 May 2000 12:07:39 -0400 (EDT)"
References:  <Pine.SOL.4.21.0005141206330.15879-100000@sol.cs.binghamton.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Zhihui Zhang <zzhang@cs.binghamton.edu> writes:

> On Sat, 13 May 2000, TRBishop wrote:
> 
> > Hello,
> >  Quick question, , but will Lilo boot freebsd?  I know in Yast, the
> 
> We use LILO to boot FreeBSD 3.3 and Linux for a while.
> 
> -Zhihui

I do this on a machine running FreeBSD-RELEASE-3.2 and Redhat Linux
6.2.

I found good instructions here:
http://www.freebsd.org/FAQ/admin.html#AEN1856


On my setup I have Lilo installed in first HDD.  I installed FreeBSD
on 2nd HDD.  So let FreeBSD install routine put the FreeBSD boot
loader on MBR of 2nd HDD.

Then added the lines in lilo.conf (on linux bootup)
    
     other=/dev/hdc2
              table=/dev/hdc
              label=FreeBSD

An example of a full lilo.conf might look like:

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
vga=5
prompt
timeout=50
image=/boot/vmlinuz
	label=rh6.2
	read-only
	root=/dev/hda7
other=/dev/hdc2
	   table=/dev/hdc     
	   label=bsd
other=/dev/hda1
	label=win
        table=/dev/hda 

          
One gotcha here is that the FreeBSD partition must be mounted while in
linux to let lilo write its instructions when you call "/sbin/lilo"

So: 
 `mount -tufs /dev/hdc2 /mnt'   Setting the BSD partitions device
                                name where I have "hdc2"

Assuming your linux kernel supports "ufs" (Freebsd's fs type)

Then when booting I just select "FreeBSD" at the Lilo prompt and the
Freebsd boot loader does the rest.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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