LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-19-2006, 09:57 PM   #1
tgo
Member
 
Registered: Dec 2004
Posts: 125

Rep: Reputation: 15
strange lilo activity


I use lilo as my bootloader. I keep my current kernel in /boot/good so everytime i recompile I just copy the new kernel there. As a sanity check/habit I always typed 'lilo' after just to make sure it added everything properly.

Today I made a quick config change and didnt type lilo after copying the kernel and rebooted. On reboot the boot process hung after about 4 dots such as "Loading: slackware ....".

I rebooted from this hang and booted into an old kernel and typed 'lilo' to see what was wrong and it seemed ok and after this the kernel that hung before booted again.


I was wondering if someone knew some lilo internals ( would save me from diggin through source ) as to why this happened. The one conclusion a friend came up with is that lilo stores the raw address of the kernel image when you type 'lilo' and then after compiling a new kernel its obvisouly in a different spot so it doesnt know where to find it. I had thought of maybe there was a checksum it checked before loading it but if that was the case then it should have a way of reporting this error to you rather then not booting.

If my friend was right I guess there is no way it can recover since its fallen down a bad path.

Anyone with lilo knowledge know why this happens?
 
Old 12-19-2006, 10:19 PM   #2
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
lilo isn't a text bootloader like grub, it has to be rebuilt at every kernel change or it cannot find the new kernel image.
This is why that grubby thing has become the default bootloader instead of good old lilo.
[ I use lilo myself ]

the binary lilo section in the mbr is looking for a specific kernel image, including the date/time stamp on the kernel image, if you change images then the date/time stamp is different, so it cannot access it without being rebuilt by running lilo after building the kernel.
 
Old 12-19-2006, 10:29 PM   #3
tgo
Member
 
Registered: Dec 2004
Posts: 125

Original Poster
Rep: Reputation: 15
at what stage does it detect the date/time of the image you are trying to boot? the thing i found most strange about the behaviour was that it hung.

Do you know why after detecting a bad date/timestamp that it wouldnt be able to report the errors to you and let you pick anothe kernel instead of just hanging?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange tcpdump activity. NuxIT Linux - Networking 2 05-18-2006 03:35 AM
very strange network/firewall activity - thoughts? cyph3r7 Linux - Security 4 10-19-2004 11:16 AM
Very strange activity - EXE running as apache?? lucastic Linux - Security 2 09-03-2004 05:01 AM
Strange PPP activity gauge73 Linux - Networking 0 08-18-2004 06:46 PM
Strange network activity !!!!!! OneManArmy Linux - Newbie 3 07-14-2004 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:52 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