opensuse kernel panic

Hi,
I do not maintain the system that is having problem but I have been asked for help and I am trying to understand what the possible solution to their boot problem is.

Basically when they boot the OS via Grub, kernel loads and mounts soft-raid volume in rw mode and panics throwing a message.

/bin/run-init: /sbin/init: no such file or directory

http://img196.imageshack.us/img196/5828/0e0c.jpg

I tried choosing failsafe, xen and desktop(default) entries in Grub but all end up kernel panic and same message as above.

I have booted the system with Sysrescue cd. Good thing it detected the soft raid volume and showed that in fdisk o/p. I am also able to mount the /dev/md0(sof raid 1) to a directory in /mnt/

mount -t ext4 /dev/md0 /mnt/backup

chroot fails


root@sysresccd /root % cd /mnt/backup 
root@sysresccd /mnt/backup % chroot /mnt/backup 
chroot: failed to run command ‘/bin/zsh’: No such file or directory

root@sysresccd /mnt/backup % ls -al

total 168
drwxr-xr-x  18 root root  4096 Jul 23 00:31 .
drwxr-xr-x   7 root root   140 Jul 23 15:42 ..
drwxr-xr-x   3 root root  4096 Oct 27  2010 boot
drwxr-xr-x   5 root root  4096 Oct 27  2010 dev
drwxr-xr-x 126 root root 12288 Jul 23 15:31 etc
drwxr-xr-x  29 root root  4096 Mar 28 17:45 home
drwxr-xr-x  13 root root  4096 Oct 27  2010 lib
drwxr-xr-x   2 root root  4096 Dec  1  2010 media
drwxr-xr-x   8 root root  4096 Apr 23  2012 mnt
drwxr-xr-x   2 root root  4096 Oct 27  2010 nfs
drwxr-xr-x   4 root root  4096 Oct 27  2010 opt
drwxr-xr-x   3 root root  4096 Oct 27  2010 proc
drwx------  30 root root  4096 Jul 23 15:28 root
drwxr-xr-x   3 root root 12288 May 31  2012 sbin
drwxr-xr-x   3 root root  4096 Oct 27  2010 sys
drwxrwxrwt 265 root root 86016 Jul 10 22:32 tmp
drwxr-xr-x  13 root root  4096 Nov  3  2009 usr
drwxr-xr-x  17 root root  4096 Nov 20  2012 var

root@sysresccd /mnt/backup % ls -al sbin/init

-rwxr-xr-x 1 root root 36624 Oct 24  2009 sbin/init

cat etc/SuSE-release

openSUSE 11.2 (x86_64)
VERSION = 11.2

I don’t see ‘/bin’ directory in the root directory of mounted raid volume.

Can anyone throw some light or suggest best solution if they have encountered this before?

Thank you!

