Re: Can't hibernate Toshiba laptop

Marvin Renich <[email protected]>
Newsgroups gmane.linux.debian.user.laptop
Message-ID <[email protected]>
[I'm subscribed; please don't CC me.]

> 2017-09-26 19:20 GMT-04:00 bartender <[email protected]>:
> > 1 Gb swap partition since I have 8 Gb physical RAM available
> >
> > When you invoke hibernate your system tries to stuff contents of your 8GB
> > RAM into your 1GB swap partition.  Do you see how that works?
> >
> > I doesn't but at least you get an error message.  Backup everything then
> > reinstall with 8GB swap partition.

* Leonel Salazar <[email protected]> [170926 19:25]:
> Hmmm... I was just reading about that this evening, I think that might be
> the real problem... maybe the others suffering this issue have similar
> situation... I'll try to have more swap available and test again...

You don't need to backup and reinstall.  Read the man page for mkswap;
you can create a swap file rather than a swap partition.  I.e.

# fallocate --length 12G /swap
# mkswap /swap

will create a 12GiB file, /swap, that can be used as a swap file.

In order for it to be used by hibernate, I think it must be in
/etc/fstab.  You can probably create it, edit fstab, turn on the swap
file with swapon, and then test hibernate without first rebooting.

I don't know whether hibernate will use both swap files, choose the
larger, or choose the first (or something else).  It might be a good
idea to comment out the fstab entry for the 1G swap partition and turn
it off with swapoff before attempting to hibernate.

HTH...Marvin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.