Changing Linux swap partition
Solution 1
This is in case you don't find a GUI method, you will find the terminal method quite flexible and easy. Run the following commands:
sudo swapoff /dev/hda3
sudo mkswap /dev/hda4
sudo swapon /dev/hda4
Then update /etc/fstab. Change the line containing "/dev/hda3" to "/dev/hda4".
Here is the Ubuntu page on Swap FAQ. Also note (from that page):
With the 2.6 kernel, "a swap file is just as fast as a swap partition."
Which means that you don't need to lock down a partition for swap space; you can tune it locally in a data partition as a swap-file.
Solution 2
Use Parted Magic LiveCD. Download it from here, burn it to a CD and go.
Related videos on Youtube
tony_sid
Born and raised in California. Computers are my main hobby.
Updated on September 17, 2022Comments
-
tony_sid over 1 year
I want to change the swap partition to another partition. Is there a gui that can make this process easier so I don't have to do things like manually editing files?
-
HiFi almost 14 yearsYou know, not everybody likes the terminal.
-
HiFi almost 14 yearsI think the OP already has the partition, just needs to change swap.
-
mmonem almost 14 yearsI guess awakeFromNib does not need to worry about command line tools. Actually, command line tools for non frequent tasks (like partitioning) are easy to forget
-
nik almost 14 years@Lord.Quackstar, yes I agree. Have changed the start of my answer to indicate its usefulness in the event a clean GUI is not found
':-)
'.