≡ Menu

Linux Move swap space from one location to another location

Q. How do I move swap space from one location / partition to another location under Fedora Core Linux server?

A. Swap partition or file used by most modern operating systems. This space on a disk in which the system can write portions of memory to. Usually this is a dedicated partition, but it may also be a swapfile.

There is no command or method exists that allows you to move swap space from one location to another. You can turnoff current swap space with swapoff command in the original location.
# swapoff /dev/device

Next create a new swap space with mkswap. Just follow these instructions for adding a swap space.

Share this tutorial on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:



{ 0 comments… add one }

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: