Thursday, May 2, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 18306  / 1 Year ago, wed, april 5, 2023, 4:57:34

I went through this forum post, and found out that it is possible to install a swap partition after installation of the OS. I just wanted a guide as to how I should do it so as to have it done safely and neatly. Do I first free up space equal to 4000MB (my RAM size) from my Windows 8 installation drive and simply format the new free space to a linux-swap? How exactly do I then bind it to /etc/fstab? Do I use the terminal and run: sudo update-initramfs -u first, and then update the UUID using the commands shown in that thread? Also, can I include the previously "unallocated" and "unknown" partitions on my disk in the swap partition? Please help.



enter image description here


More From » installation

 Answers
4

You probably want to look at this question: Creating a Dedicated swap hard drive



You won't have to use a partition for swap, a swap file is totally fine, no performance penalty at all. See the abovementioned question, use fallocate or dd to create a swap file and swapon to use it. To make it survive reboots, add it to /etc/fstab.


[#29676] Thursday, April 6, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
enytidge

Total Points: 169
Total Questions: 105
Total Answers: 107

Location: Papua New Guinea
Member since Tue, Aug 24, 2021
3 Years ago
enytidge questions
Tue, Feb 28, 23, 15:26, 1 Year ago
Sun, Jan 1, 23, 19:36, 1 Year ago
Sun, Oct 24, 21, 07:30, 3 Years ago
Wed, Nov 9, 22, 22:02, 2 Years ago
;