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?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

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.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply