Creating a Swap File

| | TrackBacks (0)

If you don't have a partition free to allocate additional swap space, you can create a swapfile on an existing file system.

The following example creates and enables a 16 MB swapfile called /var/swapfile:

dd if=/dev/zero of=/var/swapfile bs=1024 count=16384
mkswap /var/swapfile
swapon /var/swapfile

0 TrackBacks

Listed below are links to blogs that reference this entry: Creating a Swap File.

TrackBack URL for this entry: http://www.megalinux.net/cgi-bin/mt/mt-tb.fcgi/44

About this Entry

This page contains a single entry by Ram Prasad published on June 30, 2004 5:19 PM.

Gmail Screenshots was the previous entry in this blog.

Redirecting Port 80 requests to port 443 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by
Movable Type 4.01