I've deleted my existing swap partition due to some partitioning problem. I don't have a swap space now so I've created a swap file with:
dd if=/dev/zero of=/root/myswapfile bs=1M count=1024
Here's after swapon -s :
/root/myswapfile file 1048572 1320 -1
Now I want to edit my
/etc/fstab to enable the swap file after reboot.
Please tell me how to edit my fstab file.