0

My Debian Stretch system takes nearly a minute to boot up. It usually takes about 15 seconds.

My error:

Gave up waiting for suspend/resume device
fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/sda1
fsck exited with status code 8

Note: I migrated my physical Debian box to Virtualbox. I did not have these error on the physical machine and it booted very quickly.

2

After much googling, I got the answer that fixed this frustrating error. It has to do with removing the swap partition. I had a swap partition on the physical machine, but I do not on the virtualized instance.

Here are the steps that successfully fixed my problem:

  • Remove swap entry from /proc/swaps
  • Execute sudo swapoff -a
  • Remove swap entry from /etc/fstab
  • Execute sudo systemctl mask dev-sda.swap (Replace dev-sdX.swap with your correct device)
  • Remove swap entry from /etc/initramfs-tools/conf.d/resume (I emptied this file, but didn't delete it.)
  • Execute sudo update-initramfs -u
  • Reboot

Sources:

Now I'm booting as fast as I should be!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.