LinuxBasics.org

The community that helps people to run Linux

rss

Making a swapfile

  1. Multiply the Mb of swap that you want by 1024. For example, a 256 MB swap file would give 262144.
  2. As root or prefacing the commands with sudo, type the following commands where <size> is the number you got from Step 1:
      dd if=/dev/zero of=/swapfile bs=1024 count=<size>
      mkswap /swapfile
      swapon /swapfile
      /swapfile               swap                    swap    defaults        0 0


Copyright (c) by the authors.
Prior to editing, authors agreed to license their contributions by the terms of the GPL.
See our licensing page for details.


Linux® is a registered trademark of Linus Torvalds.


 
  tutorials/using/making_a_swapfile.txt · Last modified: 2007/11/16 12:24

LinuxBasics.org

Start Linux-Course Tutorials Linux Links Security Mailing List Online Chat Blog Forum

Site-Info

Help Get in Touch Making of LBo

Wiki-Control

Powered by

Linux Apache DokuWiki Mailman RUTE ht://Dig