Unix Technical Forum

Re: dual boot problems: LILO stops at LI

This is a discussion on Re: dual boot problems: LILO stops at LI within the Linux Operating System forums, part of the Unix Operating Systems category; --> On Wed, 25 Jun 2003 08:28:44 -0600, Brian Myers wrote: > I know this is a common problem in ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 07:03 AM
Douglas Mayne
 
Posts: n/a
Default Re: dual boot problems: LILO stops at LI

On Wed, 25 Jun 2003 08:28:44 -0600, Brian Myers wrote:

> I know this is a common problem in setting up dual-boot systems. I've
> searched through the newsgroups; apparently the likely cause is some
> mismatch in disk geometry. But I've tried messing with those settings in
> lilo.conf without succeeding. So here's the relevant information; maybe
> one of you can diagnose it better than I.
>
> <snip>
>
> By default, my lilo.conf came this way:
>
> # Support LBA for large hard disks.
> #
> lba32
> #linear
>
> # Specifies the boot device. This is where Lilo installs its boot
> # block. It can be either a partition, or the raw device, in which
> # case it installs in the MBR, and will overwrite the current MBR.
> #
> boot=/dev/hde2
>
> <snip>
>
> Brian
>

The boot loader can be either on the MBR or on a partition BIOS parameter
block,"BPB."

http://www.tldp.org/HOWTO/mini/LILO-2.html#ss2.1

From your lilo.conf, it looks like the loader is on the BPB, and not on
the MBR. I think in this case, you would
1.Fix lilo.conf: boot=/dev/hde
2.Install LILO on the MBR of hde
3.Save that MBR as a file (as I presume you have been doing.)

BTW, I switched to grub as the loader. It works for me as the overall boot
manager.

I recently wrote this:
http://groups.google.com/groups?hl=e...d net.att.net

--Douglas Mayne
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 07:06 AM
Brian Myers
 
Posts: n/a
Default Re: dual boot problems: LILO stops at LI

Thanks. Your explanation makes sense to me, but I tried the steps without
success. Perhaps I didn't do them correctly?

> 1.Fix lilo.conf: boot=/dev/hde


I did that, commenting out the old hde2 line.

> 2.Install LILO on the MBR of hde


After step 1 I typed /etc/lilo and it ran--I assume that's what "installing"
consists of?

> 3.Save that MBR as a file (as I presume you have been doing.)


I ran dd if=/dev/hde of=/floppy/linimage.bin bs=512 count=1 (and then copied
the file to hdc.)

Now when I try to launch Linux I get this output:

LI
LI

Perhaps I'll look into grub as you recommend; maybe it's easier to
configure.

In the meantime I'd welcome further advice on this problem if anyone has
more insights.

Brian



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 07:06 AM
Douglas Mayne
 
Posts: n/a
Default Re: dual boot problems: LILO stops at LI

On Sun, 29 Jun 2003 09:41:13 -0600, Brian Myers wrote:

> Thanks. Your explanation makes sense to me, but I tried the steps
> without success. Perhaps I didn't do them correctly?
>
>> 1.Fix lilo.conf: boot=/dev/hde

>
> I did that, commenting out the old hde2 line.
>
>> 2.Install LILO on the MBR of hde

>
> After step 1 I typed /etc/lilo and it ran--I assume that's what
> "installing" consists of?


Were any error messages issued?

You can issue this command to test your configuration before installing:
# lilo -v -t

If there are no errors

# lilo -v

Refer to man lilo for more details. I am not so good at using LILO these
days.
>
>> 3.Save that MBR as a file (as I presume you have been doing.)

>
> I ran dd if=/dev/hde of=/floppy/linimage.bin bs=512 count=1 (and then
> copied the file to hdc.)
>
> Now when I try to launch Linux I get this output:
>
> LI
> LI
>
> Perhaps I'll look into grub as you recommend; maybe it's easier to
> configure.
>
> In the meantime I'd welcome further advice on this problem if anyone has
> more insights.
>
> Brian
>

I assumed you edited the original lilo.conf you posted.

If that is the complete file, it is missing the "stanza" which specifies
the kernel, and (perhaps) other necessary information. This page shows
an example:

http://www.geocities.com/CYBERKABILA/main/lilo.htm

It also shows common LILO errors. It shows the LI lilo error
indicates, "LILO cannot find kernel image." This error can be caused by
multiple failures.

Please post the complete /etc/lilo.conf file.


--Douglas Mayne
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 07:06 AM
Brian Myers
 
