Installer: swapfile as alternative of swap partition, including hibernation

This thread is made for the people to subscribe / follow it if they wants to know the updates on the installer features

mentions: @triantares @TheTechRobo @linux23dragon @yoda @Franc @zbd ...

Now the installer will automatically create a swap file in the root partition if there's enough space to add it and there was not a swap partition added, this allows to:

  • able to hibernate the computer
  • freeing some ram usage by having swap featured (thanks to the very special elive confs for swap which doesn't bottleneck like by default in other distros)

If you want to try it, just run the installer which will be automatically updated

Note: must have "same amount as RAM + 10 gb" of free space in the root partition in order to be automatically added, the swapfile size will be the same amount of RAM + a few MB more. Also this will only be added if you don't have an already swap partition to use


Am I misunderstood something or:
-What if having 1Go of RAM? Needs 11Go swap??? Always reads about swap=RAM or =RAMx2..?
-As your write it, what if having 64Go of RAM? Means 74Go of swap???


edited, check if is more clear now

I just reverted back to Elive Retrowave, and found that the swap partition was correctly installed automaticly.

Thank you

No, I read that it minimally requires 10Gb more of free diskspace than available RAM for the swapfile to automatically be created.
I personally think RAM+10Gb is a bit over the top if there's 64Gb of RAM ....... for hibernation 2Gb should easily suffice. :thinking:

So IMO a fixed max 4GB swapfile size should be more than enough for hibernation on the current Elive systems.
That would mean needing 14Gb extra space in the root file system on a freshly installed system. Which still sounds a lot but makes sense. :thinking:

Then please stop the installer's automatic partitioning from giving me a 40GiB root partition ://

Wait what? You want it bigger or smaller? :no_mouth:

For a first install including a swap-file, you'd need 8-9Gb Elive-system + swapfile-space (4gb+10) = 23Gb as an absolute minimum.

Bigger... my root partition keeps filling up.

Well you should clean out the "/var" directory more often or ...... set up a separate partition and mount it as "/var".

Or do you have "/home" in there as well?

I mean I've got an upgraded 3.8.30 here with external programs in "/opt" and a lot installed as .deb apps and its about 18G (including "/var"). :no_mouth:

You mean to mix the /home and the root partition in a single one? This can be a wise option too (we don't necessarily need a separated /home at all)

That would be very unwise IMO.
If you do a full fresh install with /home in the same partition as "/", you lose all your personal stuff because it gets reformatted.
Along the same line: We might as well remove the "persistent" option from the live-USB and keep one isn't nescessary. :shocked:

I prefer separate swap partition in automatic mode, while installing Elive

Isn’t there upgrade mode?

Yes, there is but sometimes there's so much cruft and stuff gathered that a fresh install is needed.
Especially if it's for testing.

IMO if there's cruft in the system as a whole, the home directory isn't going to be in a great state either.

Yeah, but that is simply solved by creating another new user with default $HOME settings.

Elive doesn't works on that way:

  • if you want to keep your user data, just use the upgrade mode of the installer (this is considered a full reinstall + home stuff, in the good way)
  • if you want to do a "full fresh install" (as you mention), this means erasing everything

Note that we are debating if should be better to integrate the /home into / for simplicity, this will save cases like the one of @TheTechRobo that finds his root full, and Elive doesn't needs a separate /home because it controls it quite good... On the other hand, if a user is more "expert" and want to customize things on its own (@triantares case of separated /home) then you don't need to use the auto install mode but the custom (manual partitioning) one, also remember that you are arguing about advanced usages of the /home which still, a user that needs "auto" mode doesn't knows/understand how to manage a separated /home or for what. Remember that in the end, the installer always have "upgrade mode" which does a clean install without damaging the home directory & users & settings

What? :thinking: This is not the point of the persistence boot: This is what happens when you want to travel light (+linux) - YouTube

this still the actual case :slight_smile:

I was being "tongue in cheek" there. :madness:

What if there was an option for a separated /home like how Debian does it?