LinuxQuestions.org
Visit Jeremy's Blog.
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 01-17-2007, 07:44 AM   #1
bluecog6
Member
 
Registered: Jan 2007
Location: Missouri
Distribution: Arch, openSUSE, Debian
Posts: 32

Rep: Reputation: 15
trying to prep for install - what's the difference between /home and /usr?


I am very much new to linux - I have not used or tried to install it.

I have been reading a lot and asking a few questions. When looking at info about partitioning I see people saying "/home" is where you install programs AND I see people saying "/usr" is where you install programs. What's the difference? Do I need both? Is this terminology specific to the particular distro a person is using?

I think I get the "/" and swap partitions - or at least get that they're necessary. But everything else regarding partitioning schemes leaves me in quite a fog.

Help Please.


btw - I am wanting to install openSuSE 10.2 on a 2nd HDD (dual boot with XP)
 
Old 01-17-2007, 08:14 AM   #2
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,605

Rep: Reputation: 53
Distro will create the partitions for you
Do not worry.

/home is for your data primarily.
Just be sure to create a /home (advantageous for linux multiboot, backup, and changing linux distro)

rute exposition guide explain this in details
 
Old 01-17-2007, 08:18 AM   #3
SleepingGiant08
LQ Newbie
 
Registered: Jan 2007
Location: Maryland, USA
Distribution: Arch 0.7.2
Posts: 17

Rep: Reputation: 0
For more information see: http://www.tuxfiles.org/linuxhelp/linuxdir.html.

/home is "your" files whereas /usr is more global, and includes all the installed programs.

You most definately need both, What I do is when I partition is have a root partition (/) and a swap partition. The root partition icludes /home /bin /usr ...etc.
 
Old 01-17-2007, 08:58 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
On your first Linux install, simply use the default which the installer uses. You will almost certainly be doing several installs of different distros as you get more familiar.
 
Old 01-17-2007, 10:04 AM   #5
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Rep: Reputation: 31
Just in case our friend is not doing a default installation...I suggest the following:

1. Read man hier -- if you're running Linux, open a terminal and type

Code:
man hier
and read the page that pops up. That will explain in excruciating detail all the typical directories -- most of the ones that will be installed when you install any major Linux distribution. If you're not running Linux, put that into google and see what comes up. You should get the same document.

2. The literature that best prepared me for setting up my own system was Running Linux by Welsh, Dalheimer et al. After reading that I felt like I totally knew what I was doing. It's also a great primer on the general "UNIX way".

Here's my basic explanation
/ -- the whole damn show. If you dont' tell your installer what partition to mount on / or /home, you should get an error and it should give you a chance to go back. If it doesn't, start over because it's probably incapable of doing anything unless you give it these mountpoints.

/home -- holds directories for each user to store data. Can include programs installed just for a particular user. Under this directory on my computer, you'll find /joel (me) and /megan (my wife).

/usr -- programs available to the whole system. /usr mainly holds data (e.g., libraries), source code and other good stuff; the binaries may be in /usr/bin or /usr/local/bin or they may be somewhere like /bin or /sbin.

Although some people recommend mount /usr on its own partition, its usually just fine to put in on the / partition with everything; /home should have its own partition.

The previous posts might not fit your situation if you have already chosen a distro. However, you control the level of customization you want mainly by choosing a distro. As the previous posters said, "your distro will do it for you." As I favor distros like Slackware that require customization for every install, I disagree that you should let the computer take care of it for you without you knowing what it's doing. A good middle ground is a distro that gives you options and is set up for either a custom install or a generic install. I recommend PCLinuxOS.

As an example, I did not like how Ubuntu just "took care of it for me." It seems that I was expected to have that attitude about everything else going on with the computer, too. I think you'll learn more if you have to take care of these details and the installer tells you what it's doing.

Joel
 
Old 02-07-2007, 06:05 PM   #6
marietechie
Member
 
Registered: Feb 2007
Distribution: Mandriva 2008 (KDE)
Posts: 71

Rep: Reputation: 15
Good partitions to have:
/
SWAP
/home
/usr

(You can even add a backup partition, if you want. Maybe /hmbkup?)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Difference between /usr and /bin binarybob0001 Linux - Newbie 6 07-04-2005 08:52 PM
Difference between /usr/ and /usr/local/ ? MDesigner Linux - Newbie 7 07-04-2004 10:37 AM
mount / , /home , /home/usr on different partitions alekoos Slackware 14 05-03-2004 12:39 PM
softlink /usr to /home/usr ??? mlsfit Linux - General 4 11-09-2003 01:16 AM
usr space from /usr for /home ? chanys Linux - Newbie 2 08-27-2003 12:11 AM


All times are GMT -5. The time now is 09:31 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration