Score:0

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

ua flag

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?

waltinator avatar
it flag
Did you remove swap from `/etc/fstab`? Does `systemd-analyze blame` inform? Look at the boot log with `sudo journalctl -b 0`. Read `man fstab systemd-analyze journalctl`.
Score:3
cn flag

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.

ali HOZA avatar
ua flag
this solved the problem. thx.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.