How to create swap space

  1. Create swap partition (This example uses IDE 2nd drive (/dev/hdb), 2nd partition). Use n command and make partition. Change ID to 82 by using t command
    # fdisk /dev/hdb
    
  2. Make swap space using mkswap
    # mkswap -c /dev/hdb2
    
  3. Enable swap space
    # swapon /dev/hdb2
    
    Check swap space using free or top command

  4. Edit /etc/fstab to enable next boot
    ...
    /dev/hdb2	swap	swap	default 0 0
    

Back
Google
Web www.grape-info.com