Magic Tricks To Get Out of Trouble With the Sysreq Key
Restore, Kill, Sync, and More
/proc/sys/kernel/sysrq��� if it exists and contains the value 1, all possible requests are allowed.
|r||Unraw: Restores the keyboard after an X crash or similar.|
|0||Changes console loglevel to 0 and so reduces error messages.|
|k||System attention key: Kills all processes on the current virtual console.|
|e||Terminate: Kills all processes except init on the current terminal.|
|i||Kill: Kills all processes except init, everywhere.|
|s||Sync: Attempts to sync all mounted filesystems. Outputs OK and Done when it's managed. This can reduce the chances of needing to run fsck at a later stage so it can be useful if you're having disk problems.|
|u||Umount: Attempts to remount all mounted filesystems read-only.|
|b||Reboot: immediately reboots the system without syncing or unmounting disks. Not a good idea unless in extremis! This may lead to data loss.|
|p||Dumps current registers and flags to the console.|
|m||Dumps current memory info to the console.|
If this doesn't work, check the documentation at /usr/share/doc/linux-doc-2.6.18/Documentation/sysrq.txt.gz for some suggestions (including checking the keycode being sent).
Article courtesy of ServerWatch.com
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: RHEL 6.7, BackBox Linux 4.3 and RoboLinux 8.1
- 2Linux Top 3: SLES 11 SP4, Chromixium OS 1.5 and Canonical Licensing
- 3Linux Top 3: VirtualBox 5, Point Linux 3.0 and OpenSUSE Leap 42.x
- 4Linux Top 3: Linux 4.2 rc1, 4MLinux 13 and antiX15
- 5Linux Top 3: Linux Mint Rafaela, OpenMandriva Lx 2014.2 and VectorLinux 7.1