![]() ![]() For further documentation, see the SysRq key documentation, and the kernel source file /drivers/tty/sysrq.c.Īlt+SysRq+f can be used to invoke the OOM (out-of-memory) killer without causing a kernel panic if nothing can be killed. The whole set of REISUB functions can be enabled by setting it to 244, although this also enables the additional functions listed in the last column of the table. 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. If you see inaccuracies in our content, please report the mistake via this form.Tip: If you like a keyboard-centered workflow, you might also appreciate a tiling window manager. If we have made an error or published misleading information, we will correct or clarify the article. Our editors thoroughly review and fact-check every article to ensure that our content meets the highest standards. Our goal is to deliver the most accurate information and the most knowledgeable advice possible in order to help you make smarter buying decisions on tech gear and a wide array of products and services. ZDNET's editorial team writes on behalf of you, our reader. Indeed, we follow strict guidelines that ensure our editorial content is never influenced by advertisers. Neither ZDNET nor the author are compensated for these independent reviews. This helps support our work, but does not affect what we cover or how, and it does not affect the price you pay. When you click through from our site to a retailer and buy a product or service, we may earn affiliate commissions. And we pore over customer reviews to find out what matters to real people who already own and use the products and services we’re assessing. We gather data from the best available sources, including vendor and retailer listings as well as other relevant and independent reviews sites. ZDNET's recommendations are based on many hours of testing, research, and comparison shopping. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |