1 |
On Wed, Oct 29, 2008 at 12:27:39PM +0100, Pint?r Tibor wrote |
2 |
>> [d530][root][~] emerge -pv s2disk |
3 |
>> These are the packages that would be merged, in order: |
4 |
>> Calculating dependencies | |
5 |
>> emerge: there are no ebuilds to satisfy "s2disk". |
6 |
>> Now what? |
7 |
> |
8 |
> emerge -pv suspend |
9 |
|
10 |
First, I had to keyword "=sys-power/suspend-0.8 ~x86" in |
11 |
package.keywords. I set up suspend.conf like so... |
12 |
|
13 |
snapshot device = /dev/snapshot |
14 |
resume device = /dev/sda6 |
15 |
#image size = 350000000 |
16 |
#suspend loglevel = 2 |
17 |
compute checksum = y |
18 |
#compress = y |
19 |
#encrypt = y |
20 |
#early writeout = y |
21 |
#splash = y |
22 |
|
23 |
Here is my disk layout |
24 |
|
25 |
[d530][root][~] fdisk -l |
26 |
|
27 |
Disk /dev/sda: 500.1 GB, 500107862016 bytes |
28 |
255 heads, 63 sectors/track, 60801 cylinders |
29 |
Units = cylinders of 16065 * 512 = 8225280 bytes |
30 |
Disk identifier: 0xd0000000 |
31 |
|
32 |
Device Boot Start End Blocks Id System |
33 |
/dev/sda1 1 60801 488384001 5 Extended |
34 |
/dev/sda5 1 62 497952 83 Linux |
35 |
/dev/sda6 63 549 3911796 82 Linux swap / Solaris |
36 |
/dev/sda7 550 60801 483974158+ 83 Linux |
37 |
|
38 |
No, it's not LVM. / is half-a-gig, followed by swap, followed by the |
39 |
rest of the drive. I use multiple bindmounts to make things look |
40 |
normal. When I tried "sync", followed by "hibernate" it shut down, but |
41 |
when I powered back up with the power button, here's what happened... |
42 |
|
43 |
- on the reboot, it complained about the superblock "last access" being |
44 |
in the future (the half-gig partition is ext2) |
45 |
|
46 |
- it "fixed" the access date |
47 |
|
48 |
- complained that the hard drive was "dirty", i.e. not properly shut |
49 |
down |
50 |
|
51 |
- rebooted |
52 |
|
53 |
- played back a whole bunch of disk transactions on /dev/sda7 |
54 |
(reiserfs). Did i mention I ran "sync" before "hibernate"? |
55 |
|
56 |
- it did the rest of the ordinary boot process. |
57 |
|
58 |
- it did *NOT* restore anything from the previous session. Do I have to |
59 |
explicitly set something to tell it to restore a previous session? |
60 |
Gentoo-wiki is stll down. |
61 |
|
62 |
-- |
63 |
Walter Dnes <waltdnes@××××××××.org> |