When the correct solution REISUB linux host card after death

When the correct solution REISUB linux host card after death

When we use the windows system, the computer sometimes blue screen, automatically restart, and sometimes even after the computer stuck us directly press the power button to force the computer to shut down but great harm this operation on the computer, sometimes even lead to loss of data, disk corruption, system files and other problems, so when the computer card dead, we must be calm and handled properly. Especially when we use linux system, should pay more attention.
Depending on the computer stuck state, we are generally two methods.
1. The computer may be switched to another terminal window
this case, pressing Ctrl + Alt + (f1 ~ f6 ) directly handover to another TTY, using the free command to view the computer memory usage, all use the sync command to the buffer memory is zone file is written to disk; then use the top command, view the current CPU and memory larger process, use the kill command to kill + PID can lead to seizure of the computer program process, and then switching back to the original tty, see are stuck state has been resolved, if still not resolved, just tty can be used to reboot or shutdown -r now command to restart the computer.

2. Computer stuck, the mouse can not move, can not switch to another TTY, Sys_Rq this case is necessary to use, which is a system request, the specific operation is as follows:

- Hold down Alt + SysRq key (usually the Print Screen key)
- then release SysRq key, do not release the Alt key, followed by r, e, i, s, u, b healthy, safe at this time will restart

Introduce the principle:
SysRq is a Linux system provides "Magi System Request Key", it allows us to help us recover and debug the system when the system fails, as long as your computer can respond keys of the keyboard, SysRq can be used.

R: the keyboard setting mode AscII Code
E: To all processes except init signal transmission Sigterm
I: Sigkill transmitting a signal to all processes except the init
S: synchronizing disk buffers, corresponding to Sync
the U-: remount only reading mode
B: reboot the system immediately

Published 22 original articles · won praise 1 · views 1447

Guess you like

Origin blog.csdn.net/weixin_44803446/article/details/103438502