From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Seyfried Subject: Re: [linux-pm] Dangers of touching disk between suspend and resume Date: Mon, 4 Dec 2006 09:10:49 +0100 Message-ID: <20061204081049.GA12174@suse.de> References: <1164727307.26898.12.camel@systems03.lan.brontes3d.com> <20061128163757.GM14640@suse.de> <1164916843.6031.9.camel@localhost.localdomain> <20061130201311.GK2227@suse.de> <1164925067.6031.29.camel@localhost.localdomain> <20061201073956.GB18690@suse.de> <1165034513.3143.2.camel@nigel.suspend2.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1165034513.3143.2.camel@nigel.suspend2.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: suspend-devel-bounces@lists.sourceforge.net Errors-To: suspend-devel-bounces@lists.sourceforge.net To: Nigel Cunningham Cc: suspend-devel@lists.sourceforge.net, linux-pm@osdl.org, Peter Jones List-Id: linux-pm@vger.kernel.org On Sat, Dec 02, 2006 at 03:41:52PM +1100, Nigel Cunningham wrote: > Hi. > = > On Fri, 2006-12-01 at 08:39 +0100, Stefan Seyfried wrote: > > So if somebody submits a patch that implements a "reset_signature" prog= ram, > > i'll include that in the suspend package. > = > I don't know if you care (you might not want to support Suspend2), but Wrong, if i was to write such a "restore_signature" program, i'd want it to support all known ways of screwing up your SWAP partition :-) > for Suspend2 enabled kernels, you can just do: > = > [ -f /sys/power/suspend2/image_exists ] && echo 0 > /sys/power/suspend2/i= mage_exists > = > You can cat the file to find out if an image exists, if you prefer (eg > from an initrd/ramfs). Return values are: But you need a suspend2-enabled kernel. For rescue purposes ("engineer on-site to repair the hardware, diagnosing w= ith a rescue CD first" scenario), a standalone binary that resets the signature= is probably better. But this engineer should also know if he depends on the UUID of the swap = partition to find it. If he does not, he can simply do a "mkswap" to reset the signature. Best regards, Stefan -- = Stefan Seyfried QA / R&D Team Mobile Devices | "Any ideas, John?" SUSE LINUX Products GmbH, N=FCrnberg | "Well, surrounding them's out." = ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE= VDEV