Skip to content

Instantly share code, notes, and snippets.

@ekawahyu
Created April 23, 2025 18:48
Show Gist options
  • Save ekawahyu/aac81591b1fb39f2d68f800858184bc1 to your computer and use it in GitHub Desktop.
Save ekawahyu/aac81591b1fb39f2d68f800858184bc1 to your computer and use it in GitHub Desktop.
The fix for "Gave up waiting for suspend/resume device" on Debian 12

For some reason, when the swap partition UUID changes, Debian takes much longer time to boot due to swap partition UUID mismatch in both /etc/fstab and /etc/initramfs-tools/conf.d/resume. This can happen when swap partition gets reformatted and assigned with new UUID.

Here is how to fix it:

  1. Get into root:
$ su
$ export PATH=/usr/sbin:/sbin:$PATH
  1. Get swap partition UUID:
$ blkid grep swap
/dev/sdaX UUID="..." TYPE="swap" PARTUUID="..."
  1. Compare the swap parition UUID above with the one in /etc/fstab:
$ cat /etc/fstab | grep swap
UUID=... none swap sw 0 0
  1. If swap partition UUID is not the same, then fix it.
  2. Compare the swap partition UUID with the one in /etc/initramfs-tools/conf.d/resume:
$ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=...
  1. If swap parition UUID is not the same, then fix it. Otherwise, skip to (8).
  2. Update initramfs:
update-initramfs -u
  1. Done, reboot machine. By now, Debian should be able to boot normally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment