Nothing is perfect in this world, and even Linux sometimes crashes. But even then there is a connection with kernel - Magic SysRq Key.
What is this?
If you look to the keyboard then you see a strange key PrtSc / SysRq. Most people thinks that such key is for taking screenshots, but SysRq appeared on keyboards many years before Redmond behemoth.
Using SysRq key it is possible to force a Linux system to sync disks, remount disks into "read-only" mode, and then reboot computer safely. The key combination is intercepted directly by kernel, hence it is guaranty that Alt+SysRq is workable almost in any situations.
How we can use it?
First, we need to ensure that Magic SysRq key is enabled in kernel config: CONFIG_MAGIC_SYSRQ value must be Y (in most distributions it is so). To use such key, press and hold Alt, then press SysRq, release it and press another key - meanings of most useful keys are listed below
Simultaneously pressed Alt + SysRq + 'H'elp - prints to output all key combinations;
loglevel'0'-'8' - can change verbosity of the output from 0 (only critical messages) to 8 (most verbose mode);
Links
Except kernel documentation you may be interested in reading this and this links.
Read more...
Monday, 31 March 2008
Magic SysRq Key
Subscribe to:
Posts (Atom)