LinuxQuestions.org
Review your favorite Linux distribution.
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 08-18-2004, 09:49 AM   #1
appas
Member
 
Registered: Jul 2004
Posts: 72

Rep: Reputation: 15
Error in linux upgrading from kernel 2.4.18 to 2.6.7


Hi,

I am currently working in linux kernel (2.4.18smp) ..i tried upgrading to 2.6.7.
Summary of what i have done.
1. Downloaded the source tar for kernel 2.6.7
2. Compiled the src files and installed.
3. Build the kernel and the modules.
All the above said did not list any errors, but while booting i get
the following error message:

mount: error 19 mounting ext3
pivot-root: pivot_root(/sysroot, /sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Kernel panic: No init found. Try passing init= option to kernel

Please help,
 
Old 08-18-2004, 09:58 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Which distribution are you using? Are you using some initial ramdisks to bootstrap the system? If so, have you configured your initrd for new kernel?
 
Old 08-18-2004, 10:03 AM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
did you upgrade the modutils package..........the 2.6x kernel
requires...module-init-tools package now..........
 
Old 08-18-2004, 10:13 AM   #4
appas
Member
 
Registered: Jul 2004
Posts: 72

Original Poster
Rep: Reputation: 15
Thanks for your response, I am not using initial ramdisks and my grub.conf looks like this
title Test Kernel (2.6.7)
root (hd0,2)
kernel /boot/bzImage-2.6.7 ro root=LABEL=/
 
Old 08-18-2004, 10:20 AM   #5
appas
Member
 
Registered: Jul 2004
Posts: 72

Original Poster
Rep: Reputation: 15
I have not upgrade the modutils, Could you explain me on doing this or refer a link.
Thanks in advance.
 
Old 08-18-2004, 11:08 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
this is the link for modutils

http://www.kernel.org/pub/linux/util...modutils/v2.4/

u need to upgrade ur modutils for the problem u r recieving

also please mention ur distribution since it is easy to spot the problem out there

regards
gaurav
 
Old 08-18-2004, 10:43 PM   #7
appas
Member
 
Registered: Jul 2004
Posts: 72

Original Poster
Rep: Reputation: 15
Thanks for your reply,
Linux distribution i am using is RedHat 8.
I have'nt tried the modutils yet, I will let u know once it is done.
 
Old 08-19-2004, 04:50 AM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there
if u r using redhat then u camn find some RPMS here for upgrading ur kernel

http://people.redhat.com/arjanv/2.6/

regards
gaurav
 
Old 08-20-2004, 12:49 AM   #9
appas
Member
 
Registered: Jul 2004
Posts: 72

Original Poster
Rep: Reputation: 15
Hi,
Thanks for the replay, masand.
With the help of doc from
/http://www.kerneltrap.org/node/view/2465
I was able to compile and install the kernel 2.6. When i boot, i encounter following problems though it finally boots.

Initialing USB Controller (USB uhci) : Fatal : Modul usb_uhci not found [Failed]

Initialing USB Keyboard : Fatal : Modul Keybdev not found [Failed]

Initialing Mouse : Fatal : Modul Mousedev not found [Failde]

applying iptables firewall rules bal bla bla bla
try IP tables-restore-h or iptables--restore bala bla bla : [Failed]
 
Old 08-20-2004, 04:54 AM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there
here is a extract from a document

USB
The names for the USB modules are different. This affects /etc/modprobe.conf (look for ``usb-controller'') and, once again, /etc/rc.sysinit. I had to rename all instances of ``keybdev'' into ``usbkbd'' and ``mousedev'' into ``usbmouse''. In addition, I replaced all instances of ``/proc/bus/usb'' with ``/sys/bus/usb''. (Also do this last part in /etc/init.d/halt.)
Look for ``needusbstorage'' in /etc/rc.sysinit. I changed that section into:
needusbstorage=
if [ $usb = "1" ]; then
needusbstorage=`LC_ALL=C grep -e "^I.*Cls=08" /sys/bus/usb/devices 2>/dev/null`
action $"Initializing USB HID interface: " modprobe hid 2> /dev/null
action $"Initializing USB keyboard: " modprobe usbkbd 2> /dev/null
action $"Initializing USB mouse: " modprobe usbmouse 2> /dev/null
fi



the original document is at

http://thomer.com/linux/migrate-to-2.6.html

it is good upgrading to 2.6 help file

also for ur iptables problem ,see if u r runnig ipchains too!!!!

regards
gaurav
 
  


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
kernel compilation : Error in upgrading 2.4.x to 2.6.x b0nd Slackware 5 09-18-2005 11:38 AM
rpm error after upgrading to kernel 2.6.1 Gramphos Red Hat 6 12-31-2004 04:02 AM
Getting some error messages after upgrading kernel... Whitehat Slackware 2 01-04-2004 08:10 AM
Error upgrading kernel, /sbin/mkinitrdi integer expression expected amp2000 Linux - General 2 12-05-2003 05:38 AM
Error while upgrading Linux to 7.1 perlguy Linux - General 1 05-31-2002 10:14 PM

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

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