linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Glynn Clements <glynn@gclements.plus.com>
To: chuck@gelm.net
Cc: "Kevin J. Cummings" <cummings@kjchome.homeip.net>,
	linux-admin <linux-admin@vger.kernel.org>
Subject: Re: forcing a reboot
Date: Tue, 2 Nov 2004 23:58:07 +0000	[thread overview]
Message-ID: <16776.7951.15840.451733@cerise.gclements.plus.com> (raw)
In-Reply-To: <41881615.5050305@gelm.net>


chuck gelm wrote:

> >> I do not have a 'sysrq'.
> >
> >
> > It is usually:  ALT + Print Scrn
> >
> >> I am using Slackware v9.1, kernel 2.4.22.
> >> Is 'sysrq (Magic Sysrq Key in the Menu Kernel hacking)'
> >> distribution specific.
> >> grep -i sysrq /usr/src/linux/.config returns 'null'.
> >> ?
> >>
> >> Anyhow, I use
> >> 'halt'
> >> to shut my systems down in a hurry. 
> >
> Hi, Kevin:
> 
> "ALT + Print Screen"
> 
>  does nothing on three of my linux o/s computers.

1. You need to enable the feature with e.g.:

	echo 1 > /proc/sys/kernel/sysrq

If that file doesn't exist, the kernel was built without SysRq support
([CONFIG_]MAGIC_SYSRQ).

2. You need to use Alt+PrtSc+<key>, where <key> is one of those listed
in /usr/src/linux/Documentation/sysrq.txt:

'r'     - Turns off keyboard raw mode and sets it to XLATE.

'k'     - Secure Access Key (SAK) Kills all programs on the current virtual
          console. NOTE: See important comments below in SAK section.

'b'     - Will immediately reboot the system without syncing or unmounting
          your disks.

'o'     - Will shut your system off (if configured and supported).

's'     - Will attempt to sync all mounted filesystems.

'u'     - Will attempt to remount all mounted filesystems read-only.

'p'     - Will dump the current registers and flags to your console.

't'     - Will dump a list of current tasks and their information to your
          console.

'm'     - Will dump current memory info to your console.

'v'	- Dumps Voyager SMP processor info to your console.

'0'-'9' - Sets the console log level, controlling which kernel messages
          will be printed to your console. ('0', for example would make
          it so that only emergency messages like PANICs or OOPSes would
          make it to your console.)

'e'     - Send a SIGTERM to all processes, except for init.

'i'     - Send a SIGKILL to all processes, except for init.

'l'     - Send a SIGKILL to all processes, INCLUDING init. (Your system
          will be non-functional after this.)

'h'     - Will display help ( actually any other key than those listed
          above will display help. but 'h' is easy to remember :-)

-- 
Glynn Clements <glynn@gclements.plus.com>

  reply	other threads:[~2004-11-02 23:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-22 10:29 forcing a reboot urgrue
2004-10-22 10:45 ` Adrian C.
2004-10-22 13:21   ` Andreas Unterkircher
2004-11-01 22:40     ` chuck gelm
2004-11-01 23:16       ` Kevin J. Cummings
2004-11-02 23:19         ` chuck gelm
2004-11-02 23:58           ` Glynn Clements [this message]
2004-11-03  0:03           ` Thornton Prime
2004-10-24 15:45   ` Quota setting Edward Parrilla
2004-10-22 13:08 ` forcing a reboot Thornton Prime
  -- strict thread matches above, loose matches on Subject: below --
2004-11-01 19:10 Mraz, Scott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16776.7951.15840.451733@cerise.gclements.plus.com \
    --to=glynn@gclements.plus.com \
    --cc=chuck@gelm.net \
    --cc=cummings@kjchome.homeip.net \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).