LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Problem when moving from kernel 2.4.* to 2.6.* (https://www.linuxquestions.org/questions/debian-26/problem-when-moving-from-kernel-2-4-%2A-to-2-6-%2A-370066/)

super.da 10-05-2005 02:01 PM

Problem when moving from kernel 2.4.* to 2.6.*
 
I am using Debian 'sarge' 3.1 with kernel 2.4.27, when i try to upgrade to kernel 2.6.8, im using this 'apt-get install kernel-image-2.6.8-2-386_2.6.8-16_i386.deb', so when i reboot and choose to boot the new kernel from the grub boot-loader at boot-time i get the following error
Code:

pivot_root: No such file or directory
/sbin/init:432:cannot open dev/console: No such file
kernel panic: Attempted to kill init

I've written to the debian maillist but noone seems to know what to do...

Please help me =P

Krugger 10-05-2005 06:49 PM

just apt-get devfsd and udev and you will be fine.

super.da 10-06-2005 02:22 PM

Its not helping, i still get the same error at boot-time.. =(

initialdrifteg6 10-06-2005 03:41 PM

put in the boot disk that you made with your debian box (assuming that you made one) if not then download and knoppix and rewrite your grub config file

super.da 10-06-2005 04:03 PM

I can still boot kernel 2.4.27, but i wish to move to 2.6.8, i did everything i thought it would help, but nothing did... i still get the same error...

makuyl 10-06-2005 04:19 PM

Do you have the following in /etc/fstab :
none /sys sysfs defaults 0 0

super.da 10-07-2005 02:49 AM

Now i get the following error:
Code:

mount: mount point dev does not exist
pivot_root: No such file or directory
/sbin/init:432:cannot open dev/console: No such file
kernel panic: Attempted to kill init

And i can still boot kernel 2.4.27

makuyl 10-07-2005 03:46 AM

Which filesystems do you use on /boot and / ? Perhaps the module for one is missing. Have you using an initrd?

super.da 10-07-2005 10:43 AM

What do you mean by witch filesystem i use for /boot and / ?
Im using ext3fs, if that is what you are asking, and i use initrd.

makuyl 10-07-2005 01:03 PM

ext3 was what I wanted to know. Just thought that if ext3 was compiled as a module you would need an initrd for booting to work. Sorry, but don't know off hand any solution, that was what I was betting for.

super.da 10-08-2005 05:02 AM

So, can anyone help me?

kushalkoolwal 10-08-2005 05:09 AM

Could you post your /boot/grub/menu.lst file?

and ls of your /boot directory

super.da 10-08-2005 06:50 AM

/boot
Code:

.
..
config-2.4.27-2.386
config-2.6.8-2-386
grub
initrd.img-2.4.27-2.386
initrd.img-2.6.8-2.386
System.map-2.4.27-2-386
System.map-2.6.8-2-386
vmlinuz-2.4.24-2-386
vmlinuz-2.6.8-2-386

/boot/grub/menu.lst
Code:

default        5
timeout        10
color cyan/blue white/blue

Title Debian GNU/Linux, kernel 2.6.8-2-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hde3 devfs=mount ro
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

Title Debian GNU/Linux, kernel 2.6.8-2-386 (Recovery Mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hde3 ro single
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

Title Debian GNU/Linux, kernel 2.4.27-2-386
root (hd0,2)
kernel /boot/vmlinuz-2.4.27-2-386 root=/dev/hde3 ro
initrd /boot/initrd.img-2.4.27-2-386
savedefault
boot

Title Debian GNU/Linux, kernel 2.4.27-2-386 (Recovery Mode)
root (hd0,2)
kernel /boot/vmlinuz-2.4.27-2-386 root=/dev/hde3 ro
initrd /boot/initrd.img-2.4.27-2-386
savedefault
boot

I have tryed not to use the 'devfs=mount', but it does not help at all...

kushalkoolwal 10-08-2005 02:56 PM

I noticed that there is 'hde' in your menu.lst . Try giving root(hd4,3). Also /dev/hde3 parition is a primary partition?

super.da 10-08-2005 07:26 PM

No, /dev/hde3 is not my primary partition, i have a win XP on the samo box, its on another partition.
Why root(hd4,3)?


All times are GMT -5. The time now is 08:28 AM.