Here follows a quick solution (tested in Debian & Ubuntu).
Assume you've created a new swap partition and listed it in
/etc/fstab
:user@machine:~$ cat /etc/fstab | grep swap
UUID=12345678-12ab-cd34-5678-445566778800 none swap sw 0 0
blkid
command:user@machine:~$ sudo blkid | grep swap
[sudo] password for user:
/dev/sda8: UUID="12345678-12ab-cd34-5678-445566778800" TYPE="swap"
resume
file to match the UUID of swap partition.user@machine:~$ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=12345678-0000-0000-0000-123456789012
$ sudo nano /etc/initramfs-tools/conf.d/resume
$ sudoedit /etc/initramfs-tools/conf.d/resume
$ gksu gedit /etc/initramfs-tools/conf.d/resume
'initrd.img'
):$ sudo update-initramfs -u
resume=/dev/sda8
(where /dev/sda8
is a hibernate / swap partition), but usually there's no reason to do that (except the urgent manual restoring of the badly hibernated session, at the boot time).References:
No comments:
Post a Comment