Posts: n/a
Default Re: dual boot problems: LILO stops at LI

> It's more or less a waste of time asking about LILO or Grub
> if you don't give your lilo.conf or grub.conf .


Sorry! the first note in this thread has an except from my lilo.conf. Here
is the full file, in case that helps.

------------------

# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# --------------- `install-mbr(8)', `/usr/share/doc/lilo/',
# and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# | !! Reminder !! |
# | |
# | Don't forget to run `lilo' after you make changes to this |
# | conffile, `/boot/bootmess.txt', or install a new kernel. The |
# | computer will most likely fail to boot if a kernel-image |
# | post-install script or you don't remember to run `lilo'. |
# | |
# +---------------------------------------------------------------+

# Support LBA for large hard disks.
#
lba32
#linear

# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
#disk=/dev/hde
# bios=0x81

#disk=/dev/sda
# bios=0x80

# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hde2

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hde2

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller. Using `compact' is especially recommended when
# booting from a floppy disk. It is disabled here by default
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration. If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well. Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20

# You can put a customized boot message up if you like. If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress. `single-key' goes with the `alias' lines in the
# `image' configurations below. eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
# prompt
# single-key
# delay=100
# timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#
vga=normal

# Kernel command line options that apply to all installed images go
# here. See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""

# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1

image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2

# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
# other=/dev/hda4
# label=HURD
# restricted
# alias=3


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 07:06 AM
Timothy Murphy
 
Posts: n/a
Default Re: dual boot problems: LILO stops at LI

Brian Myers wrote:

>> It's more or less a waste of time asking about LILO or Grub
>> if you don't give your lilo.conf or grub.conf .

>
> Sorry! the first note in this thread has an except from my lilo.conf. Here
> is the full file, in case that helps.


Well, I asked for it,
but I'm not really the person to advise you on it!
(I use grub, for one thing.)

But what command do you use to install lilo?

If I were in your position I would install LILO on the MBR of /dev/sda ,
by replacing "boot=/dev/hde2" by "boot=/dev/sda".

