Score:0

How to convert freespace to swap memory

cn flag

I had created a swap space of 65 but some how during re-installation of Ubuntu it got converted to free space. Now i have 2 GB swap memory. I want to convert the free space to swap space.

enter image description here

ChanganAuto avatar
us flag
By default Ubuntu uses swapfile instead of swap partition now. If you wanted to have a swap partition (BTW, 65GB in an insane waste of space) you'd have to use "something else" during the installation and create/select the partitions accordingly.
Talha Anwar avatar
cn flag
so i need to install Ubuntu again?
ChanganAuto avatar
us flag
No, that was an explanation of the default installation and how you it should be done when we want something different. It's possible to change from a swapfile to a swap partition in an already installed system. Someone will be able to post a proper answer with instructions.
Talha Anwar avatar
cn flag
ok, i decided to use swapfile and merge the free space with my disk.
ChanganAuto avatar
us flag
OK, much easier for sure. And you can increase the maximum size of said swapfile: https://askubuntu.com/questions/927854/how-do-i-increase-the-size-of-swapfile-without-removing-it-in-the-terminal
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.