1 |
On 4/25/06, K. Mike Bradley <kmb@××××××××.com> wrote: |
2 |
> I wonder if anyone can explain why /usr was created? |
3 |
|
4 |
The idea is that / can be a very small partition and contains |
5 |
everything necessary to boot and administer the system, and /usr can |
6 |
be a separate partition or logical volume. Some advantages to this |
7 |
setup are: |
8 |
|
9 |
1. If the partition containing /usr is corrupted, the system will |
10 |
still boot, and you have enough tools (fdisk, mkfs, tar, cpio, etc) to |
11 |
repair and restore it. |
12 |
|
13 |
2. /usr can be on a network server. |
14 |
|
15 |
3. On the network server, exporting /usr presents no risk to /. Even |
16 |
if /usr is filled up, the server will continue to function and can |
17 |
still be administered. |
18 |
|
19 |
This is why: |
20 |
|
21 |
- command interpreters like bash, ash, etc go in /bin |
22 |
- network clients and remote shells (ssh, telnet, etc) go in /usr/bin |
23 |
- network, filesystem, and disk utilities go in /bin |
24 |
- large text editors (emacs, etc) go in /usr/bin |
25 |
- small text editors (vi, vim) go in /bin |
26 |
- X, KDE, Gnome, et al are in /usr |
27 |
- and so on... |
28 |
|
29 |
That said, you wll find a lot of desktop systems (mine included) that |
30 |
have / and /usr on the same filesystem. It's a matter of taste and |
31 |
what you will be using the system for whether you should make /usr a |
32 |
separate filesystem or not. |
33 |
|
34 |
-Richard |
35 |
|
36 |
-- |
37 |
gentoo-user@g.o mailing list |