Magic SysRq Tutorial - What, Kernel Configuation, Use, Commands
What is SysRq? SysRq is the magical key comibnation when you hit, kernel will respond regardless of whatever else it is doing, unless it is completely locked up. Kernel Configuration to Enable SysRq? During Linux Kernel Compilation: CONFIG_MAGIC_SYSRQ = 'y' While running Linux: Kernel Command Line Parameter: "sysrq_always_enabled" echo "number" > /proc/sys/kernel/sysrq 0 - Disable sysrq completely 1 - Enable all functions of sysrq > 1 - Bitmask of allowed sysrq functions How to use SysRq? If X86: Press Key Combo: Alt + SysRq + <Command Key>. If you don't find 'SysRq' on your keyboard , use 'PrtScr', then the key combo becomes: Alt + PrtScr + <Command Key> On All other machines ( This will be useful when there is no keyboard attached and you have a serial console) : echo <command key> > /proc/sysrq-trigger E.g. echo b > /proc/sysrq-trigger to reboot the system echo g > /p...