Kernel panic (Debian: migrating from 2.4 to 2.6 kernel)
I'm using Debian sarge. Migrating from kernel 2.4.27 to 2.6.10
After solving problem with VSF and root partition, I get this error: ----------------------- pivot_root: No such file or directory /sbin/init: 426:cannot open /dev/console: No such file Kernel panic - not syncing: Attempted to kill init! ----------------------- I also created initrd.img-2.6.10 with mkinitrd. Devfs is enabled on boot. Machine is laptop. I can't find what 426 belongs to Any suggestions? Also, Is it possible to swith completely to udev? |
OK, my guess is that it's got to have something to do with the initrd image. You either don't have a driver that you need to have (like for the hard drive, for instance) or the the console device is missing or something. Mount the initrd:
Code:
# mount -t ext2 -o loop initrd.img-2.6.10 /mnt/initrd Code:
# mknod -m 660 console c 5 1 I'd like to help you out more but I don't have enough experience. Just trying to point you to where I think the problem is. -- the dudeman PS Quote:
Quote:
|
OOPS! You need to make /dev/null and /dev/console in your normal filesystem, not the initrd. I'm pretty sure about that.
It could be that udev just delted the device files so you have to remake them. SOrry about that correction. Like I said, I don't have much experience in that area. -- the dudeman |
/dev/console & /dev/null are here, in my filesystem..
|
Did you check your initrd? Mount it and check what's in there
Code:
# ls -Rl /mnt/initrd Code:
# mkinitrd initrd-2.6.10.img vmlinuz-2.6.10 Here's some other tips that you could read. I noticed that you had your initrd named "initrd.img-2.6.10". It could be that it has to have the same name as the kernel but just with the ".img" part on the end. Also, what's your bootloader entry look like? I usually use Gentoo but I also have Yoper linux installed which uses an initrd and here's the entry I have for it in grub Code:
# cat /boot/grub/grub.conf -- the dudeman |
All times are GMT -5. The time now is 04:48 AM. |