Swapfile Custom automatic loading

So... long story short... I wanted to create a swap file on a drive/partition that would only be for that purpose (in other words, one that would be partitioned off or on another drive all together)

I followed the steps at the page Create or Resize Swap file/Partition - Tutorials & Guides - Zorin Forum (and many other similar tutorials.

I get the swap file created, it even uses it. What doesn't happen... if I have to reboot (or the power goes out and it reboots itself), it does NOT pick back up where it left off. In fact, since I deleted the other file, it operates without swap until I manually restart the swap on the file I created.

I recently had an issue upgrading to V18, so I had to do a fresh install. This is one of the first things I have done... and It still doesn't automatically load my swapfile.

Again, I can manually restart the use of the swapfile... and if I haven't done much in the terminal lately, it's probably just a few up arrows away. But I would really like this to be automatic as this is for one specific purpose on my network, I want to set, forget, and only have to come here once in a while...

Any help would be appreciated.

Mahalo nui loa!!

Was it a swap file or a swap partition you created?

For those wishing to try and use hibernation, you have to have a swap partition not just swap file.
However, I'm not sure if hibernation ever works on Zorin regardless of that.

It was a swap file on a separate drive, not a partition. Though if that would be a better option, I'd be happy to try it.

On the other note, I don't want my system to Hibernate. It performs various functions on my internal network, one of which is DNS... so having it hibernate is not in the cards.... and I think I have it setup to stay on, just blank screen.

But even that is not what I am on about... I'm specifically pointing out what happens when I reboot (for whatever reason, be it an update or just needing to reload the system) or when the power goes out and it comes back on after the power outage. Both scenarios essentially restarting the OS, but doesn't automatically start up the swap file when it does.... i have to manually do the "swapon" command and point it to it before it starts using it.

I don't want to have to manually do the command every time... hence me reaching out.

Mahalo nui loa!!

I think this narrows things down.

If you are using a SwapFile and not using Hibernate, you want the swap file to be on the Same Drive and Partition you have Zorin OS on.

If you are using swap and also want Hibernate, you are better off with the Swap File on a separate mounted partition.

If you prefer to keep it on an separate drive (partition), then you must add it to your fstab file to ensure it automounts upon startup without you needing to manually start it.
But... removing that and setting up a swapfile on your current partition would be the simplest and most effective means.