Rootserver Sponsor

webtropia"

Donations

Please support your operating system's further development:

donate"

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
LatOffline
Post subject: Can't SysRq+ RSEIUB  PostPosted: 06.02.2016, 02:25



Joined: 2010-09-19
Posts: 205

Status: Offline
Hello everyone. Is there a reason why CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE is 0x0 ?
      Code:
$ zcat /proc/config.gz |grep CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE
CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x0

$ uname -r
4.4.0-1.slh.1-aptosid-amd64


I crashed my system two times, and I couldn't use SysRq R, S, E, I, U, B to restart it.
While both crashes were my fault, I couldn't find a proper wait to restart. I had no choice than power reset.

After doing a search I found in https://www.kernel.org/doc/Documentation/sysrq.txt that the kernel had it disabled and also learned that I could re-enable it with
      Code:
echo "number" >/proc/sys/kernel/sysrq


Is there a better solution to have this enabled without building my own kernel, nor putting that echo code in a /etc/bashrc ? or maybe a GRUB command for the kernel?

Thank you
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: Can  PostPosted: 08.02.2016, 02:37



Joined: 2010-08-25
Posts: 962

Status: Offline
It's indeed intentionally disabled and can be controlled via /proc/sys/kernel/sysrq, stuffing the call into /etc/rc.local can change the desired behaviour permanently (at least beyond the point of rc.local having been started).
 
 View user's profile Send private message  
Reply with quote Back to top
LatOffline
Post subject: RE: Can  PostPosted: 09.02.2016, 02:22



Joined: 2010-09-19
Posts: 205

Status: Offline
Thank you
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio