Log in Register

Log in

In Linux
Community Member
Thursday, February 19 2015, 04:23 PM
1. Use fdisk /dev/hda à To create new partition.
2. Type n à For New partition
3. It will ask for Logical or Primary Partitions. Press l for logical.
4. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
5. Type the Size: for example +500M à You can Specify either Last cylinder of Size here.
6. Press P to verify the partitions lists and remember the partitions name. Default System ID is 83
that means Linux Native.
7. Type t to change the System ID of partition.
8. Type Partition Number
9. Type 82 that means Linux Swap.
10. Press w to write on partitions table.
11. Either Reboot or use partprobe command.
12. mkswap /dev/hda?à To create Swap File system on partition.
13. swapon /dev/hda?à To enable the Swap space from partition.
14. free -m à Verify Either Swap is enabled or not.
15. vi /etc/fstab
/dev/hda? swap swap defaults 0 0
16. Reboot the System and verify that swap is automatically enabled or not.
Responses (0)
  • There are no replies here yet.
Your Reply