Do I need a swap *partition* to use hibernation?

Robert Heller heller at deepsoft.com
Sun Apr 19 11:54:01 UTC 2020


At Sun, 19 Apr 2020 08:46:05 +0200 bo.berglund at gmail.com, "Ubuntu user technical support,  not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:

> 
> I am repurposing a 9 year old HP Elitebook 8440w laptop as a Ubuntu
> development machine. It has 8GB of RAM.
> 
> During this configuration I have ran across suspend/hibernation
> problems.
> To enable hibernation there seems to be a number of steps to take and
> one I cannot wrap my head around is *where* hibernate data are stuffed
> on the disk?

The hibernation data is generally stored in the swap partition.

> 
> It seems like it will be on the swap partition, but my Ubuntu 18.04
> LTS installation did not create such a partition and when I look on
> the net most often swap seems to equal a *file* placed somewhere in
> the regular file system...
> 
> I have about 30 GB of free unallocated space on my 250 GB SSD and
> would like to know if it should be used as a swap partition for
> storing the hibernate data?
> 
> If so exactly how does one create a swap partition using Gparted?
> 

Like any other partition, except it is of type "Linux Swap"  and you use 
mkswap to create the "file system".  You won't need 30 GB.  8GB *should* be 
enough, depending on how much you use the swap under normal use.  If you 
regularly dip well into swap space under "normal" usage, you should make the 
swap partition larger.

> 

-- 
Robert Heller             -- 978-544-6933 Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                                                                                                             




More information about the ubuntu-users mailing list