LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-14-2004, 04:35 AM   #1
Gneisbaard
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Rep: Reputation: 0
lilo boot problem


Hi, I run windowsXP (on hda1) and i wanted to check linux out. So i downloaded Debian.
I Installed it to hdd4. the installer installed Lilo to the MBR, and when i rebooted after the install, i only got "L 01 01 01 01" (the 01 went on and on).
To get into windows again, i had to fix the mbr using the recovery console.
After that i tried installing lilo to hdd4, and using the windowsXP boot chooser thingy to boot from hdd4, but i got the same result when i tried this.

Now i am wondering what i did wrong.
I'm a total linux newbie, the only linux distribution i tried before was knoppix. If this is a stupid question, feel free to spank me.
 
Old 04-14-2004, 04:45 AM   #2
davoman
Member
 
Registered: Nov 2003
Location: New Zealand
Distribution: Ubuntu 6.10/7.04
Posts: 51

Rep: Reputation: 15
Spank me too. I have the exact same problem. Except I've had different variations, like 01010101010 being blasted on the screen scrolling up forever, and LI 99 99 99 99..., and just LI.

Currently I'm using the bootable slackware CD#2 to get slack, ie using the root=/dev/hda3 paramater.

The only way I figured out how to fix it last time was spend 3 hours low-level formatting the drive. I know theres a real solution somewhere..out there..
 
Old 04-14-2004, 04:58 AM   #3
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Same tihng happened on this thread: solution seemed to be reinstalling lilo.

http://www.linuxquestions.org/questi...083#post876083
 
Old 04-14-2004, 05:01 AM   #4
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
Hello everyone

this seems to be a common thing with lilo... it's at the wrong place most of the time this happens. open the /etc/lilo.conf and check for a line wich says root=<bla>, change it to root=/dev/hda. if it's there already, something else is wrong. you could also try add a line with just "compact" (without the quotes) wich will make lilo more compact (doh...)

succes,
-= iluvatar =-
 
Old 04-14-2004, 05:02 AM   #5
Mr.Bill.Gates
Member
 
Registered: Apr 2004
Location: Moscow, Russia
Distribution: Debian
Posts: 55

Rep: Reputation: 15
Yes. There's something wrong with LILO installation/configuration. Here's what those error messages mean:

L<nn> nn represent disk-error codes.
LI The second-stage boot loader loaded, but could not run.

Show what is in /etc/lilo.conf
And what is the output of fdisk -l
 
Old 04-15-2004, 03:15 AM   #6
davoman
Member
 
Registered: Nov 2003
Location: New Zealand
Distribution: Ubuntu 6.10/7.04
Posts: 51

Rep: Reputation: 15
yeah I get LI 99 99 99 99 currently.

My slackware root is on /dev/hda3. hda4 is my /home (and spong-bob squarepants episodes)

Here is fdisk -l:
Quote:
Disk /dev/hda: 20.5 GB, 20547841536 bytes
255 heads, 63 sectors/track, 2498 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 2 766 6144862+ f W95 Ext'd (LBA)
/dev/hda2 * 1825 2498 5413905 c W95 FAT32 (LBA)
/dev/hda3 * 767 1252 3903795 83 Linux
/dev/hda4 1253 1824 4594590 83 Linux
/dev/hda5 2 766 6144831 7 HPFS/NTFS

Partition table entries are not in disk order

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 9729 78148161 7 HPFS/NTFS
Here is /etc/lilo.conf:
Quote:
boot="/dev/hda1"
lba32
prompt
timeout="50"
root=/dev/hda3

image="/boot/vmlinuz-ide-2.4.22"
label="2.4.22"
root="/dev/hda3"
read-only

image="/usr/src/linux/arch/i386/boot/bzImage"
label="Linux_Compiled"
root="/dev/hda3"
read-only
optional

other=/dev/hdb1
label="NT"

image="/dev/hdb1"
root="/dev/hda3"
I'm stumped, this lilo stuff is so confusing. I've just been booting off the CD. I'd love to sort it out without pulling out CAPTAIN LOW-LEVEL FORMAT & destroying everything.

Last edited by davoman; 04-15-2004 at 03:18 AM.
 
Old 04-15-2004, 03:21 AM   #7
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
ok, I can see one major problem, one minor the major problem is the first line wich says:
boot="/dev/hda1"
change this to:
boot=/dev/hda

this will make lilo install itself at disk start, not partition start.
the minor problem is this your second image config:

image="/usr/src/linux/arch/i386/boot/bzImage"
label="Linux_Compiled"
root="/dev/hda3"
read-only
optional

a kernel image must be placed in the /boot directory. copy the compiled kernel to the /boot dir and change the lilo configuration for it.
when done, run /sbin/lilo, wich installs lilo

