Sunday, May 5, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 753  / 2 Years ago, mon, july 18, 2022, 8:10:17

I've done several installations of different Ubuntu versions on my machine one over the other from a CD or live usb, and now I have a mess of swap partitions (something like 10 of them), so I need to eliminate all those and create a new one.

I also need to know how to tell the system that the new partition is the one for swap -- otherwise the system won't recognize it.


More From » partitioning

 Answers
1

You can use Gparted to edit partitions. Delete the unwanted swap partitions and add a new one. Try to avoid moving existing partitions, as this operation takes a long time, although in-place resizing is usually pretty fast. Basically, if the tan part moves, it'll take a while. And back up everything important first.



Swap partitions tend to be recognized automatically, but you can edit /etc/fstab to tell it to use that as a swap. First right-click on the swap partition and select "information", and copy or write down the UUID. Next edit /etc/fstab:



gksu gedit /etc/fstab


Remove any lines whose third field is "swap" (be conservative; if you're not sure what to do, leave a line alone) and add a new line like this:



UUID=uuid     none     swap    0     0


Replace those spaces with tabs, and replace the lowercase string "uuid" with the UUID you copied or wrote down earlier.


[#42698] Tuesday, July 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
landarre

Total Points: 254
Total Questions: 96
Total Answers: 109

Location: Burundi
Member since Sun, Apr 16, 2023
1 Year ago
landarre questions
;