why ubuntu takes too long to startup after removing swap partition?

yesterday i decided to remove SWAP partition of my ubuntu 21.10 (which is dual booted with windows 11).

using GParted i removed swap partition.
now, ubuntu takes too long to boot.
it is installed on a ssd and before this operation it used to start in just some seconds but now it takes near one minutes to startup.

how can i find the reason and solve that?


Solution 1:

Your system may desperately be looking for the swap partition. Edit /etc/fstab and remove (or comment out, i.e., place a # in front of) the line that does announce your swap partition.

Deleting swap space may not have been the smartest move. You may want to create a swapfile instead. Currently, default Ubuntu installations set up a swap file instead of a dedicated swap partition.