Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751126AbVJOH4c (ORCPT ); Sat, 15 Oct 2005 03:56:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751129AbVJOH4c (ORCPT ); Sat, 15 Oct 2005 03:56:32 -0400 Received: from nproxy.gmail.com ([64.233.182.199]:3872 "EHLO nproxy.gmail.com") by vger.kernel.org with ESMTP id S1751126AbVJOH4c convert rfc822-to-8bit (ORCPT ); Sat, 15 Oct 2005 03:56:32 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=T7OZKnExT6tzHHRoUPCkxQQ1d6kPPvDgyrtkguxwKM3/vSNBVUVU8iIQYMfMqne/w0FgLBKkHvidgQuzWEm7/7RWSb+WtEs46PytlKJ3i0vn+s1geNLs2jIkylUUQlAgm87576adzsSqPpyhiNucp4WkJk3CNCTJmm81bPwaqtE= Message-ID: <2cd57c900510150056j2a6af6e5gf93ce9fa4ef16aac@mail.gmail.com> Date: Sat, 15 Oct 2005 15:56:31 +0800 From: Coywolf Qi Hunt To: Anton Altaparmakov Subject: Re: Forcing an immediate reboot Cc: Lee Revell , Marc Perkel , linux-kernel@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <43505F86.1050701@perkel.com> <1129341050.23895.12.camel@mindpipe> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1186 Lines: 33 On 10/15/05, Anton Altaparmakov wrote: > On Fri, 14 Oct 2005, Lee Revell wrote: > > On Fri, 2005-10-14 at 18:46 -0700, Marc Perkel wrote: > > > Is there any way to force an immediate reboot as if to push the reset > > > button in software? Got a remote server that i need to reboot and > > > shutdown isn't working. > > > > If it has Oopsed, and the "reboot" command does not work, then all bets > > are off - kernel memory has probably been corrupted. > > > > Get one of those powerstrips that you can telnet into and power cycle > > things remotely. > > If it has sysrq compiled in as root just do: > > echo s > /proc/sysrq-trigger > echo u > /proc/sysre-trigger > echo s > /proc/sysrq-trigger What the purpose of the second sync? > echo b > /proc/sysrq-trigger > > This will "sync", "umount/remount read-only", "sync", "immediate hardware > reboot". Should always work... -- Coywolf Qi Hunt http://sosdg.org/~coywolf/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/