Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Weird hibernate problem
Date: Tue, 11 Sep 2012 17:05:35
Message-Id: CADPrc82RWWYFCOAdWjLHxcMrc+3BzchC61L3hsa1_4zzaMvjEw@mail.gmail.com
In Reply to: Re: [gentoo-user] Weird hibernate problem by Timur Aydin
1 On Tue, Sep 11, 2012 at 11:52 AM, Timur Aydin <ta@××××××.org> wrote:
2 > On 09/11/12 19:08, Canek Peláez Valdés wrote:
3 >> Mmmh. You didn't set CONFIG_PM_STD_PARTITION:
4 >>
5 >
6 > I specified the partition on the kernel command line:
7 >
8 > ta@bonsai ~/uclinux_2011R1/db1/uclinux-dist $ cat /boot/grub/grub.conf
9 > timeout 30
10 > default 0
11 > splashimage=(hd0,0)/boot/grub/splash.xpm.gz
12 >
13 > title Gentoo
14 > root (hd0,0)
15 > kernel /vmlinuz root=/dev/sda3 resume=/dev/sda6
16 >
17 > title Gentoo.old
18 > root (hd0,0)
19 > kernel /vmlinuz.old root=/dev/sda3 resume=/dev/sda6
20
21 That is for resuming; not for actually hibernating.
22
23 >> CONFIG_PM_STD_PARTITION=""
24 >>
25 >> Set it to /dev/sda6, and see if it helps. Also, can we have a look at
26 >> yout /etc/fstab file?
27 >
28 > Here is /etc/fstab:
29 >
30 > # <fs> <mountpoint> <type> <opts>
31 > <dump/pass>
32 >
33 > # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
34 > /dev/sda1 /boot ext2 noatime 1 2
35 > /dev/sda2 /home ext3 noatime 0 2
36 > /dev/sda3 / ext3 noatime 0 1
37 > /dev/sda5 none swap sw 0 0
38 > /dev/sda7 /backup ext3 noatime 0 2
39 > /dev/cdrom /mnt/cdrom auto noauto,ro 0 0
40 >
41 > I want to attach the ps ax output before and after hibernate, but I am
42 > concerned about filesystem corruption with all those kworker threads
43 > lurking around...
44
45 I hibernate my desktop all the time. I only have a swap partition, and
46 it's both set in CONFIG_PM_STD_PARTITION and in my /etc/fstab:
47
48 CONFIG_PM_STD_PARTITION="/dev/sdc1"
49
50 # <fs> <mountpoint> <type> <opts> <dump/pass>
51 LABEL=Gentoo / ext4 noatime 0 1
52 LABEL=Home /home ext4 noatime,auto 0 2
53 LABEL=Swap none swap sw 0 0
54 shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
55 tmpfs /tmp tmpfs defaults,nosuid,size=100% 0 0
56
57 # swaplabel /dev/sdc1
58 LABEL: Swap
59 UUID: 28a9478e-8b53-4591-8fec-64512eeadf6c
60
61 Regards.
62 --
63 Canek Peláez Valdés
64 Posgrado en Ciencia e Ingeniería de la Computación
65 Universidad Nacional Autónoma de México