1 |
On Thursday, September 04, 2014 09:01:41 AM Christian Kruse wrote: |
2 |
> Hi, |
3 |
> |
4 |
> At Wed, 3 Sep 2014 22:30:32 -0600, Joseph wrote: |
5 |
> > But they omitted the Boot partition. |
6 |
> > |
7 |
> > Device Start End Size Type |
8 |
> > /dev/sda1 2048 6143 2M BIOS boot partition |
9 |
> > /dev/sda2 6144 4200447 2G Linux swap |
10 |
> > /dev/sda3 4200448 117231374 53.9G Linux filesystem |
11 |
> > |
12 |
> > There is Bios Boot 2MB but no Boot partition where kernel is located. |
13 |
> |
14 |
> The 2M partition is the boot partition. But it is much to small, I've |
15 |
> been re-sizing it to 1G. That's more than enough for the initrd image, |
16 |
> grub and the kernel. |
17 |
> |
18 |
> By the way, keep in mind that if you plan to use suspend to disk you |
19 |
> will need 2x RAM disk space on swap in the worst case. |
20 |
|
21 |
No you don't. |
22 |
|
23 |
I have 16GB RAM in my laptop and my swap partition is 17GB. |
24 |
|
25 |
Just make sure you create a file like: |
26 |
*** |
27 |
$ cat /etc/local.d/suspend_image_size.start |
28 |
#!/bin/sh |
29 |
# |
30 |
echo 0 > /sys/power/image_size |
31 |
*** |
32 |
|
33 |
And make this executable. |
34 |
|
35 |
This fixes the problem I had that I couldn't suspend to disk when using |
36 |
more then half the memory. |
37 |
|
38 |
With this, I never have an issue with hibernate. |
39 |
|
40 |
-- |
41 |
Joost |