[syslinux] Switchroot: mount failed: 22, Kernel panic - not syncing: Attempted tp kill init!
dk at farpost.com
Sun Apr 9 22:19:28 PDT 2006
Geert Stappers wrote:
> On Sun, Apr 09, 2006 at 06:20:08PM +1100, Kosolapov Dmitry wrote:
>> Hi, everybody!
>> My pxelinux.0/default file is:
>> LABEL linux
>> KERNEL vmlinuz-2.6.16
>> APPEND initrd=initrd-2.6.16.img
> APPEND initrd=initrd-2.6.16.img root=/dev/ram
>> When mounting I get:
>> switchroot: mount failed: 22
>> Kernel panic - not syncing: Attempted tp kill init!
>> Before it I get some messages about: Can't find /dev/console.
>> /clients/192.168.4.100/root/dev was empty.
> Seems like you assume that the client does do NFS
> and you can monitor it at the NFS-server.
> That only works if the client is actual doing NFS ...
>> I've copied my /dev to
>> /clients/192.168.4.100/root/dev/ but the errors weren't fixed.
> Copying /dev ???
>> What is the problem with mounting? Thanks advance.
>> PS. I do everything according to FM at linux-mag.com
> Please provide a deep link to the Fantastic Manual at linux-mag.com.
you have to authenticate there. you may use my credentials (l: dimakos,
p: stcn93) or register yourself.
In that pxelinux.0/default configuration I need to use:
But I've got "Kernel Panic" about root device. I've changed it to
and after problem was fixed (but I've got another error you saw). Then
one man gave me the advice to change "root" to "nfsroot", but the
problem wasn't fixed.
The verbose of my booting now:
Mounting root filesystem:
mount: error 6 mounting ext3
Switching to newroot
Error opening /dev/console !!!!: 2
error dup2' ing fd of 0 to 0
error dup2' ing fd of 0 to 1
error dup2' ing fd of 0 to 2
unmounting old /proc
unmounting old /sys
switchroot: mount failed: 22
Kernel panic - not syncing: Attempted to kill init!
Now I think problem to be in the kernel, because of I use for booting my
server system kernel (easy copied from /boot) and:
ext3 133705 2
jbd 60885 1 ext3
So I need to compile static kernel (without modules). But after
compiling it and copying to /tftpboot and remote loading I get the error
of "Invalid or corrupt kernel image" despite kernel to be workable.
Please give me an advice about my further actions. Thanks for advance.
More information about the Syslinux