Hoàng Diễm Quỳnh
New member
How do I enable swap?
Answer
Enabling a swap partition
Answer
Enabling a swap partition
- Use the following command cat /etc/fstab.
- Ensure that there is a line link below. This enables swap on boot. /dev/sdb5 none swap sw 0 0.
- Then disable all swap, recreate it, then re-enable it with the following commands. sudo swapoff -a sudo /sbin/mkswap /dev/sdb5 sudo swapon -a.