78 lines
2.6 KiB
HTML
78 lines
2.6 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
|
|
<TITLE>LILO mini-HOWTO: Using Lilo When the BIOS Can't See the Root Partition</TITLE>
|
|
<LINK HREF="LILO-6.html" REL=next>
|
|
<LINK HREF="LILO-4.html" REL=previous>
|
|
<LINK HREF="LILO.html#toc5" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="LILO-6.html">Next</A>
|
|
<A HREF="LILO-4.html">Previous</A>
|
|
<A HREF="LILO.html#toc5">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s5">5.</A> <A HREF="LILO.html#toc5">Using Lilo When the BIOS Can't See the Root Partition</A></H2>
|
|
|
|
<P>I have two IDE drives, and a SCSI drive. The SCSI drive can't be seen
|
|
from BIOS. The Linux Loader, Lilo, uses BIOS calls and can only see
|
|
drives that BIOS can see. My stupid AMI BIOS will only boot from "A:"
|
|
or "C:" My root file system is on a partition on the SCSI drive.</P>
|
|
|
|
<P>The solution consists in storing the kernel, map file, and chain
|
|
loader in a Linux partition on the first IDE. Notice that it is not
|
|
necessary to keep your kernel on your root partition.</P>
|
|
|
|
<P>The second partition on my first IDE (<CODE>/dev/hda2</CODE>, the Linux
|
|
partition used to boot the system) is mounted on <CODE>/u2</CODE>. Here
|
|
is the <CODE>/etc/lilo.conf</CODE> file I used.</P>
|
|
<P>
|
|
<PRE>
|
|
# Install Lilo on the Master Boot Record
|
|
# on the first IDE.
|
|
#
|
|
boot = /dev/hda
|
|
# /sbin/lilo (the installer) copies the Lilo boot record
|
|
# from the following file to the MBR location.
|
|
install = /u2/etc/lilo/boot.b
|
|
#
|
|
# I wrote a verbose boot menu. Lilo finds it here.
|
|
message = /u2/etc/lilo/message
|
|
# The installer will build the following file. It tells
|
|
# the boot-loader where the blocks of the kernels are.
|
|
map = /u2/etc/lilo/map
|
|
compact
|
|
prompt
|
|
# Wait 10 seconds, then boot the 1.2.1 kernel by default.
|
|
timeout = 100
|
|
# The kernel is stored where BIOS can see it by doing this:
|
|
# cp -p /usr/src/linux/arch/i386/boot/zImage /u2/z1.2.1
|
|
image = /u2/z1.2.1
|
|
label = 1.2.1
|
|
# Lilo tells the kernel to mount the first SCSI partition
|
|
# as root. BIOS does not have to be able to see it.
|
|
root = /dev/sda1
|
|
# This partition will be checked and remounted by /etc/rc.d/rc.S
|
|
read-only
|
|
# I kept an old Slackware kernel lying around in case I built a
|
|
# kernel that doesn't work. I actually needed this once.
|
|
image = /u2/z1.0.9
|
|
label = 1.0.9
|
|
root = /dev/sda1
|
|
read-only
|
|
# My DR-DOS 6 partition.
|
|
other = /dev/hda1
|
|
loader=/u2/etc/lilo/chain.b
|
|
label = dos
|
|
alias = m
|
|
</PRE>
|
|
</P>
|
|
|
|
|
|
<HR>
|
|
<A HREF="LILO-6.html">Next</A>
|
|
<A HREF="LILO-4.html">Previous</A>
|
|
<A HREF="LILO.html#toc5">Contents</A>
|
|
</BODY>
|
|
</HTML>
|