If you are using initramfs-tools (most people will be) to generate your initrd then you probably need to add/edit this file:
Code: Select all
/etc/initramfs-tools/conf.d/resume
Normally when initramfs-tools is installed it will generate this file itself.
On my system the contents look like this:
I'm using full-disk encryption and LVM. I imagine you are not using those, so you probably want something like this:
If your swap device has a label, you probably want something like this instead:
If your swap device has a UUID, you probably want something like this:
Code: Select all
RESUME=UUID=3c7059e0-d373-11df-bd3b-0800200c9a66
You can find these labels and UUIDs by looking in /dev/disk/by-label/ and /dev/disk/by-uuid. The advantage of using labels or UUIDs is that they do not change when adding/removing disks to/from your system. Of course if you move to a new disk with a new filesystem on it, then you will need to reconfigure the file.
Once you have updated your resume device, then you will need to run the following as root: