Can two distros share the same swap partition?

This is a discussion about Can two distros share the same swap partition? in the Everything Linux category; Is that possible? I plan to only boot into one distro at a time but what if one is Rieser and the other Ext3? I am going to resize the Suse partition with the Mepis live disk to make room for a Mepis hdd install.

Everything Linux 1800 This topic was started by , . Last reply by ,


assets/images/contentteller/avatar_disabled.webp

0 Posts
Location -
Joined -
Is that possible? I plan to only boot into one distro at a time but what if one is Rieser and the other Ext3? I am going to resize the Suse partition with the Mepis live disk to make room for a Mepis hdd install.

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Jan 17
Created
Jan 17
Last Response
0
Likes
2 minutes
Read Time
User User User
Users

Responses to this topic


data/avatar/default/avatar26.webp

15 Posts
Location -
Joined 2004-07-15
No problem at all...
from this page here,
link:
 
http://www.faqs.org/docs/linux_admin/x1762.html
 
I see that:
(quote):
 
"A swap partition is also not special in any way. You create it just like any other partition; the only difference is that it is used as a raw partition, that is, it will not contain any filesystem at all."
 
(/quote)
 
So, there is no filesystem on the swap partition.
And, in my experience, the swap file is automagically detected and used by every distro that is installed to the system.
 
I am confident someone will correct me if I'm wrong.
 

data/avatar/default/avatar10.webp

2895 Posts
Location -
Joined 2002-08-30
Yes, correct. I have 5 distros sharing the same swap partition. Most distros have a custom or expert install option for partitioning. Pick that and set root to the partition that you made for Mepis and also tell it to use the existing sweap partition.
 
Be aware, that you need to use lilo or grub as a bootloader. So, if the option is there, tell the second distro to install lilo or grub on a floppy. You can then add the Mepis install to Suse's bootloader when you are satisfied that all looks good. That is if you want to keep the suse bootloader.
 
Alternately, if you elect to use the Mepis bootloader, then it may automatically add Suse as a boot option. If not, then you can add it manually.

assets/images/contentteller/avatar_disabled.webp

0 Posts
Location -
Joined -
OP
Thank you for your answers. I suspected a single swap partition was multi distro usable. Thanks for you confirmation. About grub, they all do the same job with different graphics so if the Suse grub gets overwritten with a new grub that will automatically add all existing os's, that will just save me the hassle of manually adding. Thanks for that extra information though.