LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-13-2001, 03:52 PM   #1
Colonel Panic
Member
 
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216

Rep: Reputation: 30
/usr question


Hello! I have a simple question. What is /usr, and do I need it?What does it do? Thanks!

******Colonel Panic*******
 
Old 07-13-2001, 03:58 PM   #2
cinnix
Member
 
Registered: Jun 2001
Location: Northern Ohio
Distribution: RedHat, Engarde and LFS
Posts: 237

Rep: Reputation: 30
What do yo mean do yo need it. It contains almost all of the software on your system. Please clarify!!!!
 
Old 07-13-2001, 04:07 PM   #3
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
The directory /usr is one of the main branches of any linux filesystem tree.
As cinnix says it is the one that contains most your applications and system programs.
You could think of it as c:\windows for a windows system.
 
Old 07-13-2001, 04:07 PM   #4
Colonel Panic
Member
 
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216

Original Poster
Rep: Reputation: 30
Well, I have heard that all you need is a swap, /boot, and a / (root) partition. This is why I was asking the question.

*****Colonel Panic*****
 
Old 07-13-2001, 04:13 PM   #5
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
The /boot and / are all part of one big filesystem.
Windows separate different disks/partitions into several filesystems called c:, d:, etc.
Linux gathers all of your disks, partitions and even processes under global filesystem tree, called the root (/).
When you make a /boot partition for example you mount it to your /.
If you only use a /boot and a / partitoin then /usr is included in your /.
 
Old 07-13-2001, 04:15 PM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by Colonel Panic
Well, I have heard that all you need is a swap, /boot, and a / (root) partition. This is why I was asking the question.
When people say the above the / encompasses all other directories that are not mounted from other partitions, if you get what I mean.

/usr typically contains a bulk of your binaries and it's typically pretty static, so it often suited to exporting over a network to all your workstation so they can run their programs from it, with /usr/local often then being mounted on a per-workstation basis so you can have different programs on different workstation. Hence the 'local' bit in the name. You don't see such a config much now though, but its part of the reason why lots of programs still default to /usr/local/ for their installation.

cheers

Jamie...
 
Old 07-13-2001, 06:46 PM   #7
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
well, technically, the swap, / and /boot are all you need, and you're running linux, but the computer wouldn't do anything very interesting if that's all you have.

it might sit there with a blinking cursor... but that's about it.
 
Old 07-13-2001, 06:55 PM   #8
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Wink now we're (I'm) getting silly...

Infact, I'd say that you really only need / as if you don't use LILO then you don't need /boot and swap space is just icing on the cake for when you run out of physical memory!!

Then again if you just want to run linux you can boot from a raw kernel boot disk and let it kernel panic about not being able to find any file systems. It's gotta be running to panic right?

Jamie...
 
Old 07-15-2001, 07:55 PM   #9
Colonel Panic
Member
 
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216

Original Poster
Rep: Reputation: 30
Erm, sorry if this is a dumb question, but from the information that I am gathering from this, it seems like /usr is not a partition, but a directory. Or is a directory a partition, or what? Ya know, I just don't think I know what I am talking about. Please put me in line! Oh yeah, please don't get fustrated; you are talking to someone who is 100% newbie(my status even says so!). Thanks!

*****Colonel Panic*****
 
Old 07-15-2001, 08:37 PM   #10
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
it could be either. if, during installation you made the /usr partition than it' s an actual partition with a predetermined size. if you didn't, then linux would create it in the / tree and its size depends on the amount of info in it at any given moment
 
Old 07-15-2001, 11:38 PM   #11
Colonel Panic
Member
 
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216

Original Poster
Rep: Reputation: 30
Should I make a partition for /usr?

*****Colonel Panic*****

"Good programmers know what to write. Excellent programmers know what to rewrite"
--Eric S. Raymond
 
Old 07-16-2001, 12:13 AM   #12
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Quote:
Originally posted by Colonel Panic
Should I make a partition for /usr?

*****Colonel Panic*****

"Good programmers know what to write. Excellent programmers know what to rewrite"
--Eric S. Raymond
I don't know - do you want one?

But seriously folks. You don't 'need' other partitions for a simple workstation or desktop install. They can make your life more difficult than it needs to be. They can also make things better. Think of Linux partitions just like DOS/Win partitions. When you take a large hard disk and partition it with, say, three partitions, DOS/Win would tell you that they are three drives (as in Drive C:, D:, E. You would need to format them in order to be able to use them. In DOS lingo that would be 'format C:' with maybe some switches. Then you could install your Windows OS and keep your program data on the D: drive (your second partition) and maybe a backup on the E: drive (the third partition).

In *NIX/Linux these partitions are just different mount points on your file system. They can be mounted with options like ReadOnly, Append Only. You mount partitions on other disks for performance, or mount network exports (NFS).

(Damn. What was the question?)
 
Old 07-19-2001, 05:22 PM   #13
Colonel Panic
Member
 
Registered: Jul 2001
Location: California
Distribution: Red Hat 7.1, Slackware 8.0
Posts: 216

Original Poster
Rep: Reputation: 30
I guess. I just want to get out on the right track. I'm just getting confused...

*****Colonel Panic*****
 
Old 07-21-2001, 12:57 AM   #14
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
keep it simple - make it a directory. i can't think of any reason why /usr would be better off as a partition. the stuff that's contained in it isn't really specific enough to warrant it's own partition. i can understand if you want a separate partition for, say, your mp3 collection, but /usr doesn't make much sense to me.
 
Old 07-21-2001, 05:02 AM   #15
ct3
LQ Newbie
 
Registered: Jul 2001
Posts: 10

Rep: Reputation: 0
what's the difference between partition and directory to /usr? or /boot...
 
  


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
Question about /usr/include/bits/typesizes.h stefaandk Linux - General 2 07-21-2005 07:30 PM
Question about /usr/src/redhat/RPMS/subdirs stefaandk Fedora 1 06-23-2005 02:23 AM
/usr question dimsun Linux - Newbie 2 11-04-2004 08:49 AM
question on usr/include/asm/module.h kmack2001 Linux - Newbie 0 02-14-2004 10:40 PM
Question reguarding /usr/loca/bin and 'linking' Cecil Linux - Software 6 06-25-2003 02:15 AM

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

All times are GMT -5. The time now is 11:45 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
Open Source Consulting | Domain Registration