Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-18-2004, 08:05 AM   #1
LQ Newbie
Registered: Nov 2003
Posts: 18

Rep: Reputation: 0
Exclamation Compile 2.4.22 kernel - Red Hat Fedora - fs

I have installed Fedora 2.4.22 - I want to add ebtables, so i need to recompile the Kernel.
Download 2.4.22
  • Downloaded 2.4.22 kernel
  • extracted kernel to /root/kernel/linux-2.4.22
  • downloaded ebtables patch
  • ran patch -p 1 < ebtablespatch.diff
  • ran make mrproper
  • ran make xconfig
  • added all ebtables related stuff and added all filesystem stuff
  • ran make bzImage
  • ran make modules
  • ran make modules_install
  • copied bzImage file to /boot/bzImage
  • edited grub loader conf files
  • rebooted

on bootup I get the following messages:

ds: no socket drivers loaded!
VFS: cannot open root device "LABEL=/" or 00.00
Please append a correct "root=" boot option
Kernel Panic: VFS: unable to mount root fs on 00.00

my grub conf looks like this:
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda2
#          initrd /initrd-version.img
title Fedora Core (2.4.22-1.2115.nptl)
	root (hd0,0)
	kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb
	initrd /initrd-2.4.22-1.2115.nptl.img
title Fedora Core (2.4.22 - my first kernel)
	root (hd0,0)
	kernel /bzImage ro root=LABEL=/ rhgb
	initrd /initrd-2.4.22-1.2115.nptl.img
What the hell am I doing wrong grrrrrr, blumin compilers
Old 03-18-2004, 09:32 AM   #2
Senior Member
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
You need to run mkinitrd to make a new initrd file to match the new kernel. The initrd is the INITial RamDisk. If you don't build support for your filesystem directly into the kernel, you need the initrd to be able to read the filesystem and load the kernel. You'll have to edit the initrd line in the GURB entry to point to the correct initrd after you make it.

In RedHat / Fedora, you can run "make install" after the "make modules_install", and it will install the new kernel, create the initrd, and edit the grub.conf to set it all up for booting.
Old 03-18-2004, 12:15 PM   #3
LQ Newbie
Registered: Nov 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks!!!!!!!!!!!!!! and some more exclamation marks !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

all workin now!


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 Panic during Fedora 4 and Red Hat 9 Install jamadagni Fedora - Installation 4 08-24-2005 12:23 AM
Kernel panic on Red Hat Fedora 2 rtroxel Fedora - Installation 8 01-10-2005 01:45 PM
Vaio PCG-GRX550 kernel compile errors - Red Hat 9 spectrumver1 Linux - Laptop and Netbook 2 09-24-2004 08:19 AM
kernel, compile, gcc, red hat 8.0 illtbagu Linux - Software 9 03-24-2003 02:12 PM
Red Hat 7.2 Kernel Compile Help sfeek Linux - Distributions 1 05-21-2002 10:39 AM > Forums > Linux Forums > Linux - Newbie

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