View Single Post
Posts: 30 | Thanked: 29 times | Joined on Aug 2008 @ Canada
#2
to format a swap partition:

mkswap /dev/sda1

or whatever partition you want to format. To activate swap use the command:

swapon /dev/sda1

You can confirm it is working with the command free. To have it mount automatically add it /etc/fstab as:

/dev/sda1 none swap defaults 0 0
 

The Following User Says Thank You to ekul For This Useful Post: