LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-07-2005, 09:09 AM   #1
Duo
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10.1
Posts: 22

Rep: Reputation: 15
Restoring /boot, lilo problems.


I recently decided to upgrade my kernel to 2.6.10. First time, it worked fine, but had a few problems, so I decided to go again. Anyways, long story short, is there anyway to restore /boot to the way it was upon installation without touching anything else? I tried chaging the symlinks to vmlinuz, etc. back to the stock 2.4.26 kernel by booting from the installation CD, but no luck.

Also, LILO seems to have stopped working. Apparently some error with time stamps?

Is there any way I can just reconfigure lilo and reintsall the kernel without losing everything else?
 
Old 02-07-2005, 09:29 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
well..can you boot the machine with the cd ?

if so, can you post your lilo.conf file ( it's in /etc)
and the output of " ls -al /boot " ?

the point is that the linux section (s ) in the config-file should point at the kernel (s) you've got.
then run " #lilo " and all should be well.

need some help....then just post what i asked.

egag
 
Old 02-07-2005, 11:38 AM   #3
Duo
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10.1
Posts: 22

Original Poster
Rep: Reputation: 15
When I first tried to boot the 2.6 kernel, it would say "Booting Kernel..." (or something to that effect). However, the screen would go completely blank where the usual booting messages should be. The computer continues to make noise for a while, then stops. It sounds like it's just booting normally, only minus the monitor output. I figured I had made some grave error re. graphics card configuration, so I tried to change the symlinks to vmlinuz, etc. back to the stock 10.0 kernel, but to no avail. (I did this with the CD, so yes, that works).

Also, I tried to add the 2.4 kernel, so I could boot that should the 2.6 fail, but it never shows up on booting. This is what I added to lilo.conf :

image = /boot/vmlinuz-2.4.26
root = /dev/hda3
label = Linux24
read-only

Although perhaps it should simply read "vmlinuz-2.4.26" under image, since /dev/hda3 is partitioned just for /boot. Actually, I originally had "/dev/hda7" in place of "/dev/hda3". hda7 is the root parition.

Also, I actually deleted everything in the /boot partition (NOT VERY SMART, I know.), and it continued to behave in exactly the same way, loading minus monitor output. Which is odd.

I can't post lilo.conf right now, since I don't have access to my computer.

But is it possible to simply restore the contents of /boot and the lilo stuff?
 
Old 02-07-2005, 11:41 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
I would think of a framebuffer typical error, say no framebuffer support compiled in kernel
so it causes no output on screen if vga option in lilo.conf is set.

If it is that, edit your lilo.conf, locate the vga=... line and change it to vga=normal

save the file, run lilo and boot on hd

[edit]
I did not read the line
Quote:
I actually deleted everything in the /boot partition
What do you want to do now ? Install a kernel from CD ?

Last edited by keefaz; 02-07-2005 at 11:45 AM.
 
Old 02-07-2005, 12:06 PM   #5
Duo
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10.1
Posts: 22

Original Poster
Rep: Reputation: 15
Well, yeah, I don't think I have much choice. But how would I go about doing that?

And the reason I deleted it (well, aside from it being late and I'm not entirely sure what i was thinking) was that even when I changed the vmlinuz symlink to the 2.4 kernel, it kept booting in exactly the same way. Even when I deleted everything in /boot, it kept behaving the same. The timestamp errors happened when I was messing with the vga= lines in lilo.conf.

So really all I need to do is restore the original contents of boot and rerun lilo. However, that (lilo) didn't work when I tried to do it off the CD. (use the lilo/liloconfig commands, that is)

Also, how do I configure lilo so that I can choose from two different kernels? Like I said, it dien't work the first time.

When I get home (uh, this weekend) I'll try changing the lilo stuff and booting the 2.6 kernel (which I can still use, I just don't know how to get the normal 2.4 one back).

Oh and thanks for assisting me with my quite odd and rather idiotic problem.
 
Old 02-07-2005, 12:16 PM   #6
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
-----------------
image = /boot/vmlinuz-2.4.26
root = /dev/hda3
label = Linux24
read-only

Although perhaps it should simply read "vmlinuz-2.4.26" under image, since /dev/hda3 is partitioned just for /boot. Actually, I originally had "/dev/hda7" in place of "/dev/hda3". hda7 is the root parition.
----------------------------

you should use :" root=/dev/hda7 " because that's your root partition.

and as said, compile in the framebuffer-support on your next try.

good luck

egag
 
  


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
Removing Lilo, restoring to windows boot loader seeker131 Linux - Newbie 7 03-01-2005 06:26 PM
Restoring LILO DOA SUSE / openSUSE 3 12-26-2004 10:04 PM
LILO boot problems? james.farrow Linux - General 10 07-18-2003 02:26 PM
Restoring LILO Lai Linux - Newbie 3 05-26-2003 01:35 PM
LILO Boot problems :( osx Linux - General 6 03-25-2003 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:45 PM.

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