greetz & succes,
.-=~ iluvatar ~=-.

ps: you may also remove the very first line wich states "root=/dev/hda3"... don't know what it's doing there....?

Last edited by iluvatar; 04-15-2004 at 03:25 AM.
 
Old 04-15-2004, 03:25 AM   #8
Gneisbaard
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Original Poster
Rep: Reputation: 0
I don't even know how to edit the lilo config :/ Heck, i don't even know how to install lilo. Maybe I'd better give up.
 
Old 04-15-2004, 03:30 AM   #9
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
never give up can you boot from a rescue cd or some kind? if you can, nothing is lost... boot from a cd / floppy, and check if the linux partition (hda3) is mounted. if not, mount it. now do a chroot command to the mountpoint. for example if the hda3 partition is not mounted already, try this:

cd /
mkdir hd
mount /dev/hda3 hd/
chroot hd /bin/bash

this will create a mount point (hd), mount the hda3 partition on it, and chroot to it. chroot means this directory will become the root dir, wich has far going effects... you are more or less working on your installed linux now. now you can edit the lilo.conf file, just do:

cd /etc
<editor of choice> lilo.conf

now repair the config, save it, exit the editor and run /sbin/lilo. the lilo command will re-install lilo according to the config file.

greetz & more succes...
.-=~ iluvatar ~=-.
 
Old 04-15-2004, 07:22 AM   #10
LordGoddard
Member
 
Registered: Apr 2004
Posts: 39

Rep: Reputation: 15
how did you fix the MBR using windows? i really REALLY need to know...
 
Old 04-15-2004, 07:43 AM   #11
Gneisbaard
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by LordGoddard
how did you fix the MBR using windows? i really REALLY need to know...
I used fixmbr in the windows recovery console (you can enter the recovery console when you boot from your windows cd, if you didn't know that allready).

Info about fixmbr on microsoft webshite
 
Old 04-15-2004, 11:57 AM   #12
Gneisbaard
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by iluvatar
never give up can you boot from a rescue cd or some kind? if you can, nothing is lost... boot from a cd / floppy, and check if the linux partition (hda3) is mounted. if not, mount it. now do a chroot command to the mountpoint. for example if the hda3 partition is not mounted already, try this:

cd /
mkdir hd
mount /dev/hda3 hd/
chroot hd /bin/bash

this will create a mount point (hd), mount the hda3 partition on it, and chroot to it. chroot means this directory will become the root dir, wich has far going effects... you are more or less working on your installed linux now. now you can edit the lilo.conf file, just do:

cd /etc
<editor of choice> lilo.conf

now repair the config, save it, exit the editor and run /sbin/lilo. the lilo command will re-install lilo according to the config file.

greetz & more succes...
.-=~ iluvatar ~=-.
I don't have a boot disc or anything. Is it possible to do it from knoppix?
 
Old 04-15-2004, 01:52 PM   #13
DaFrEQ
Member
 
Registered: Mar 2002
Location: Earth... for now
Distribution: SuSE9.2 AMD64; LFS; GentooAMD64; Ubuntu10.04; RHEL 5.5; Solaris10(SPARC)
Posts: 418

Rep: Reputation: 30
I think you should be able to boot from any distro CD / floppy.
Mainly, as iluvatar stated, you meerly need to boot, then chroot into your existing system.

If you don't have a boot disk or anything, how did you install the OS in the first place?
 
Old 04-17-2004, 11:59 AM   #14
Gneisbaard
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Original Poster
Rep: Reputation: 0
I checked lilo.conf, and i can't really see anything wrong with it (wich probably is becouse i don't understand a word of it).
it looks like this:
Code:
lba32
boot=/dev/hdd
root=/dev/hdd3
install=/boot/boot-menu.b
map=/boot/map

delay=20

vga=normal



image=/vmlinuz
	label=Linux
 	read-only
As i said before, i'm a total newbie (it took me HOURS to figure out how to edit lilo.conf), so i would say the probabillity i made a giant mistake is high.
 
Old 04-18-2004, 11:24 PM   #15
davoman
Member
 
Registered: Nov 2003
Location: New Zealand
Distribution: Ubuntu 6.10/7.04
Posts: 51

Rep: Reputation: 15
One small step for a guru, one giant leap for gnesisbaard.
Thanks iluvatar, that worked out. I can bwoot without the CD now.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LILO Boot Problem Jay662 Fedora 1 06-10-2005 04:15 AM
Lilo boot problem LinuxSeeker Mandriva 1 02-17-2004 08:38 AM
LILO boot problem 'L' rommel_moreno Linux - Software 2 09-29-2003 09:14 AM
Lilo Boot Problem! cirkut5732 Slackware 4 04-09-2003 04:41 PM
LILO boot problem knandyal Linux - Newbie 1 02-04-2002 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration