Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I survived a kernel panic...now what?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Steve S.
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2005
Posts: 131

PostPosted: Mon May 28, 2018 3:18 pm    Post subject: I survived a kernel panic...now what? Reply with quote

Now I'm scared to reboot. :?

It said attempting to kill init, kernel panic! code=00000009

After about the third or fourth try, it kicked on a reboot.

This is a relatively new install. Only one kernel on there. All under one partitiion (plus a swap).

Is there some update I should run? Some emerge sync or something that might help? Advise?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43780
Location: 56N 3W

PostPosted: Mon May 28, 2018 3:25 pm    Post subject: Reply with quote

Steve S.

Tell us how you made your kernel and your initrd, if you have one.

init is Process ID 1. It owns all the userspace processes on your system.
Killing init is like pulling the plug out, so it a very bad thing.

Are you using BIOS or UEFI?

What about systemd?

I guess this happens on boot and you never get any further?
If it happens randomly, during normal operation, it may well be hardware.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Steve S.
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2005
Posts: 131

PostPosted: Mon May 28, 2018 3:43 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Steve S.

Tell us how you made your kernel and your initrd, if you have one.

init is Process ID 1. It owns all the userspace processes on your system.
Killing init is like pulling the plug out, so it a very bad thing.

Are you using BIOS or UEFI?

What about systemd?

I guess this happens on boot and you never get any further?
If it happens randomly, during normal operation, it may well be hardware.


Made my kernel by using a livecd, going through the install process, unpacking tarball,chrooting, etc. kernelgen..is that what you are asking?

Using BIOS.

It is a pentium 4, not sure what you want for systemd.

Only happens instantly after grub at boot.

And thanks for the quick reply!
Back to top
View user's profile Send private message
sao98021
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2012
Posts: 144
Location: Michigan

PostPosted: Mon May 28, 2018 3:45 pm    Post subject: Reply with quote

dont be scared, just reboot into livecd/usb again and chroot, maybe use a genkernel for fallback so you wont have to chroot anymore
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43780
Location: 56N 3W

PostPosted: Mon May 28, 2018 4:10 pm    Post subject: Reply with quote

Steve S,

The kernel configuration and build tool is genkernel.
That should just work for most users.

It would be useful to see your /boot/grub/grub.cfg file.
No need to chroot,
Boot your install media, mount your filesystems and its at /mnt/gentoo/boot/grub/grub.cfg

The output of
Code:
df -T
will be helpful too.

Lastly,
Code:
 ls -l /mnt/gentoo/boot
will be good.

systemd is an alternate init system. You would know if you were using it, so you are not.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Steve S.
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2005
Posts: 131

PostPosted: Mon May 28, 2018 5:48 pm    Post subject: Reply with quote

I'm still in an active system; no need to boot into live media yet.

Here is grub.cfg:
Code:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  b1d95ff2-f8a3-493f-adba-b3dc97385fb1
else
  search --no-floppy --fs-uuid --set=root b1d95ff2-f8a3-493f-adba-b3dc97385fb1
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=countdown
  set timeout=5
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --verbose --interruptible 5 ; then
  set timeout=0
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b1d95ff2-f8a3-493f-adba-b3dc97385fb1' {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  b1d95ff2-f8a3-493f-adba-b3dc97385fb1
   else
     search --no-floppy --fs-uuid --set=root b1d95ff2-f8a3-493f-adba-b3dc97385fb1
   fi
   echo   'Loading Linux x86-4.9.95-gentoo ...'
   linux   /boot/kernel-genkernel-x86-4.9.95-gentoo root=UUID=b1d95ff2-f8a3-493f-adba-b3dc97385fb1 ro 
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initramfs-genkernel-x86-4.9.95-gentoo
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-b1d95ff2-f8a3-493f-adba-b3dc97385fb1' {
   menuentry 'Gentoo GNU/Linux, with Linux x86-4.9.95-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86-4.9.95-gentoo-advanced-b1d95ff2-f8a3-493f-adba-b3dc97385fb1' {
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  b1d95ff2-f8a3-493f-adba-b3dc97385fb1
      else
        search --no-floppy --fs-uuid --set=root b1d95ff2-f8a3-493f-adba-b3dc97385fb1
      fi
      echo   'Loading Linux x86-4.9.95-gentoo ...'
      linux   /boot/kernel-genkernel-x86-4.9.95-gentoo root=UUID=b1d95ff2-f8a3-493f-adba-b3dc97385fb1 ro 
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initramfs-genkernel-x86-4.9.95-gentoo
   }
   menuentry 'Gentoo GNU/Linux, with Linux x86-4.9.95-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86-4.9.95-gentoo-recovery-b1d95ff2-f8a3-493f-adba-b3dc97385fb1' {
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  b1d95ff2-f8a3-493f-adba-b3dc97385fb1
      else
        search --no-floppy --fs-uuid --set=root b1d95ff2-f8a3-493f-adba-b3dc97385fb1
      fi
      echo   'Loading Linux x86-4.9.95-gentoo ...'
      linux   /boot/kernel-genkernel-x86-4.9.95-gentoo root=UUID=b1d95ff2-f8a3-493f-adba-b3dc97385fb1 ro single
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initramfs-genkernel-x86-4.9.95-gentoo
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


Here is df -T:
Code:

Filesystem     Type     1K-blocks    Used Available Use% Mounted on
udev           devtmpfs     10240       4     10236   1% /dev
/dev/sda2      ext2      44093584 6868136  34985604  17% /
tmpfs          tmpfs       128576     576    128000   1% /run
shm            tmpfs       642876    7520    635356   2% /dev/shm
cgroup_root    tmpfs        10240       0     10240   0% /sys/fs/cgroup
Back to top
View user's profile Send private message
Steve S.
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2005
Posts: 131

PostPosted: Mon May 28, 2018 5:53 pm    Post subject: Reply with quote

And ls -l of /boot is:
Code:

total 12996
-rw-r--r-- 1 root root 2552946 May 13 20:51 System.map-genkernel-x86-4.9.95-gentoo
drwxr-xr-x 6 root root    4096 May 19 21:27 grub
-rw-r--r-- 1 root root 5423124 May 14 00:03 initramfs-genkernel-x86-4.9.95-gentoo
-rw-r--r-- 1 root root 5289792 May 13 20:51 kernel-genkernel-x86-4.9.95-gentoo
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43780
Location: 56N 3W

PostPosted: Mon May 28, 2018 6:12 pm    Post subject: Reply with quote

Steve S.

That all looks "mostly harmless".
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Steve S.
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2005
Posts: 131

PostPosted: Mon May 28, 2018 6:21 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Steve S.

That all looks "mostly harmless".


Thanks, good to know! :D

But any idea on the kernel panic? Something I need to update/upgrade, any of that?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43780
Location: 56N 3W

PostPosted: Mon May 28, 2018 7:13 pm    Post subject: Reply with quote

Steve S.

Init is not supposed to die - ever.
I suspect that the handoff from the init script in the initramfs to the init on your HDD isn't happening, so the init script in the initramfs runs out of things to do and falls of the end.

Your kernel line is linux
Code:
/boot/kernel-genkernel-x86-4.9.95-gentoo root=UUID=b1d95ff2-f8a3-493f-adba-b3dc97385fb1 ro

So hopefully UUID=b1d95ff2-f8a3-493f-adba-b3dc97385fb1 is the UUID of the filesystem you want the kernel to mount as root.

What does /sbin/blkid say?

Your kernel filesystem root appears to be on sda2.
Code:
Filesystem     Type     1K-blocks    Used Available Use% Mounted on
/dev/sda2      ext2      44093584 6868136  34985604  17% /

Do the UUIDs match?

Beware the context sensitive use of the term root. Grub uses it to indicate where grub and all the files needed to boot are located.
The kernel uses it to indicate the root of the filesystem tree. Its not a problem to grub or the kernel.
Users need to think about it.

In your install, does /sbin/init exist?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Steve S.
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2005
Posts: 131

PostPosted: Mon May 28, 2018 7:17 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Steve S.

Init is not supposed to die - ever.
I suspect that the handoff from the init script in the initramfs to the init on your HDD isn't happening, so the init script in the initramfs runs out of things to do and falls of the end.

Your kernel line is linux
Code:
/boot/kernel-genkernel-x86-4.9.95-gentoo root=UUID=b1d95ff2-f8a3-493f-adba-b3dc97385fb1 ro

So hopefully UUID=b1d95ff2-f8a3-493f-adba-b3dc97385fb1 is the UUID of the filesystem you want the kernel to mount as root.

What does /sbin/blkid say?

Your kernel filesystem root appears to be on sda2.
Code:
Filesystem     Type     1K-blocks    Used Available Use% Mounted on
/dev/sda2      ext2      44093584 6868136  34985604  17% /

Do the UUIDs match?

Beware the context sensitive use of the term root. Grub uses it to indicate where grub and all the files needed to boot are located.
The kernel uses it to indicate the root of the filesystem tree. Its not a problem to grub or the kernel.
Users need to think about it.

In your install, does /sbin/init exist?


This seems to support that it may be a hardware issue...I'm gonna clone the drive just in case..worried I'm gonna have a full hard drive crashed..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum