Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-20-2012, 05:57 AM
|
#1
|
LQ Newbie
Registered: Jul 2012
Posts: 9
Rep: 
|
Linux home and swap partitions?
hi,
I wish to know two things:
1- Can I install Linux distro without /home partition? Would it work well without home partition?
2- I have two hard disks. I wish to install one distro on one hard drive and the other one the other hard drive. Is it possible to create two swap partitions for these two distros instead of sharing one swap partition? Now if I install the two Linux distros on two different hard drives, can I create two swap partitions for these distros on the same hard drives where they are installed? Is it possible and would it work well?
Kindly inform. 
|
|
|
07-20-2012, 05:59 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
1 - yes, no problem there at all, you might regret it though if you want to reinstall without losing your /home/user data.
2 - yes, no problem there at all either. I would suggest not caring though, you shouldn't want to use swap in the first place. You'd get better access time by using swap on the other disk, but again, not if you never use swap in the first place.
|
|
|
07-20-2012, 07:33 AM
|
#3
|
LQ Newbie
Registered: Jul 2012
Posts: 9
Original Poster
Rep: 
|
Quote:
Originally Posted by acid_kewpie
1 - yes, no problem there at all, you might regret it though if you want to reinstall without losing your /home/user data.
2 - yes, no problem there at all either. I would suggest not caring though, you shouldn't want to use swap in the first place. You'd get better access time by using swap on the other disk, but again, not if you never use swap in the first place.
|
Thanks for your reply. For better clarification I would write my question 2 with more clarity. Suppose I am using one distro on disk 1 and the other on disk 2. On disk 1 I have created a swap partition for the distro on disk 1 and on disk two I have created a swap partition for for the distro on disk 2. Wouldn't the two swaps on my PC clash with each other? Or they would run just fine. You agree with you that there is no need to use swap but just out of curosity and gaining knowledge about Linux I am asking you this. Kindly inform. Best regards 
|
|
|
07-20-2012, 07:50 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
they wouldn't clash at all. What do you even perceive clash to mean? You can happily use BOTH on BOTH distros if you want. It's a generic temporary file system.
|
|
|
07-20-2012, 05:04 PM
|
#5
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
I was thinking that either linux distro would tend to automount any swap partition it found. I'd have to double check. For them most part the swap is useless to a shutdown computer unless you hibernate. I get the feeling you have to force it to select a single swap. I could be very wrong on that.
|
|
|
07-20-2012, 05:15 PM
|
#6
|
Member
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512
Rep: 
|
The distro will mount what it's told to mount in fstab. There is no conflict unless you create one by putting both swap files in a single fstab and reference them as swap. To be honest I have no idea what the result would be but I doubt it would be good.
/home is simply the directory where user data is kept. If you aren't going to create any users other than /root you don't need /home (though it's not a good idea). You can assign any directory you like to be a user's "home" directory.
|
|
|
07-20-2012, 08:06 PM
|
#7
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
I wondered and I guess it should be done (unless you want to use hibernate). The last choice here might have to be double checked.
http://linux.about.com/od/ptn_howto/a/hwtptn10t02.htm
They suggest that all swap areas set at same priority would be like a raid. That would be a good thing if it did speed up swap.
|
|
|
07-21-2012, 09:34 AM
|
#8
|
Member
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332
Rep:
|
I have used two swaps on two seperate disks with the same priority. It works fine.
|
|
|
07-21-2012, 11:05 AM
|
#9
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
I have never set up a system like that. Think it is time I start.
|
|
|
All times are GMT -5. The time now is 02:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|