Home > linux > Change swap partition

Change swap partition

If you want to change the swap partition, ceate a new one (e.g., using GParted or mkswap).

Then, you only have to swap on that partition (in my case /dev/sdb2):

sudo swapon /dev/sdb2

Finally, edit /etc/fstab to add/modify the swap partition:

/dev/sdb2    none        swap    sw    0    0

Advertisements
Categories: linux Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: