You are not logged in.

#1 2015-10-03 16:57:16

niceman
Member
Registered: 2015-08-31
Posts: 55

how to log kernel panics

I'm facing kernel panics randomly after shutdown(kernel panic not syncing attempted to kill init), I faced one today after some working with chromium and intellij idea, I closed the two, pressed shutdown and then the panic occured. 

I thought I could reproduce the problem by repeating what I was doing and then shutting down the system but it worked normally, no panic. 

I checked journalctl but the panic seems not logged, so I need to know what to do to log it, this wiki page is for the boot process and the problem I'm facing is in the shutdown process. 

I removed quiet kernel parameter from my grub.cfg but still I can't find the panic in my logs. 

So how to log kernel panic messages ? and what can I do to diagnose it ?

Offline

#2 2015-10-03 17:02:36

nonfictive
Member
Registered: 2015-10-03
Posts: 19

Re: how to log kernel panics

I would recommend to boot arch linux live install usb, and chroot into your partition , just do mount /dev/blahh /mnt
If you are using encrypted lvm then you would do cryptdevice=/dev/blahh:lvm then mount it. I would follow this
for further help https://wiki.archlinux.org/index.php/Kernel_Panics.

Offline

#3 2015-10-03 17:38:14

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: how to log kernel panics

The problem is that if your kernel freezes before journald can store anything, then the kernel messages aren't logged. If your kernel panics often and you want to read the kernel messages you can set up a dump kernel (see https://wiki.archlinux.org/index.php/Kdump): when the main kernel panics, the dump kernel is loaded automatically and so you can save a dump to the disk. Finally, you can recover the kernel messages from the dump using crash.


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

Board footer

Powered by FluxBB