Gentoo Archives: gentoo-user

From: Joshua Murphy <poisonbl@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Screwed up swap while trying to get hibernate working; help
Date: Fri, 31 Oct 2008 17:52:02
Message-Id: c30988c30810311051w767a6789ue7e06fc2af262581@mail.gmail.com
In Reply to: [gentoo-user] Screwed up swap while trying to get hibernate working; help by Walter Dnes
1 On Thu, Oct 30, 2008 at 11:54 PM, Walter Dnes <waltdnes@××××××××.org> wrote:
2 > I ran hibernate once unsuccessfully. I forgot to put "resume=" into
3 > my lilo.conf (oops). I finally did that, but now, hiberate gets to...
4 >
5 > hibernate: Running /usr/sbin/s2disk ...
6 > s2disk: Could not use the resume device (try swapon -a). Reason: No such device
7 >
8 > ...and backs out gracefully. According to "fdisk -l", swap is there...
9 >
10 >
11 > [d530][root][~] fdisk -l
12 >
13 > Disk /dev/sda: 500.1 GB, 500107862016 bytes
14 > 255 heads, 63 sectors/track, 60801 cylinders
15 > Units = cylinders of 16065 * 512 = 8225280 bytes
16 > Disk identifier: 0xd0000000
17 >
18 > Device Boot Start End Blocks Id System
19 > /dev/sda1 1 60801 488384001 5 Extended
20 > /dev/sda5 1 62 497952 83 Linux
21 > /dev/sda6 63 549 3911796 82 Linux swap / Solaris
22 > /dev/sda7 550 60801 483974158+ 83 Linux
23 >
24 > ...but according to swapon, it's not...
25 >
26 >
27 > [d530][root][~] swapon -a
28 > swapon: /dev/sda6: Invalid argument
29 >
30 >
31 > What did I did? And how do I straighten it out?
32
33 Umm... if you're hibernating to the same swap partition you're using
34 when the system's live... I'm pretty sure you can't do that... even if
35 everything does manage to fit, having sort out what belongs back in
36 ram and what doesn't ... it's not a very sane thing to expect the
37 kernel+userspace tools there to do. If I recall from last time I
38 considered setting it up on my system, software hibernate needs an
39 otherwise unused swap partition that's just a little bigger than the
40 amount of physical ram in your system.
41
42 --
43 Poison [BLX]
44 Joshua M. Murphy

Replies

Subject Author
Re: [gentoo-user] Screwed up swap while trying to get hibernate working; help Walter Dnes <waltdnes@××××××××.org>
Re: [gentoo-user] Screwed up swap while trying to get hibernate working; help Iain Buchanan <iaindb@××××××××××××.au>