From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KvyAD-0007Pi-VS for garchives@archives.gentoo.org; Fri, 31 Oct 2008 17:52:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3E665E03DD; Fri, 31 Oct 2008 17:52:00 +0000 (UTC) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by pigeon.gentoo.org (Postfix) with ESMTP id 0CA26E03DD for ; Fri, 31 Oct 2008 17:51:59 +0000 (UTC) Received: by wa-out-1112.google.com with SMTP id v33so710368wah.2 for ; Fri, 31 Oct 2008 10:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=tU2P8vdQLba6QyvyuDY51QoAbuiQFDt+d2wFDOraH6k=; b=sSvVGc9mfp7GjsJjya71nxHMXWChlcnvqShcrjJVQL7Kh7oPxBqmB7c0RAgJtTSPoP d0dOwqbk9IJvdqfrMLjoPv467Qj/jszIsDJfhwmucMws6pnfw7D3YK3wF6HsyyafSvNw P/I3P4bsvi1iSXTJ1/2do6+VXOvcLLfMRZ9zA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=vXviHIFcxfldg7vPJta9sO1hRoTRNFF1tRxFe1+dLsHPI9W8UOxc49Yy9n7tmpdyvM cMmn7uHalNUOwDduQNzcZgOR6Hs9GmNSTv91uhzxRZ0eZuNu+qQohIUCmpbZ9a1/OpZf IpbX3ZiPJVR8liADNvZofa8xbeIWDmNhzItmI= Received: by 10.115.14.1 with SMTP id r1mr10220989wai.139.1225475518188; Fri, 31 Oct 2008 10:51:58 -0700 (PDT) Received: by 10.114.145.19 with HTTP; Fri, 31 Oct 2008 10:51:58 -0700 (PDT) Message-ID: Date: Fri, 31 Oct 2008 13:51:58 -0400 From: "Joshua Murphy" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Screwed up swap while trying to get hibernate working; help In-Reply-To: <20081031035456.GA4974@waltdnes.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081031035456.GA4974@waltdnes.org> X-Archives-Salt: 2745e690-ee08-4675-b3bf-204b39bfed3b X-Archives-Hash: db869c14384aa830216decc2d5312ed8 On Thu, Oct 30, 2008 at 11:54 PM, Walter Dnes wrote: > I ran hibernate once unsuccessfully. I forgot to put "resume=" into > my lilo.conf (oops). I finally did that, but now, hiberate gets to... > > hibernate: Running /usr/sbin/s2disk ... > s2disk: Could not use the resume device (try swapon -a). Reason: No such device > > ...and backs out gracefully. According to "fdisk -l", swap is there... > > > [d530][root][~] fdisk -l > > Disk /dev/sda: 500.1 GB, 500107862016 bytes > 255 heads, 63 sectors/track, 60801 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > Disk identifier: 0xd0000000 > > Device Boot Start End Blocks Id System > /dev/sda1 1 60801 488384001 5 Extended > /dev/sda5 1 62 497952 83 Linux > /dev/sda6 63 549 3911796 82 Linux swap / Solaris > /dev/sda7 550 60801 483974158+ 83 Linux > > ...but according to swapon, it's not... > > > [d530][root][~] swapon -a > swapon: /dev/sda6: Invalid argument > > > What did I did? And how do I straighten it out? Umm... if you're hibernating to the same swap partition you're using when the system's live... I'm pretty sure you can't do that... even if everything does manage to fit, having sort out what belongs back in ram and what doesn't ... it's not a very sane thing to expect the kernel+userspace tools there to do. If I recall from last time I considered setting it up on my system, software hibernate needs an otherwise unused swap partition that's just a little bigger than the amount of physical ram in your system. -- Poison [BLX] Joshua M. Murphy