[syslinux] Switchroot: mount failed: 22, Kernel panic - not syncing: Attempted tp kill init!

Kosolapov Dmitry dk at farpost.com
Sun Apr 9 01:02:09 PDT 2006


Eli Stair wrote:
> 
> Guess: your kernel was built with an initramfs that contains an init
> script... the init script is doing a switch_root to some
> hardcoded/defined/detected local device which doesn't exist (or isn't
> bootable) in your situation.  I'm _guessing_ that you're trying to do an
> old-school nfsroot mount.  That doesn't work anymore, as of 2.6.15. 
> 
> See: ramfs-rootfs-initramfs.txt
> 
> Or I could be entirely off base, I'm basing this scenario on the little
> info you gave... not sure that "root=IP" does in fact do anything.
> (nfsroot= maybe?)  Most likely, this doesn't come down to an issue with
> syslinux, it seems to have done its job
> 
> :)
> 
> /eli

The verbose of my booting:

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 tp kill init!


Now my /tftpboot/pxelinux.cfg/default is:
LABEL linux
  KERNEL vmlinuz-2.6.16
  APPEND initrd=initrd-2.6.16.img
nfsroot=192.168.4.110:/clients/192.168.4.100/root

My /etc/exports is:
/clients/192.168.4.100/root *(rw,no_root_squash)
/clients/192.168.4.100/usr *(rw,no_root_squash)
/clients/192.168.4.100/var *(rw,no_root_squash)
/clients/192.168.4.100/tmp *(rw,no_root_squash)
/home                     *(rw)

Client's fstab (/clients/192.168.4.100/root/etc/fstab) is:
192.168.4.110:/clients/192.168.4.100/root /     nfs rw,hard,intr,nolock
0 0
192.168.4.110:/clients/192.168.4.100/usr  /usr  nfs rw,hard,intr,nolock 0 0
192.168.4.110:/clients/192.168.4.100/var  /var  nfs rw,hard,intr,nolock 0 0
192.168.4.110:/clients/192.168.4.100/tmp  /tmp  nfs rw,hard,intr,nolock 0 0
192.168.4.110:/home                  /home nfs rw,hard,intr,nolock 0 0

/clients/192.168.4.100/root has 777-chmoded -R

And I used my system kernel 2.6.16 (because my own compiled didn't
booted at all) and system initrd.

Thanks advance.




More information about the Syslinux mailing list