LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-20-2012, 05:57 AM   #1
saad1gamer
LQ Newbie
 
Registered: Jul 2012
Posts: 9

Rep: Reputation: Disabled
Post 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.
 
Old 07-20-2012, 05:59 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 07-20-2012, 07:33 AM   #3
saad1gamer
LQ Newbie
 
Registered: Jul 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by acid_kewpie View Post
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
 
Old 07-20-2012, 07:50 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 07-20-2012, 05:04 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
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.
 
Old 07-20-2012, 05:15 PM   #6
NyteOwl
Member
 
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512

Rep: Reputation: 139Reputation: 139
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.
 
Old 07-20-2012, 08:06 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
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.
 
Old 07-21-2012, 09:34 AM   #8
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 55
I have used two swaps on two seperate disks with the same priority. It works fine.
 
Old 07-21-2012, 11:05 AM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
I have never set up a system like that. Think it is time I start.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Linux Swap Partitions DavidDiepUSC Linux - Newbie 3 01-20-2012 11:02 AM
Linux installations leaving behind 4 GB swap partitions Blackened Justice Linux - Newbie 12 06-23-2011 11:03 AM
[SOLVED] sharing /home and swap partitions between several linux distros htamayo Linux - Newbie 4 06-08-2011 08:09 PM
[SOLVED] Is it possible to use existing home and swap partitions? RabbidRabbit Slackware - Installation 6 04-12-2011 09:02 PM
OMG!!!! Linux boot, home, and swap partitions have dissapeared!!!!!!!!!!!!!!!!!!!!!!! aweir14150 Mandriva 9 04-30-2004 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration