Ettevi Rosa

0 %
Ettevi Rosa
Senior Systems Engineer
  • Residence:
    United States
  • City:
    Tampa Bay, FL
  • DOB:
    September 19
English
Spanish
Linux (Red Hat & Debian)
Config (Ansible & Bash)
Systems Integration
Cloud & Virtualization
Containerization
Database Administration
Github
Python
  • Flexible
  • Resilient
  • Adaptive
  • Problem-Solver
  • Communication
  • Attention to Detail
  • Team Collaboration

LINUX: Remotely Force Immediate Reboot

February 27, 2025

Let’s say you don’t have physically access to a system, and your #sudo reboot or #sudo shutdown -r isn’t working. As long as you have a running session, you can force an immediate reboot remotely via the kernel and using the magic SysRq key.

The magic_SysRq_key provides a way to send a low-level instruction directly to the kernel using /proc.
1. Enable the magic SysRq option by completing the following:
1a. echo 1 > /proc/sys/kernel/sysrq
2. Initiate the reboot. Running this is the equivalent of a forces a hard reset — no shutdown.
2a. echo b > /proc/sysrq-trigger

References:

https://grok.com

https://www.recitalsoftware.com/blogs/17-howto-force-a-immediate-reboot-of-a-remote-linux-machine


Posted in TechnologyTags:
Write a comment