Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know linux uses swap partitions like Windows uses RAM memory. Correct me if I'm wrong. The question: is it possible to have more than one distribution of linux and only one swap partition? Because it is possible to have more than one Windows and only one RAM memory . I suppose it isn't, because everybody has a swap partition for every distro installed. Can you tell me why? Thank you.
"linux uses swap partitions like Windows uses RAM memory" erm.... absolutely not. try "linux uses swap partitions like Windows uses pagefiles". and either way the answer is yes. just tell them both to use the same one, nothign more to it than that. in actual fact you can make windows use it to, but that's a proof on concept rather than somethign actually worth doing.
Actually, windows (>NT) uses a swap file called pagefile.sys. linux can use either a swap partition or a file. A swap partition is faster and more efficient then a file.
Yes, all linux distributions can share a single swap partition.
Even though memory management is different between windows and linux the basic function of swap is the same.
I'm surprised to hear this. So, if i have 2 distributions and I want them to use only one swap partition, all i have to to is edit the /etc/fstab, right? And after that I can erase one swap partition and save that space for something else? Is it that simple?
It is an urban myth that there is no such thing as a stupid question. Just like there's no such word as an't. all lies.
but yes either install the second distro and use the existing swap, or if for some bizarre reason that's not possible (it will never be impossible) you can just install without one at all and add it after
You see, both of those distros will not be running at the same time. Only one of them will be running and will have access to the swap-partition. (If this is not so, it will not work!) The file-formats used on the swap partition by the various distros are the same. So, all of them can recognize and use the space. They will all know, when they see the partition-type in the partition table, that "this partition is 'linux swap.'"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.