Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 08-11-2003, 03:38 AM   #1
Registered: Jul 2003
Posts: 152

Rep: Reputation: 30
About kernel 2.2 to 2.4

Pls. HELP!!

I use "apt-get install 2.4xxx" to install the 2.4 kernel image.

I following the instructions:

Add "initrd=/initrd.img" under the line
"image=/vmlinuz" in lilo.conf

Add "do_initrd = Yes'
in /etc/kernel-img.conf

Type "lilo" to run the loader.

However, the machine cannot boot-up again.

What should I do? Which step I missed?

Pls. HELP!!
Old 08-11-2003, 06:05 AM   #2
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Blog Entries: 1

Rep: Reputation: 30
Please be more specific: Were you able to start lilo? If yes then what error message comes out when you try to boot your kernel?
Old 08-13-2003, 01:07 AM   #3
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
Basically, when you ran apt, and you got that message, you should have opened another terminal, added the "initrd=/initrd.img" line under the "image=/vmlinux" portion of your /etc/lilo.conf and then run 'lilo' as root.

Personally, I have it installed under the global (beginning) portion of my lilo, but my setup doesn't demand too much flexibility. Your options now are not fun. One, reinstall. I hate that option, it's effective, but cheap and wasteful. Two, use your bootdisk. You have one, right? Then, assuming you can mount your drive, you edit and run lilo to correct the problem. (I never have bootdisks, so I'm a hypocrite, but a hypocrite that has used enough OS's to know how to skip by needing one, too.) Three, you can use your install disk in "rescue" mode (type 'rescue' at the lilo prompt, hit shift while booting if your disk doesn't bring up a lilo prompt at boot). Again, assuming you can mount your drive, you edit and run lilo to correct the problem. Fourth, you can 'chmod' into your drive from another distro (assuming you have another one loaded, or have a "livecd" like knoppix available). To do this, boot the other distro, mount your / drive, edit that partition's /etc/lilo.conf then:

chroot /mnt/otherdrive /sbin/lilo

Assuming, of course, that /mnt/otherdrive is where you mounted your other partition. The /sbin/lilo part is like doing it while that system is running. If you don't chroot, you'll install the lilo version of the system that booted.

Like I said, this is effective, but perhaps hard/scary/confusing for a newbie. It works though, and it's one of the reasons why hardened linux users laugh at winusers similar boot situations.


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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:57 AM.

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