On 07/23/2013 11:16 AM, upengan78 wrote:
>
> Hi,
> I do not maintain the system that is having problem but I have been
> asked for help and I am trying to understand what the possible solutin
> to their boot problem is.
>
> Basically when they boot the OS via Grub, kernel loads and mounts
> soft-raid volume in rw mode and panics throwing a message.
>
> Code:
> --------------------
> /bin/run-init: /sbin/init: no such file or directory
> --------------------
>
> http://img196.imageshack.us/img196/5828/0e0c.jpg
>
> I tried choosing failsafe, xen and desktop(default) entries in Grub but
> all end up kernel panic and same message as above.
>
> I have booted the system with Sysrescue cd. Good thing it detected the
> soft raid volume and showed that in fdisk o/p. I am also able to mount
> the /dev/md0(sof raid 1) to a directory in /mnt/
>
>
> Code:
> --------------------
> mount -t ext4 /dev/md0 /mnt/backup
>
> --------------------
>
>
> chroot fails
>
> Code:
> --------------------
>
> root@sysresccd /root % cd /mnt/backup
> root@sysresccd /mnt/backup % chroot /mnt/backup
> chroot: failed to run command ‘/bin/zsh’: No such file or directory
>
> --------------------
>
>
> root@sysresccd /mnt/backup % ls -al
>
> Code:
> --------------------
> total 168
> drwxr-xr-x 18 root root 4096 Jul 23 00:31 .
> drwxr-xr-x 7 root root 140 Jul 23 15:42 …
> drwxr-xr-x 3 root root 4096 Oct 27 2010 boot
> drwxr-xr-x 5 root root 4096 Oct 27 2010 dev
> drwxr-xr-x 126 root root 12288 Jul 23 15:31 etc
> drwxr-xr-x 29 root root 4096 Mar 28 17:45 home
> drwxr-xr-x 13 root root 4096 Oct 27 2010 lib
> drwxr-xr-x 2 root root 4096 Dec 1 2010 media
> drwxr-xr-x 8 root root 4096 Apr 23 2012 mnt
> drwxr-xr-x 2 root root 4096 Oct 27 2010 nfs
> drwxr-xr-x 4 root root 4096 Oct 27 2010 opt
> drwxr-xr-x 3 root root 4096 Oct 27 2010 proc
> drwx------ 30 root root 4096 Jul 23 15:28 root
> drwxr-xr-x 3 root root 12288 May 31 2012 sbin
> drwxr-xr-x 3 root root 4096 Oct 27 2010 sys
> drwxrwxrwt 265 root root 86016 Jul 10 22:32 tmp
> drwxr-xr-x 13 root root 4096 Nov 3 2009 usr
> drwxr-xr-x 17 root root 4096 Nov 20 2012 var
>
> --------------------
>
>
> root@sysresccd /mnt/backup % ls -al sbin/init
>
> Code:
> --------------------
> -rwxr-xr-x 1 root root 36624 Oct 24 2009 sbin/init
>
> --------------------
>
>
> I don’t see ‘/bin’ directory in the root directory of mounted raid
> volume.
>
> Can anyone throw some light or suggest best solution if they have
> encountered this before?

We need to know the version of openSUSE involved.

One other thing - a kernel panic is when the kernel cannot proceed and it causes
the shift and number lock lights to flash at 1 Hz. That is not what happened
here. Your user space failed because it could not find a crucial file. Your
kernel was still running quite well. You did accomplish one thing with your
incorrect subject. You got me to read your posting. :slight_smile:

Well, I did edit the post with opensuse OS version that I found from etc/SUSE-release - 11.2 x86_64

I attached a link to the screenshot, which does have a line that says kernel panic so I guess I am not fully incorrect. But I understood what you are trying to say about file not find. Kernel may not really be the problem but error says kernel panic after the file not found. That’s the reason, I also posted my observation that there is no /bin directory in mounted volume at /mnt/backup. So I am now feeling it’s related to /bin/run-init not found.

Can the system be recovered to boot installing rpm packages using --prefix? Not sure which packages will be necessary though and again I have to hope those are relocatable.

Thank you!

Not sure the /bin/run-init in the error message is actually for the /bin directory in the OS. I found run-init at another location:

root@sysresccd /mnt/backup/lib/mkinitrd/bin % ls -al

total 40
drwxr-xr-x 2 root root  4096 Nov  3  2009 .
drwxr-xr-x 7 root root  4096 Oct 19  2009 ..
-rwxr-xr-x 1 root root  1529 Aug 11  2009 ipconfig.sh
-rwxr-xr-x 1 root root  2054 Aug 11  2009 linuxrc
-rwxr-xr-x 1 root root 10688 Oct 24  2009 run-init
-rwxr-xr-x 1 root root 10656 Oct 24  2009 warpclock

11.2 is way out of date. current version is 12.3. There have been no updates to 11.2 for over 2 years I believe.

From the bootable CD try running fsck on the root on the drive to see if the file system is still sane.

Also may want to run smart to see if the disk is still ok