Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Nov 1997 06:16:47 -0800 (PST)
From:      yoshiaki@kt.rim.or.jp
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   bin/5176: Boot FreeBSD from Linux LILO
Message-ID:  <199711291416.GAA02994@hub.freebsd.org>
Resent-Message-ID: <199711291420.GAA03134@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         5176
>Category:       bin
>Synopsis:       Boot FreeBSD from Linux LILO
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 29 06:20:01 PST 1997
>Last-Modified:
>Originator:     yoshiaki  UCHIKAWA
>Organization:
>Release:        FreeBSD 2.2.5-RELEASE i386
>Environment:
>Description:
On FreeBSD 2.2.5R CDROM  (Walnut Creek CDROM)
----No. 3 /www/FAQ
8.8. How do I boot FreeBSD and Linux from LILO?

   Theoretically you should be able to boot FreeBSD from LILO by treating
   it as a DOS-style operating system, but I haven't been able to get it
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   to work. If you put LILO at the start of your Linux boot partition
   instead of in the MBR, you can boot LILO from the FreeBSD boot
   manager. This is what I do.
----
But we can get it to work.

>How-To-Repeat:

>Fix:
If you have installed LILO in the MBR and want to boot FreeBSD from it,
just follow the instructions for booting  non-Linux operating system
(foreign operating system).
Note that you need to add ``loader = /boot/any_d.b'' or 
``loader = /boot/chain.b'' to the entry for FreeBSD in /etc/lilo.conf
if the FreeBSD boot partition is not in the first disk.
If you get a failure in loading FreeBSD kernel and therefore can not 
boot up, you should specify the BIOS drive number and boot
drive at the Boot: prompt like `1:sd(0,a)/kernel', or 
configure /boot.config properly (2.2.5R or later).
See <url 
url="http://sunsite.unc.edu/LDP/HOWTO/mini/Linux+FreeBSD.html" 
name="The Linux+FreeBSD mini-HOWTOD"> written by <url 
url="http://sunsite.unc.edu/LDP/" 
name="The Linux Documentation Project (LDP)"> or LILO users manual 
can be obtained from <url
url="ftp://sunsite.unc.edu/pub/Linux/system/boot/lilo/" 
name="here"> for further details.

>Audit-Trail:
>Unformatted:



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