I created the SWAP partition in GParted after resizing my Ubuntu partition. All the operations went off smoothly. When I right-clicked the SWAP drive, it showed "SWAPON", so I clicked it & it activated the SWAP. Then I restarted the machine & it showed the SWAP as SWAPON again, so I hit it & it failed to activate it giving this error message:
Then I shut down the machine & restarted. The HDD looks like this now:
Then I tried to format
linux-swap & it could not do it giving the error message:
Just to give a bit of context, I asked a question before on how to repartition my Ubuntu hard disk: How can I see where Ubuntu has been installed on my HDD? I repartitioned (and actually reinstalled) Ubuntu, but now I want to create a SWAP partition.