E
E
Eugene2019-01-10 18:55:34
linux
Eugene, 2019-01-10 18:55:34

How many swap partitions do you need for multiple Linux systems?

There is an SSD, I want to put 3 Linux with a graph. interface. For work, for tests, and for creating/configuring a cloned image afterwards.
Do you need 1 swap partition for 3 Linuxes or does it have its own for each installation?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
Dmitry, 2019-01-10
@Tabletko

If you do not use hibernation, then you can get by with one.

X
xotkot, 2019-01-10
@xotkot

one working system, and the rest to rotate the
swap partition on the ssd on the virtual machine, hmm, as for me, it’s better to set the swap only with a file, which, in theory, will wear out the disk more evenly, especially if it is intensively used

D
Dmitry Aleksandrov, 2019-01-10
@jamakasi666

I can suggest other options. There is only one OS, but here are the options:
- in archetype distras there is a cool thing called ramroot. I don’t know for sure, but I’m sure that this is in other distributions. The thing is extremely convenient for a huge number of situations.
-there is such a thing as overlayfs. Just as cool as the first option, and even cooler and irreplaceable in some situations.
-there is such a fs as btrfs or zfs, also cool but even cooler and you need to be in the subject.
-there is a chroot, suitable for many situations.
-swap is not really needed at all and is needed if you are sure that there is enough RAM
-swap can be not only a partition but also a file like in windows!
- as they wrote above, virtual
machines - there are still a lot of options, but I don’t remember everything.
In general, you can read and choose what suits you best for your specific task, and installing several systems is, in my opinion, quite the edge, Linux is very flexible and it easily adapts to your needs.

S
Sanes, 2019-01-10
@Sanes

SWAP can be stored in a file.

R
Radjah, 2019-01-11
@Radjah

> I want to put 3 Linux with a graph. interface.
> For work, for tests, and for creating/configuring a cloned image afterwards.
Use virtual machines, no?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question