add more swap space for hibernation (Debian)

Опубликовано: 23 Июль 2026
на канале: LineNumber0
828
2

-OS : Debian 7.8 GNU/Linux, Gnome3 desktop (fallback experience).
GTK+ theme : Albatross; Icon theme : NouveGnome



Steps to add more space or swap partitions to your Debian based GNU/Linux OS for hibernate function

(suspend to disk mode), your system cannot

hibernate after a big RAM size session if you

haven't enough swap space.


1)- Use Gparted to create a new swap partition on another disk or on the same disk;

2)- after that, copy the UUID serial of the newly created swap partition;

3)- Go to your terminal type :

sudo gedit /etc/fstab

to add UUID serial copied to the filesystem table

4)-Type in the same terminal :

sudo gedit /etc/initramfs-tools/conf.d/resume :

This command opens the "resume" file with Gedit or change it with your favorite text editor and paste the serial on the second line, starting with "RESUME=UUID= ".

5)-To finish type :

sudo update-initramfs -u -v -k all

To update the initial RAM filesystem during Linux startup, and reboot +Enter to reboot your system immediately.