• DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Contact Us

Connect with us!


LinkedInFacebookXInstagramYouTube

aws partneraws advanced partner
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy

SysRq – The not so known key

Smith Nevil

  • 5 min read
SysRq – The not so known key

Generating audio, please wait...

Lot of details about SysRq is written in the documentation available at https://www.kernel.org/doc/html/v4.11/admin-guide/sysrq.html . If you are a person who prefers the RTFM mode, please go ahead and read the above URL.

What if a linux system seems unresponsive to you? For many years, as with many novices, I used to do a power reset. The normal Ctrl + Alt + Delete or any other keyboard shortcuts won’t work. And depending on the state of file system, I may be faced with a fsck. However there is something called SysRq key (System Request key) which will help you to shutdown the system cleanly. You can see the SysRq written in the PrintScr key or could be Break key. Something you need to use the Fn key as well, like Fn+Alt+SysRQ+ “x”. For a physical console connection, pressing and releasing break and then pressing the Magic SysRQ key would work. i.e no Alt key required.

Magic SysRq key, is a deadly key when used (read misused). Itʼs a direct line to the kernel or in other words, interrupt. You can easily check whether SysRq is enabled or not with the command ‘cat /proc/sys/kernel/sysrqʼ. If disabled, enable SysRq using one of several methods. Usually pass 1 to the file /proc/sys/kernel/sysrq. To make it permanently, add kernel.sysrq =1 in the /etc/ sysctl.conf. However do note that the disabling or enabling of Magic SysRq keys is only referring to the ability to physically trigger them. You can trigger them also by passing the keys as below.

echo “b” > /proc/sysrq-trigger

While passing the key, please make sure that you understand what each “b”s and “c”s do. For example, if you do —> echo c > /proc/sysrq-trigger <— it would crash the linux kernel.

Here is the list of possible values in /proc/sys/kernel/sysrq:

  • 0 – disable sysrq completely
  • 1 – enable all functions of sysrq
  • >1 – bitmask of allowed sysrq functions asee below for detailed function
  • description):
  • 2 = 0x2 – enable control of console logging level
  • 4 = 0x4 – enable control of keyboard aSAK, unraw)
  • 8 = 0x8 – enable debugging dumps of processes etc.
  • 16 = 0x10 – enable sync command
  • 32 = 0x20 – enable remount read-only
  • 64 = 0x40 – enable signalling of processes aterm, kill, oom-kill)
  • 128 = 0x80 – allow reboot/poweroff
  • 256 = 0x100 – allow nicing of all RT tasks

The normal value of `/proc/sys/kernel/sysrq` is as below:

$ cat /proc/sys/kernel/sysrq
176

The command returned a value of 176.  A “0” value disables all the SysRQ function and “1” enables all the features and values above 1 enables specific ones. Here we have a value of 176 which is obtained as a sum of “128” (which allows reboot and poweroff) + “32” (ability to remount filesystems in read-only mode) + “16”, which enables sync command.

To shut down the system after a really bad kernel panic, do the following, in sequence:

Alt+SysRQ+e (sends TERM-signal, processes can shutdown properly)

Alt+SysRQ+i (for the processes that didn’t listen for the TERM signal, this is (kill -9 process)

Alt+SysRQ+s (sync or properly flush any data to disks)

Alt+SysRQ+u (a sync will be done when unmounting anyway)

Alt+SysRQ+b (reboot)

First, you should send the “e” command to SIGTERM all processes thus allowing the opportunity for graceful exits. Processes unable or unwilling to respond to a SIGTERM will need to be handled with the “i” command (SIGKILL ALL THE THINGS). Then, youʼll want to perform Alt+SysRq+s to “sync” or properly flush any data to disks. Next, Alt+SysRq+u will remount all disks as read only. Finally, Alt+SysRq+b will reboot the system. When it comes up, you will not need to perform any file system checking, and you can rest peacefully knowing that you gave every running process your best try at allowing it to close gracefully and write any data to disk consistently.

To perform this process, press and hold the Alt + SysRq key combination and – while holding the Alt and SysRq keys down. To remember this, remember BUSIER, and apply in reverse, like REISUB. You may not need R always. R puts the keyboard to raw mode.

Let us take care of your servers 24/7/365. Get rid of all the hassles of server management.You can contact us at any time. We are always happy to help you.

  • Sever management

Looking for AWS Experts?

We provide top-of-the-line custom AWS setup services tailored to your needs.

Acronis Backup Cloud on On-Premise Server

Acronis Backup Cloud on On-Premise Server
  • Backup management
  • Linux
logo

Automating AWS Infrastructure and services

Automating AWS Infrastructure and services
  • server
logo

cPanel: Find Duplicate Domains in Servers

cPanel: Find Duplicate Domains in Servers
  • cPanel
  • Sever management
logo

How to find DIMM errors and replace the faulty RAM ?

How to find DIMM errors and replace the faulty RAM ?
  • server
logo
SysRq – The not so known key

Posts by Smith Nevil

Smith is always ready to learn new technologies and explore new territories. His never-ending passion towards technological advancements, unyielding affinity to perfection and excitement in the exploration of new areas, help him to be on the top of everything he is involved with. He is currently working as System Engineer at SupportSages.