![]() ![]() Unmount and remount all filesystems read-only.įor example, to selectively enable just the reboot function, set kernel.sysrq to 128. Send SIGKILL to all processes, forcing them to terminate immediately. Send SIGTERM to all processes, allowing them to terminate gracefully. You should not blindly press these sequences each time without knowing their actual function as noted below. Note: Please be aware that "REISUB" itself is just a mnemonic, not any kind of general recommendation for the key press sequence to take back control of an unresponsive system. Alternatively, think of it as "BUSIER" backwards. That said, make sure you fully understand the implications of enabling it and the dynamics of the larger context in which your system is operating before you turn SysRq all the way on.Ī common idiom to remember this is " Reboot Even If System Utterly Broken" (also referred to as "REISUB"). Since using it requires physical access to the system (unless you go out of your way), most desktop users will probably consider the level of risk acceptable. In addition to forcing reboots and the like, it can be used to dump the contents of the CPU registers, which could theoretically reveal sensitive information. There are some obvious security risks involved in fully enabling the SysRq key. ![]() If you want to try changing the SysRq settings for just your current session, you can run either sysctl kernel.sysrq=1 or echo "1" > /proc/sys/kernel/sysrq. Note that changing the setting through these methods will cause the changes to persist across reboots. If you want to make sure it will be enabled even before the partitions are mounted and in the initrd, then add sysrq_always_enabled=1 to your kernel parameters. Values greater than 1 can be used to selectively enable SysRq functions see the Linux kernel documentation for details. To allow full use of the SysRq key on your system, add kernel.sysrq = 1 to your sysctl configuration. Systemd has the SysRq permissions bitmask set to 0x10 by default, which does not allow process signalling or rebooting, among other things. See Wikipedia:Magic SysRq key for more details. Whenever possible, it is recommended that you use these shortcuts instead of doing a hard shutdown (holding down the power button to completely power off the system). There are several low level shortcuts that are implemented in the kernel via the SysRq key which can be used for debugging and recovering from an unresponsive system. Tip: If you like a keyboard-centered workflow, you might also appreciate a tiling window manager. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |