1. Create a swap partition using fdisk.
fdisk /dev/sdb2. Enter n to create a new partition.
3. Enter e for extended or p for primary.
4. Enter the first and last cylinder.
5. Enter t to select the partition id. Swap has id of 82.
6. Enter w to save the changes.
7. Create a swap partition on the sdb2 partition.
mkswap /dev/sdb28. Enable the swap partition.
swapon /dev/sdb29. To enable it add boot time, add this line in /etc/fstab.
/dev/sdb2 swap swap defaults 0 010. Verify that the swap partition.
cat /proc/swaps
No comments:
Post a Comment