LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-16-2006, 10:44 AM   #1
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Rep: Reputation: 15
Partition question->


Hey guys,

New to Linux and I am looking at the different partitions that should be done when installing linux.

For instance for the /home partition - if users save files on their home directories does it automatically save it on the /home partition?

Also for the swap partition - I will have 2 Distros of Linux on my machine do I need to have seperate boot partitions or just one?

So far here is what I think I will be doing - let me know if this is good.

/boot (100MB)
/root (1GIG)
(Swap) (2 GIG)
/home (10 GIG)
/tmp (1 GIG)
/usr (5 GIG)
/var (1 GIG)
 
Old 11-16-2006, 10:53 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Is it a desktop system? If so, I typically do this
Code:
/boot (100MB) -- first linux install only
/swap (512MB)-- both distros can use the same swap partition
/ (10GB) -- distro 1, includes /home partition
/ (10GB) -- distro 2, includes /home and /boot partition
/shared (Large) -- this is where I keep all my common files.
I've never needed a swap file larger than 512MB. My old Celeron 400MHz runs a minimal KDE desktop and still never uses swap, even though it only has 256MB RAM. I guess if you do heavy video editing or the like, you might need a bigger swap. But otherwise, you're probably wasting disk space.

In my limited experience, shareing a /home partition is a nightmare. You can get some weird things happening with config files in /home (like kde config files, etc) because the different distros might use different versions of the same program with slightly different format config files.

I install the first distro grub to the MBR and put the config files on the /boot partition. I install the 2nd distro grub to the / partition and chainload it with the first. This way, if you ever decide to nuke the first distro, the boot files are still there to let you chainload the second.

Anyway, just my ...
 
Old 11-16-2006, 10:56 AM   #3
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
That sounds good -

Also I am reading about LVM's? Are they worth creating or just stick w/ the partitions?
 
Old 11-16-2006, 11:05 AM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I've never used LVM's, but read a bit about them. It sounds like they're good for large storage system (like a media partition for MythTV, music, videos, etc) since it makes it easy to grow your filesystem if you need more space. In my reading, my impression is that it can cause a lot of heartache recovering from a problem if the entire install is done on LVM.

So I guess my inclination if you wanted to try LVM would be to install the / and /boot partitions on standard partitions. Then if you wanted a large partition for media (or maybe like the large /shared partition I talked about), it would be okay to use that as LVM.
 
Old 11-16-2006, 11:11 AM   #5
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Thanks,

I will stick to partitions for now as I will not be doing any large file transfers.

Thanks for the help.
 
Old 11-16-2006, 11:25 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If the user names are unique, then sharing the /home partition will cause no problem. One potential problem either way you do it is with the common directory for the user between the two distros. You will want to make sure that the UID you use for your username is the same in both distro's. Red Hat and SuSE for example start at different numbers, 500 and 1000 respectively.
 
Old 11-16-2006, 11:32 AM   #7
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Thanks JS -

Do I want to make the UID the same for all users on both distro's?

Also - one servers - do they seperate the /home directory to another partition? I will be trained on servers when I start my new job which is about a month from now - however I am trying to get a head start.

Thanks again for the help!
 
Old 11-16-2006, 11:43 AM   #8
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Also one more question -

I know their can be 4 Primary partitions for the HD - so which partitions do you choose as primary and extended?
 
Old 11-16-2006, 12:00 PM   #9
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
With linux, I don't think it matters. I usually put /boot, /swap, and one / on a primary and the rest in an extended partition.
 
Old 11-16-2006, 12:36 PM   #10
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Also - one servers - do they seperate the /home directory to another partition?
For a SERVER, at WORK, I'd expect lots more seperate partitions than just /home. You will probably run into seperate partitions for:
Code:
/
/boot
/tmp
/usr
/usr/local
/opt
/srv
/home
...just to name a few. It depends on what your server is setup to do, and how many people and/or applications it supports. Many of these filesystems may well be remote, on a SAN, possibly using Veritos instead of LVM. You should expect some form of logical volume management.

Of course, my idea of a server at work may not match your idea of a server...
Code:
$ wc -l /etc/passwd
    2237 /etc/passwd
$

Last edited by haertig; 11-16-2006 at 01:45 PM.
 
Old 11-16-2006, 01:25 PM   #11
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Thanks guys!

Hae - not sure - I guess I will find out when I get their. I thought they would separate more partitions as well.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition question linuxtesting2 Solaris / OpenSolaris 5 04-20-2006 04:35 AM
partition question d1l2w3 Mandriva 3 03-05-2005 03:39 AM
question concerning partition Vincent Linux - Software 6 02-03-2004 06:42 AM
partition question tj156 Linux - Newbie 1 08-16-2003 10:38 PM
partition question Scruff Linux - General 5 10-09-2002 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:21 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