LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-14-2005, 12:43 PM   #1
xp1o1d5
LQ Newbie
 
Registered: Jul 2004
Posts: 23

Rep: Reputation: 15
Lilo error after recompiling


I upgraded my kernel from 2.6.6 to 2.6.12.5 and did everything right edited my /etc/lilo.conf file and added the new kernel.
Then went to run /sbin/lilo -v and I get an error:


Code:
LILO version 22.6.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2004 John Coffman
Released 17-Nov-2004, and compiled at 12:32:32 on May 25 2005
Debian GNU/Linux

Reading boot sector from /dev/hda
Warning: Kernel & BIOS return differing head/sector geometries for device 0x80
    Kernel: 65535 cylinders, 16 heads, 63 sectors
      BIOS: 1023 cylinders, 255 heads, 63 sectors
Warning: Kernel & BIOS return differing head/sector geometries for device 0x81
    Kernel: 8912 cylinders, 15 heads, 63 sectors
      BIOS: 1023 cylinders, 256 heads, 0 sectors
/sbin/lilo: line 23:  1087 Floating point exception$0.real "$@"
And here is whats in /sbin/lilo



Code:
# if chroot.
if [ "$1" = "-r" -a "$2" != "" ]; then
  if [ -c /dev/.devfsd -a ! -c $2/dev/.devfsd ]; then
    mount none $2/dev -t devfs
  fi

# use "$@" instead of $* so you can do `lilo -C "/etc/spare lilo config"`
  $0.real "$@"
  if [ -c /dev/.devfsd ]; then
    umount $2/dev
  fi

else

# use "$@" instead of $* so you can do `lilo -C "/etc/spare lilo config"`
  $0.real "$@"
  if [ "$1" != "-t" ]; then
    rm -f /boot/boot.b.preserved* /boot/boot-text.b.preserved* /boot/boot-menu.b.preserved* /boot/chain.b.preserved* /boot/os2_d.b.preserved* /boot/boot-bmp.b.preserved
  fi

fi
It has a problem with the last fi. Any suggestions to what I need to do?
 
Old 09-15-2005, 05:02 AM   #2
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
What do you mean you "did everything right"? What did you do?
 
Old 09-15-2005, 10:29 AM   #3
xp1o1d5
LQ Newbie
 
Registered: Jul 2004
Posts: 23

Original Poster
Rep: Reputation: 15
I followed all the steps to making a new kernel. Like

Code:
make bzImage modules modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.xxx
cp System.map /boot/System.map-2.xxx
cp .config /boot/config-2.xxx
edit /etc/lilo.conf
run /sbin/lilo -v

And everything was going all fine till I went to run /sblin/lilo -v.
Then I got that error I posted in my first post.
 
Old 09-15-2005, 11:02 AM   #4
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
OK. First off, let's get some baseline vitals; what's your distro, etc.

Second, what changes did you make to lilo.conf to add your new kernel? Were they fairly basic (/boot/vmlinuz.old and /boot/vmlinuz) or complex (/boot/2.6/6/vmlinuz and /boot/2.6/13/vmlinuz)?

Third, is there a reason you still
Code:
make bzimage
instead of
Code:
make && make modules_install
Fourth, do you
Code:
run /sbin/lilo
or do you run
Code:
/sbin/lilo
Notice the subtle difference.

Edit:
Do you do this as root or su? I don't know why that would make a difference, but sometimes my boxes get picky and insist I log in as root.

Last edited by Charred; 09-15-2005 at 11:06 AM.
 
Old 09-16-2005, 12:42 PM   #5
xp1o1d5
LQ Newbie
 
Registered: Jul 2004
Posts: 23

Original Poster
Rep: Reputation: 15
I'm running debian.
Quote:
Second, what changes did you make to lilo.conf to add your new kernel?
Yes thats all I did was ad my nerw kernel. /boot/vmlinuz-2.6.12.5-rc1 is where I copied it to and there all copied to *2.6.12.5-rc1. And that what I added to my lilo.conf file. And im not sure why im still running make bzImage, just the way I learned. And I run lilo by
Code:
/sbin/lilo -v
. Would it worked better if I used make && make modules_install?

Last edited by xp1o1d5; 09-16-2005 at 12:43 PM.
 
Old 09-16-2005, 03:15 PM   #6
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
It might.
Code:
make bzimage
was deprecated a while ago. I use either
Code:
make &&  make modules_install
or (if I'm feeling lazy or am in a hurry to get the new kernel up for some reason)
Code:
make_install && make modules_install
which will copy the relevant files to /boot and then run lilo. If I use make_install, I check /etc/lilo.conf, and the export parameter of /usr/src/linux/Makefile, to make sure the Makefile will stick the new kernel where I told Lilo to look for it before the compile.

I have only encountered one real problem doing things this way, and it was hardware related (processor SIMM wasn't properly reseated after a swapout demo).

May the Gods of Kernel Compilation smile upon you.

Edit:
The Makefile exports to /boot/vmlinuz by default.

Last edited by Charred; 09-16-2005 at 03:20 PM.
 
Old 09-17-2005, 04:50 PM   #7
xp1o1d5
LQ Newbie
 
Registered: Jul 2004
Posts: 23

Original Poster
Rep: Reputation: 15
I did it your way and I still got the same error as before.
 
Old 09-17-2005, 09:40 PM   #8
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
I have an answer for you: you don't have a problem. See the Large Disk HOW-TO, this page and this page in particular.

Last edited by Charred; 09-17-2005 at 09:54 PM.
 
Old 09-19-2005, 12:12 AM   #9
xp1o1d5
LQ Newbie
 
Registered: Jul 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the replies, but thats not the problem the geometries are fine its given me that error everytime ive recompiled. Its the /sbin/lilo file it dosent like it. But anyway im done with lilo I upgraded to grub it works and i've herd that it was better anyway. But thanks for taking time to help me.
 
Old 09-19-2005, 10:02 PM   #10
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Sorry I couldn't do more, glad grub is working.
 
Old 09-23-2005, 12:40 PM   #11
xp1o1d5
LQ Newbie
 
Registered: Jul 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Thats alright thanks for taking the time to try. I also posted it over at justlinux.com and they couldn't come up with anything either.
 
Old 09-23-2005, 06:21 PM   #12
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Anytime.
 
Old 07-26-2006, 10:50 AM   #13
bmccrac02
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Rep: Reputation: 0
make_install

Hmmm... So "make_install" installs to /boot/vmlinuz and runs lilo. I didn't know that, or even that the command existed. I do my kernel builds with "make" followed by "make modules_install" (it didn't occur to me to use "&&") and then copy bzimage and System.map manually to /boot/<version>/vmlinuz and /boot/<version>/System.map. I'm pretty sure that this morning, being only half awake, I typed "make_install" instead of "make modules_install", then ran lilo. I may have done this a few times in the past also, out of habit from doing so many ordinary "make install"s, and this may be why I sometimes get the floating point exception and sometimes don't. I'll check this out when I get home from work tonight.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting Error After Recompiling Kernel springshades Linux - General 3 05-02-2005 04:21 AM
error recompiling 2.6.7 (2.6.6 recompiled fine) powadha Debian 2 07-05-2004 04:50 PM
RECompiling Xine error...I'm stumped MunCH Fedora 2 06-11-2004 12:33 AM
Help w/ lilo after recompiling SlackN00b Slackware 7 05-11-2004 10:34 AM
Recompiling 2.4.22-1.2149.ntpl error jsmith22046 Linux - Newbie 1 02-16-2004 01:20 AM


All times are GMT -5. The time now is 03:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration