How to safely manually trigger a kernel panic?
from ColdWater@lemmy.ca to linux@lemmy.ml on 03 May 01:17
https://lemmy.ca/post/43305785

I’ve been using Linux for 1.5 year now one of the reason is the number tux represented how many CPU core I have on boot, but I’m disappointed because they don’t do that anymore, another reason is to experience kernel panic and I never got one how can I manually and safety trigger it?

#linux

threaded - newest

savvywolf@pawb.social on 03 May 01:26 next collapse

en.m.wikipedia.org/wiki/Magic_SysRq_key

Alt+SysRq+C, although your distro may have it disabled by default.

A fair warning though, safety is relative and crashing the kernel can be destructive. Make sure you have backups when breaking things.

cmnybo@discuss.tchncs.de on 03 May 02:38 next collapse

It’s probably best to try that with a live CD.

ColdWater@lemmy.ca on 03 May 06:58 collapse

Thanks you, I got a Linux VM so I’m gonna try that

mark@social.cool110.xyz on 03 May 05:55 next collapse

@ColdWater You could write a small kernel module that just triggers one as soon as it's loaded

hades@lemm.ee on 03 May 06:45 next collapse

echo 1 > /proc/sys/kernel/sysrq && echo c > /proc/sysrq-trigger

kylian0087@lemmy.dbzer0.com on 04 May 11:22 collapse

The tux logo at boot is due to a kernel option. You can enable this if you like.