summaryrefslogtreecommitdiff
path: root/sag-0.6.1-www/Invisible/sag-0.6/node22.html
blob: 3c8d1fd830ce981d0acf2a0712c8fb659e3a1669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>The root filesystem</TITLE>
<META NAME="description" CONTENT="The root filesystem">
<META NAME="keywords" CONTENT="sag">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="sag.css">
</HEAD>
<BODY LANG="EN" >
 <A NAME="tex2html568" HREF="node23.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="./next_motif.gif"></A> <A NAME="tex2html566" HREF="node20.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="./up_motif.gif"></A> <A NAME="tex2html560" HREF="node21.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="./previous_motif.gif"></A> <A NAME="tex2html570" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="./contents_motif.gif"></A> <A NAME="tex2html571" HREF="node114.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="./index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html569" HREF="node23.html">The /etc directory</A>
<B>Up:</B> <A NAME="tex2html567" HREF="node20.html">Overview of the Directory </A>
<B> Previous:</B> <A NAME="tex2html561" HREF="node21.html">Background</A>
<BR> <P>
<H1><A NAME="SECTION00420000000000000000">The root filesystem</A></H1>
<P>
	The root filesystem should generally be small, since it contains
	very critical files and a small, infrequently modified
	filesystem has a better chance of not getting corrupted.  A
	corrupted root filesystem will generally mean that the system
	becomes unbootable except with special measures (e.g., from a
	floppy), so you don't want to risk it.
<P>
	The root directory generally doesn't contain any files, except
	perhaps the standard boot image for the system, usually called
	<tt>/vmlinuz</tt><A NAME="686">&#160;</A>.  All other files are in subdirectories in the
	root filesystems:
	<DL ><DT><STRONG><tt>/bin</tt><A NAME="688">&#160;</A></STRONG>
<DD>
		Commands needed during bootup that might be used
		by normal users (probably after bootup).
	<DT><STRONG><tt>/sbin</tt><A NAME="690">&#160;</A></STRONG>
<DD>
		Like <tt>/bin</tt><A NAME="692">&#160;</A>, but the commands are not intended
		for normal users, although they may use them if necessary
		and allowed.
	<DT><STRONG><tt>/etc</tt><A NAME="694">&#160;</A></STRONG>
<DD>
		Configuration files specific to the machine.
	<DT><STRONG><tt>/root</tt><A NAME="696">&#160;</A></STRONG>
<DD>
		The home directory for user <tt>root</tt>.
	<DT><STRONG><tt>/lib</tt><A NAME="698">&#160;</A></STRONG>
<DD>
		Shared libraries needed by the programs on the root
		filesystem.
	<DT><STRONG><tt>/lib/modules</tt><A NAME="700">&#160;</A></STRONG>
<DD>
		Loadable kernel modules, especially those that are needed
		to boot the system when recovering from disasters (e.g.,
		network and filesystem drivers).
	<DT><STRONG><tt>/dev</tt><A NAME="702">&#160;</A></STRONG>
<DD>
		Device files.
	<DT><STRONG><tt>/tmp</tt><A NAME="704">&#160;</A></STRONG>
<DD>
		Temporary files.  Programs running after bootup should
		use <tt>/var/tmp</tt><A NAME="706">&#160;</A>, not <tt>/tmp</tt><A NAME="708">&#160;</A>, since the former
		is probably on a disk with more space.
	<DT><STRONG><tt>/boot</tt><A NAME="710">&#160;</A></STRONG>
<DD>
		Files used by the bootstrap loader, e.g., LILO.  Kernel
		images are often kept here instead of in the root
		directory.  If there are many kernel images, the directory
		can easily grow rather big, and it might be better to
		keep it in a separate filesystem.  Another reason would
		be to make sure the kernel images are within the first
		1024&nbsp;cylinders of an IDE disk.
	<DT><STRONG><tt>/mnt</tt><A NAME="712">&#160;</A></STRONG>
<DD>
		Mount point for temporary mounts by the system administrator.
		Programs aren't supposed to mount on <tt>/mnt</tt><A NAME="714">&#160;</A> automatically.
		<tt>/mnt</tt><A NAME="716">&#160;</A> might be divided into subdirectories (e.g.,
		<tt>/mnt/dosa</tt><A NAME="718">&#160;</A> might be the floppy drive using an MS-DOS
		filesystem, and <tt>/mnt/exta</tt><A NAME="720">&#160;</A> might be the same with an ext2
		filesystem).
	<DT><STRONG><tt>/proc</tt><A NAME="722">&#160;</A>, <tt>/usr</tt><A NAME="724">&#160;</A>, <tt>/var</tt><A NAME="726">&#160;</A>, <tt>/home</tt><A NAME="728">&#160;</A></STRONG>
<DD>
		Mount points for the other filesystems.
<P>
</DL><BR> <HR>
<UL><A NAME="CHILD_LINKS">&#160;</A>
<LI> <A NAME="tex2html572" HREF="node23.html#SECTION00421000000000000000">The <tt>/etc</tt> directory</A>
<LI> <A NAME="tex2html573" HREF="node24.html#SECTION00422000000000000000">The <tt>/dev</tt> directory</A>
</UL>
<HR><A NAME="tex2html568" HREF="node23.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="./next_motif.gif"></A> <A NAME="tex2html566" HREF="node20.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="./up_motif.gif"></A> <A NAME="tex2html560" HREF="node21.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="./previous_motif.gif"></A> <A NAME="tex2html570" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="./contents_motif.gif"></A> <A NAME="tex2html571" HREF="node114.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="./index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html569" HREF="node23.html">The /etc directory</A>
<B>Up:</B> <A NAME="tex2html567" HREF="node20.html">Overview of the Directory </A>
<B> Previous:</B> <A NAME="tex2html561" HREF="node21.html">Background</A>
<P><ADDRESS>
<I>Lars Wirzenius <BR>
Sat Nov 15 02:32:11 EET 1997</I>
</ADDRESS>
</BODY>
</HTML>