Could not stat the resume device file

I've copied one disk content to another disk and now when system boots I get this:

resume: libgcrypt version: 1.5.0
resume: Could not stat the resume device file '/dev/sda6' please type in full path name to try again or press ENTER to boot the system

The problem is now i don't have /dev/sda6. I removed this row from fstab, restarted system but I still get this message.


Solution 1:

In addition to fstab, you also need to remove the disk from the boot process.

There are two things to check:

  • uswsusp.conf - if there's any line like resume /dev/sda7 there, comment it out.

  • initramfs - update it with update-initramfs -u -k all