next up previous contents
Next: 3.2.4.1.5 Disabling Swap Space Up: 3.2.4.1 Make a filesystem Previous: 3.2.4.1.3 Creating Swap Space   Contents

3.2.4.1.4 Enabling Swap Space

So now we need to add the swap partition to /etc/fstab so it's automatically enabled the next time we boot. We add the following line:

dev/hdb2               swap             swap   defaults           0 0
And we can enable the swap partition without rebooting by doing the following:

# swapon /dev/hdb2

#