You are currently browsing the LlamaLabs weblog archives for the day Wednesday, May 16th, 2007.

Adding an additional swap file on Linux

Adjust your call to dd to get the size you want. [root@host ~]# dd if=/dev/zero of=/swapfile bs=1024 count=1048576 1048576+0 records in 1048576+0 records out [root@host ~]# sync [root@host ~]# mkswap /swapfile Setting up swapspace version 1, size = 1073737 kB [root@host ~]# swapon /swapfile [root@host ~]# echo “/swapfile swap swap defaults 0 0″ >> /etc/fstab

  • May 2007
    M T W T F S S
    « Apr   Mar »
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Author

    A little something about you, the author. Nothing lengthy, just an overview.