How to add more swap on-the-fly?

Discussion in 'Command Line' started by carbon333, Feb 16, 2012.

  1. carbon333

    carbon333 New Member

    Messages:
    87
    Likes Received:
    4
    Trophy Points:
    0
    You can do this by executing following commands:

    dd if=/dev/zero of=/swap2gb bs=1024k count=2000
    mkswap /swap2gb
    swapon /swap2gb

Share This Page