Failed to stat resume device

So i had a swap partition in my drive, i thought i would replace it for a swap file so i deleted it using gparted and tried to make a new swapfile but it didnt work, so i made a new swap partition using gparted and enabled swapon. Then i restarted. Once it started booting it was stuck there for 20 seconds even though my avg boot time is about 5 seconds when i pressed esc to exit plymouth, it said the following -

failed to stat resume device /dev/disk/by-uuid/72643ed0-dd68-4045-b69e-fd56acf28e15.

according to journald -

dev-disk-by\x2duuid.device: Job dev-disk-by\x2duuid.device/start failed with result 'timeout'.
Jun 22 17:41:47 hplaptop systemd[1]: dev-disk-by\x2duuid.swap: Job dev-disk-by\x2duuid.swap/start failed with result 'dependency'.
Jun 22 17:41:47 hplaptop systemd[1]: Dependency failed for /dev/disk/by-uuid.
Jun 22 17:41:47 hplaptop systemd[1]: Timed out waiting for device /dev/disk/by-uuid.
Jun 22 17:41:47 hplaptop systemd[1]: dev-disk-by\x2duuid.device: Job dev-disk-by\x2duuid.device/start timed out.
Jun 22 17:41:47 hplaptop systemd[1]: dev-disk-by\x2duuid-72643ed0\x2ddd68\x2d4045\x2db69e\x2dfd56acf28e15.device: Job dev-disk-by\x2duuid-72643ed0\x2ddd68\x2d4045\x2d>
Jun 22 17:41:47 hplaptop systemd[1]: dev-disk-by\x2duuid-72643ed0\x2ddd68\x2d4045\x2db69e\x2dfd56acf28e15.swap: Job dev-disk-by\x2duuid-72643ed0\x2ddd68\x2d4045\x2db6>
Jun 22 17:41:47 hplaptop systemd[1]: swap.target: Job swap.target/start failed with result 'dependency'.
Jun 22 17:41:47 hplaptop systemd[1]: Dependency failed for Swaps.
Jun 22 17:41:47 hplaptop systemd[1]: Dependency failed for /dev/disk/by-uuid/72643ed0-dd68-4045-b69e-fd56acf28e15.
Jun 22 17:41:47 hplaptop systemd[1]: Timed out waiting for device /dev/disk/by-uuid/72643ed0-dd68-4045-b69e-fd56acf28e15.
Jun 22 17:41:47 hplaptop systemd[1]: dev-disk-by\x2duuid-72643ed0\x2ddd68\x2d4045\x2db69e\x2dfd56acf28e15.device:2db69e\x2dfd56acf28e15.device: Job dev-disk-by\x2duuid-72643ed0\x2ddd68\x2d4045\x2db69e\x2dfd56acf28e15.device/start timed out.

i tried fixing /etc/fstab - nothing happened
i tried mkinitcpio - nothing happened

so i now have to wait 20 seconds or something for it to boot up

please help me fix this

edit - so i rechecked /etc/fstab and the device was still there so i removed it and i dont have to wait 20 seconds but when i press esc the error is still displayed

You should also check /etc/default/grub and change the UUID of the resume= parameter to the new UUID. Then, run… :point_down:

sudo update-grub
2 Likes

You changed the UUID in /etc/fstab - That’s good.

However, it seems you forgot to change the resume device entry in /etc/default/grub; specifically, the following line. Note that the entry may differ on your machine, but the important part is that the UUID should match that of the swap partition in /etc/fstab.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX udev.log_priority=3"

Regards.

Thanks, it seems like i had forgotten to do this part.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.