Top Ad unit 728 × 90

Latest updates

recent

SWAP PARTITION PRACTICAL STEPS


##### TO CREATE A SWAP PARTITION #####

'Step 1:-Check the RAM size'
# free -m (to check the RAM size in MB)

'Step 2:-Create One Partition'
# fdisk /dev/sda (to create)
Press 'n' to create new partition
Enter the size: +4G (for example 4GB)
Press 't' to change the ID of Partition
Enter Partition No:16 (for example)
Press 'L' to get the list of availabel ID's
Enter 82 for swap
Press 'p' to check
Press 'w' to save & quit

'Step 3:-Update & Format the Partition'
# partx -a /dev/sda (to update)
# mkswap /dev/sda16 (to create swap filesystem)
# blkid /dev/sda16 (to check)

'Step 4:-Enable the Swap Service'
# swapon /dev/sda16 (to enable)
# free -m (to check RAM size)
# swapon -s (to check the status of swap partition)

'Step 5:-To Disable the Swap Service'
# swapoff /dev/sda16 (to disable)
# free -m (to check the RAM size)
# swapon -s (to check the status)
SWAP PARTITION PRACTICAL STEPS Reviewed by Unknown on 3:44 PM Rating: 5
© 2007 - 2016. All Rights Reserved by Babashaheer Blog

Contact Form

Name

Email *

Message *

Powered by Blogger.