From: Makis Maroulis (makis@helios.unl.edu)
Date: 01/02/93


From: makis@helios.unl.edu (Makis Maroulis)
Subject: Re: Need help booting Linux off HD
Date: 3 Jan 1993 00:00:01 GMT

creacy@yuppie.enet.dec.com (Chet Creacy) writes:

>In article <72759@cup.portal.com>, DO@cup.portal.com (JEFF SCOTT MARCUS) writes...
[stuff deleted]
>>install=/etc/lilo/boot.b
>>boot=/dev/hda
>>delay=10
>>other=/dev/hda1
>>table=/dev/hda
>>image=/Image
>>
>>When I run Lilo I get this message -
[stuff deleted]
>>
>>Jeff Marcus
>>DO@cup.portal.com

>I'm have the very same problem and I have printed the Lilo postscript doc.
>It hasn't helped me to fix the problem.

>Anyone have any ideas?

Since I prefer to learn from examples here are the files that I 'm using. Also
I'm using lilo version 7.
I have one IDE hard disk and have partitioned it as:
/dev/hda1 for dos
/dev/hda2 for linux (ext filesystem)

file "config"
=========================================================
boot = /dev/hda
compact
install = /etc/lilo/boot.b
map = /etc/lilo/map
image = /Image # this is the main description for boooting from HD
  label = lin-hd
  root = /dev/hda2
image = /Image # this is for booting from floppy disk (A drive)
  label = lin-fd
  root = /dev/fd0
image = /Image.old # if something goes wrong with the main Image, for
  label = lin-hd-old # example if I 've build a new kernel and doesn't
  root = /dev/hda2 # go I use the old Image
other = /dev/hda1 # this is for the msdos partition
  table = /dev/hda
  label = msdos
===============================================================
I'm supposing that the Image file is in the root directory (/). Of cource you
may not use the lines 8-13 and the comments.
 
file "install"
=============================================================
/etc/lilo/lilo -C /etc/lilo/config $*
============================================================

file "disktab"
=============================================================
# Dev. BIOS Secs/ Heads/ Cylin- Part.
# num. code track cylin. ders offset
0x300 0x80 17 10 980 0 # /dev/hda
0x301 0x80 17 10 980 17 # /dev/hda1
0x302 0x80 17 10 980 23630 # /dev/hda2
==============================================================

You can get the parameters for heads, sectors, cylinders from your eprom
table and the partition offcet from the information that linux provides
when it boots. I had problems that were solved when I configured the
the "disktab" file. The filesystems that you must describe in the "disktab"
file are the ones that you want to boot from.( you don't have to describe
anything for the floppy drive since the "disktab" file is for the hard disk
only. Oh, the hex numbers 0x300,0x301 and 0x302 refer to an IDE drive (or
MFM/RLL ?). If you have a SCSI drive you should change the numbers like
0x800, 0x801 and so on.

So after compiling the source code and "make install" the compilles programs
you just have to run "install" in the /etc/lilo directory and there you go.

This set up works for me just fine.
 
>Thanks,

>Chet

Hope it helps.

Makis