You are trying to install LILO on the partition /dev/hde2
of what I assume is the second hard disk.
Although this might be possible by including the command "bios=0x81"
(and making this partition active with fdisk)
it seems rather complicated to me.
(The bios command makes the machine think this is the first disk.
I don't know if that will work with your setup.
It's normally used with /dev/hda and /dev/hdb, or /dev/sda and /dev/sdb.)

================================================== ==========
> lba32


# Overrides the default mapping between harddisk names and the BIOS'
> # harddisk order. Use with caution.
> #disk=/dev/hde
> # bios=0x81
>
> #disk=/dev/sda
> # bios=0x80
>
> # Specifies the boot device. This is where Lilo installs its boot
> # block. It can be either a partition, or the raw device, in which
> # case it installs in the MBR, and will overwrite the current MBR.
> #
> boot=/dev/hde2
>
> # Specifies the device that should be mounted as root. (`/')
> #
> root=/dev/hde2


> # Installs the specified file as the new boot sector
> # You have the choice between: bmp, compat, menu and text
> # Look in /boot/ and in lilo.conf(5) manpage for details
> #
> install=/boot/boot-menu.b
>
> # Specifies the location of the map file
> #
> map=/boot/map
>
> delay=20
> # Specifies the VGA text mode at boot time. (normal, extended, ask,
> # <mode>)
> #
> # vga=ask
> # vga=9
> #
> vga=normal
>
> # Kernel command line options that apply to all installed images go
> # here. See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
> # the Linux kernel `Documentation' directory.
> #
> # append=""
>
> # Boot up Linux by default.
> #
> default=Linux
>
> image=/vmlinuz
> label=Linux
> read-only
> # restricted
> # alias=1
>
> image=/vmlinuz.old
> label=LinuxOLD
> read-only
> optional
> # restricted
> # alias=2

================================================== ==========


--
Timothy Murphy
e-mail: tim@birdsnest.maths.tcd.ie
tel: +353-86-233 6090
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 07:06 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: dual boot problems: LILO stops at LI

Timothy Murphy wrote:
> Brian Myers wrote:
>
>
>>>It's more or less a waste of time asking about LILO or Grub
>>>if you don't give your lilo.conf or grub.conf .

>>
>>Sorry! the first note in this thread has an except from my lilo.conf. Here
>>is the full file, in case that helps.

>
>
> Well, I asked for it,
> but I'm not really the person to advise you on it!
> (I use grub, for one thing.)
>
> But what command do you use to install lilo?
>
> If I were in your position I would install LILO on the MBR of /dev/sda ,
> by replacing "boot=/dev/hde2" by "boot=/dev/sda".


This only works if the BIOS is configured to boot from SCSI before IDE
drives. This is a very, very important thing to check when mixing IDE
and SCSI on the same machine.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 07:07 AM
Brian Myers
 
Posts: n/a
Default Re: dual boot problems: LILO stops at LI

> If I were in your position I would install LILO on the MBR of /dev/sda ,
> by replacing "boot=/dev/hde2" by "boot=/dev/sda".


My machine isn't booting from the SCSI drive.
I have three hard drives. Windows is on the first IDE hard drive. The second
IDE drive has 12GB and is empty. The old SCSI drive still lingering on the
machine is only 2GB and I use it for backups.

(hda and hdb are my CDROM and DVD drives. That's what Linux decided to call
them; I suppose their IDE controller comes first in some internal list
somewhere.)

> You are trying to install LILO on the partition /dev/hde2
> of what I assume is the second hard disk.
> Although this might be possible by including the command "bios=0x81"
> (and making this partition active with fdisk)
> it seems rather complicated to me.


To me too.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-17-2008, 07:07 AM
Eric Moors
 
Posts: n/a
Default Re: dual boot problems: LILO stops at LI

<Removed all comments from your lilo.conf>

> lba32
>
> disk=/dev/hdc
> bios=0x80
> disk=/dev/hde
> bios=0x81
>
> boot=/dev/hde2
> root=/dev/hde2
> install=/boot/boot-menu.b
> map=/boot/map
> delay=20
> vga=normal
> default=Linux
>
> image=/vmlinuz
> label=Linux
> read-only
>
> image=/vmlinuz.old
> label=LinuxOLD
> read-only
> optional


run lilo -v with this lilo.conf

copy the bootsector from /dev/hde2 to a file

Add that file to the NT loader.

reboot.

(Or use the scheme John mentioned with lilo as the main bootloader)

Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-17-2008, 07:07 AM
Eric Moors
 
Posts: n/a
Default Re: dual boot problems: LILO stops at LI

On Mon, 30 Jun 2003 16:54:11 +0200, Brian Myers wrote:

> Thanks, Eric, for confirming that these steps ought to work. They seem
> straightforward to me--but when I follow these steps and reboot I get the LI
> error. Perhaps I'm not executing them correctly? Here's what I do.
>
>> run lilo -v with this lilo.conf

>
> Does it matter what directory you're in when you do this? I've tried running
> /sbin/lilo -v from /etc and from /.
>
>> copy the bootsector from /dev/hde2 to a file

>
> dd if=/dev/hde2 of=/floppy/linimage.bin bs=512 count=1
>
>> Add that file to the NT loader.

>
> Reboot to that "W" operating system no one likes to mention and copy the
> linimage.bin from the floppy to the root directiry where boot.ini is. Added
> a line to boot.ini. This part's all very straightforward and I don't think
> I've made a mistake here.
>
>> reboot.

>
> And I'm *sure* I did that part right.


Oh, I did fix your lilo.conf.
You did notice this and *used* the fixed lilo.conf, right?
If you did, try changing boot=/dev/hde2 to boot=/dev/fd0
Put in a floppy, and try rebooting from that floppy.
(It is a faster test turn around cycle then changing
stuff in the NT loader is)

If it works copy the bootsector from the floppy to NT.

Eric

>> > lba32
>> >
>> > disk=/dev/hdc
>> > bios=0x80
>> > disk=/dev/hde
>> > bios=0x81
>> >
>> > boot=/dev/hde2
>> > root=/dev/hde2
>> > install=/boot/boot-menu.b
>> > map=/boot/map
>> > delay=20
>> > vga=normal
>> > default=Linux
>> >
>> > image=/vmlinuz
>> > label=Linux
>> > read-only
>> >
>> > image=/vmlinuz.old
>> > label=LinuxOLD
>> > read-only
>> > optional

>>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-17-2008, 07:08 AM
Brian
 
Posts: n/a
Default Eureka! (was Re: dual boot problems: LILO stops at LI)

> Oh, I did fix your lilo.conf.
> You did notice this and *used* the fixed lilo.conf, right?


Er, no. I did not notice you had fixed my lilo.conf. That makes me feel
stupid--especially because when I tried your fixed file it worked just
fine! But then the process of debugging Linux setup problems generally
seems designed to instill humility in newcomers.

Thanks very much for the help Eric!

Brian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:58 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com