Issue about Swap Partition

I had Installed two other linux distros along with garuda linux in my laptop.I had allocated seperate swap partition to each distro during installation.I had no problem with other distros.But in case of garuda linux,free -h command showing ,swap partition size is the total of all swap partitions combined which are allocated to other distros also.what to do to ,to stop garuda from not using other swap partition of other distros.

  • What you see are the (virtual) ZRAM drives. Don't be alarmed.
  • If you want to use your other existing SWAP partition, you'll need to mount it and add it to /etc/fstab. Unless you had the Garuda installer delete the partition you installed it to with the option of a swap. In that case you can still mount your existing in fstab if you wish.
3 Likes

Wait. Why would you need different swap partitions?

Imagine that you 2× 8GB RAM sticks, and you want different distro to use different sticks?

I guess you should first read more about SWAP here,
https://wiki.archlinux.org/title/Swap

Or am I misunderstanding you
:thinking:

2 Likes

I don't know whether same swap partition can be used for different distros.I assigned swap partition to each distribution during installation.My doubt is that if garuda uses other swap partitions,is there any problem.what to do,if I want different distro to use use different sticks.I will go through article.

Any Linux distribution (AFAIK) can use another's swap partition (assuming it's formatted linuxswap). You can only use one distribution at a time, right? :smiley:

Notice I put in the qualifiers. :wink:

3 Likes

Yes.

No.

Merge the swap partitions into one.

1 Like

What if, one (maybe OP) hibernates one distro, then use another, then wants to resume the hibernated one? It’s not someone would really want to do, but in very rare case someone may want.

Asking this just out of curiosity just to understand.

Only if mounted, maybe in fstab, right?

Having too much (doubled/thrippled) of swap would be waste, maybe better to have one and use the rest for storage.

2 Likes

Unless you want to manually mount it, yes. :wink:

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.