I tried running sudo nano /etc/fstab/
but such a file did not exist. So nano
displays the following error:
[ Error reading lock file /etc/.fstab.swp: Not enough data read ]
Some other background info about my setup, I had a swap parition defined during the OS installation but due to space constaints on my main partition I deleted it, and consumed the space.
Afterwards I added a second drive to my system and I'm trying to use one of its partitions as the swap. This is possible with GParted
using the swapon
command but it needs to be done after every reboot.
Is there a way to permanently set the new partition as my swap?