LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-25-2004, 02:24 AM   #1
stardust2678
LQ Newbie
 
Registered: Jun 2004
Location: ATHENS Greece
Posts: 7

Rep: Reputation: 0
Question Problems compiling Kernel 2.6.7


Hello everybody, This is my problem : when I compile the kernel (2.6.7), and after finishing the whole process -> and I restart the computer I get this error message" VFS: unable to mount root fs on HDB1 ( and sth like an error 341)" .
I have tried many things in order to solve this problem but it seems that I am missing something. Below are the setps that I have followed the last time that i compiled my Kernel.:

1.Extract the Kernel in a folder named Linux-2.6.7
2.make menuconfig ......etc
3.make bzImage
4.make modules
5.make modules_install install
6.cp /usr/src...../bzimage /boot/vmlinuz
7.cp /usr/src/linux/system.map /boot/system.map
Also I have deleted the Linux folder in /usr/src and i made a new symbolic link between /usr/src/linux and /usr/src/linux-2.6.7

I have also tried to run make mrproper prior to installation
and the process used in older kernels like make dep.... etc.

I found a guide in the forum that tells u to copy the file config inside the /boot but I cannot find that file.

Please help me.
Thank you
 
Old 06-25-2004, 07:22 AM   #2
goldeneyexs
LQ Newbie
 
Registered: Jan 2004
Distribution: SuSE 9 Pro
Posts: 29

Rep: Reputation: 15
what distro are you running, and are you running virtural raid on your / partition? that caused tons of problems for me. (never got solved)
 
Old 06-25-2004, 08:56 AM   #3
srichand
Member
 
Registered: May 2004
Location: Bangalore, India
Distribution: Fedora Core 2 (modified), Debian
Posts: 34

Rep: Reputation: 15
I believe you haven't put in an initrd image

from the kernel source directory, do a
# /sbin/mkinitrd initrd-2.6.7.img 2.6.7

copy this initrd-2.6.7.img to your boot partition and add the following to your grub conf line

title Kernel 2.6.7
root (hdx,y)
kernel /kernel.img -- whatever your kernel image is
initrd /initrd-2.6.7.img -- the image we just created

reboot, and we should be done

Srichand
 
Old 06-26-2004, 01:12 AM   #4
stardust2678
LQ Newbie
 
Registered: Jun 2004
Location: ATHENS Greece
Posts: 7

Original Poster
Rep: Reputation: 0
Thumbs up

Well thank you for your answers I will give it a try tonight and see how it goes...
 
Old 07-05-2004, 01:16 PM   #5
stardust2678
LQ Newbie
 
Registered: Jun 2004
Location: ATHENS Greece
Posts: 7

Original Poster
Rep: Reputation: 0
Unhappy

Well it didn't work. when I did /sbin/mkinitrd-2.6.7.img 2.6.7 it didnt work. What i did next was to type man mkinitird , mkinit ...etc. I could not find anything.


==================================
srichand

from the kernel source directory, do a
# /sbin/mkinitrd initrd-2.6.7.img 2.6.7

copy this initrd-2.6.7.img to your boot partition and add the following to your grub conf line

title Kernel 2.6.7
root (hdx,y)
kernel /kernel.img -- whatever your kernel image is
initrd /initrd-2.6.7.img -- the image we just created

===============================
 
Old 07-05-2004, 01:42 PM   #6
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Rep: Reputation: 31
No shouldn't make any difference.....I just wonder why you dont use the debian way of installing a kernel

as root:

apt-get install kernel-source-2.6.7
cd /usr/src
tar jxvf kernel-source-2.6.7.tar.bz2
ln -s kernel-source-2.6.7 linux

make sure you have done an apt-get install kernel-package debhelper dpkg-dev
If you are going to use menuconfig you will be required to install libncurses5-dev by doing: apt-get install libncurses5-dev

cd linux

make oldconfig
make menuconfig
make-kpkg clean

make-kpkg --initrd (if you need it*) --append-to-version=.ddmmyyyy --revision=ddmmyyyy kernel_image

dpkg -i /usr/src/kernel-image-2.6.7-ddmmyyyy.deb

or if you don't have any reason to compile your own kernel and just want it to run. you could:

apt-get install kernel-image-2.6.7 (or K7 apt-get install kernel-image-2.6.7-k7)

and apt will do anything you need.....including updating grub

*If you have an IDE drive and you compile IDE support and the filesystem type that you use into the kernel you won't need initrd.

Last edited by powadha; 07-07-2004 at 09:45 AM.
 
  


Reply



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
problems compiling a kernel kryptonite0110 Linux - Software 4 06-26-2005 03:33 PM
Problems compiling 2.6.9 kernel MadMusician_uk Mandriva 3 01-05-2005 12:31 PM
two problems after compiling my kernel el_pajaro! Linux - Software 4 10-21-2004 07:22 AM
Problems after kernel compiling Harp00 Slackware 5 07-09-2004 06:52 PM
problems after kernel compiling R3N3G4D3 Slackware 3 04-13-2003 10:58 AM

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

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