krish – 起死回生 [Wake up from death & return to life.]

September 17, 2009

Increase swap space on Linux

Filed under: GNU/Linux — krish @ 8:32 pm
Tags:

a) Login as the root user

b) Type following command to create 1G swap file (1024 * 1GB =
1048576 block size):
# dd if=/dev/zero of=/swap1 bs=1024 count=1048576

c) Set up the Linux swap:
# mkswap /swap1

d) Activate /swap1 swap space immediately:
# swapon -a /swap1

e) To check the current swaps in use type:
# swapon -s

f) To ensure /swap1 being used after Linux system reboot, add entry to
/etc/fstab file. Open this file using text editor such as vi:
# vi /etc/fstab

Append following line:
/swap1 swap swap defaults 0 0

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Please leave a Reply / Discuss this topic here :)

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

Create a free website or blog at WordPress.com.

The Male Factor

On behalf of the ignored gender

Rough Draft

by Atteris Amarth and Darrek Ringo

The Kochi Post.

Read by all + Influenced by none

JumboMake

A signature of Kiran

SAAYAM CHEDDAM FOUNDATION

This blog is just for additional and extension share of it's main frames. No activity is planned from here

krish - 起死回生 [Wake up from death & return to life.]

Get a sneak peek into krish's life, work and passion.

WordPress.com

WordPress.com is the best place for your personal blog or business site.

A Tale of Two and a Half

Monika Amita Bakshi

%d bloggers like this: