Turn on swap after creating it.
Section: Format, Label, and Tune
Enable a swap device
bash
bash
sudo swapon /dev/sdb2Explanation
Turn on swap after creating it.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Format, Label, and Tune