LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error in linux upgrading from kernel 2.4.18 to 2.6.7 (https://www.linuxquestions.org/questions/linux-software-2/error-in-linux-upgrading-from-kernel-2-4-18-to-2-6-7-a-219251/)

appas 08-18-2004 09:49 AM

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,

ToniT 08-18-2004 09:58 AM

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?

320mb 08-18-2004 10:03 AM

did you upgrade the modutils package..........the 2.6x kernel
requires...module-init-tools package now..........

appas 08-18-2004 10:13 AM

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=/

appas 08-18-2004 10:20 AM

I have not upgrade the modutils, Could you explain me on doing this or refer a link.
Thanks in advance.

masand 08-18-2004 11:08 AM

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

appas 08-18-2004 10:43 PM

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.

masand 08-19-2004 04:50 AM

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

appas 08-20-2004 12:49 AM

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]

masand 08-20-2004 04:54 AM

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


All times are GMT -5. The time now is 09:18 PM.