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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<link rel="STYLESHEET" href="../term_tools/main.css" type="text/css">
<title>mount MAN Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body><!-- #BeginLibraryItem "/Library/head_bash.lbi" --><div id="nav-menu">
<ul>
<li><a class="rl" href="../term_tools/index.html"><img src="../term_tools/images/ss64.gif" title="Home" alt="Home"></a></li>
<li><a class="rl" href="../term_tools/bash"><img src="../term_tools/images/bash-l.gif" title="bash" alt="bash"></a></li>
<li><!-- Search Google -->
<form action="http://www.google.com/search" method="get" style="margin:0px;padding:0px;">
<div align="right">
<input name="q" type="text" class="body" size="25">
<input class="submit" type="submit" value="Search">
<input type="hidden" name="q" value="site:ss64.com/bash/">
</div>
</form></li>
<li><a class="rr" href="syntax.html"><img src="../term_tools/images/syntax-r.gif" title="Bash Syntax"></a></li>
</ul>
</div> <!-- #EndLibraryItem --><h1> mount</h1>
<p>mount a file system<span class="body"><br>
All files accessible in a Unix system are arranged in one big tree, the file
hierarchy, rooted at /. These files can be spread out over several devices.
The mount command serves to attach the file system found on some device to the
big file tree.</span></p>
<pre>SYNTAX
mount -a [-fFnrsvw] [-t vfstype]
mount [-fnrsvw] [-o <i>options</i> [,...]] device | dir
mount [-fnrsvw] [-t vfstype] [-o <i>options</i>] device dir
mount [-hV]<span class="body"> </span> </pre>
<pre>OPTIONS
-a Mount all filesystems (of the given types) mentioned
in fstab.
-F (Used in conjunction with -a.) Fork off a new
incarnation of mount for each device. This will do
the mounts on different devices or different NFS
servers in parallel. This has the advantage that
it is faster; also NFS timeouts go in parallel. A
disadvantage is that the mounts are done in unde-
fined order. Thus, you cannot use this option if
you want to mount both /usr and /usr/spool.
-f Causes everything to be done except for the actual
system call; if it's not obvious, this ``fakes''
mounting the file system. This option is useful in
conjunction with the -v flag to determine what the
mount command is trying to do. It can also be used
to add entries for devices that were mounted ear-
lier with the -n option.
-n Mount without writing in /etc/mtab. This is necessary for example
when /etc is on a read-only file system.
-s Tolerate sloppy mount options rather than failing.
This option exists for support of the Linux
autofs-based automounter.
-r Mount the file system read-only. A synonym is -o ro
-w Mount the file system read/write. This is the
default. A synonym is -o rw.
-L <i>label</i>
Mount the partition that has the specified label.
-U <i>uuid</i>
Mount the partition that has the specified uuid.
-o Several -o options can be specified in a comma separated
string ... see info for more
async All I/O to the file system should be done
asynchronously.
atime Update inode access time for each access.
This is the default.
noatime
Do not update inode access times on this
file system (e.g, for faster access on the
news spool to speed up news servers).
auto Can be mounted with the -a option.
noauto Can only be mounted explicitly (i.e., the -a
option will not cause the file system to be
mounted).
ro Mount the file system read-only.
rw Mount the file system read-write.
suid Allow set-user-identifier or set-group-identifier bits to take effect.
sync All I/O to the file system should be done synchronously.
-t <i>vfstype</i>
The argument following the -t is used to indicate
the file system type.
-h Print a help message.
-V Output version.
-v Verbose mode.
File system specific MOUNT options
see <b>info mount</b> for these</pre>
<p><span class="body">The standard form of the mount command, is
mount -t type device dir This tells the kernel to attach the file system found
on device (which is of type type) at the directory dir. The previous contents
(if any) and owner and mode of dir become invisible, and as long as this file
system remains mounted, the pathname dir refers to the root of the file system
on device.<br>
<br>
Three forms of invocation do not actually mount anything:<br>
<br>
print a help message:<br>
mount -h<br>
<br>
print a version string:<br>
mount -V<br>
<br>
list all mounted file systems of type 'type'<br>
mount [-t type]<br>
<br>
The proc file system is not associated with a special device, and when mounting
it, an arbitrary keyword, such as proc can be used instead of a device specification.
(The customary choice none is less fortunate: the error message `none busy'
from umount can be confusing.)<br>
<br>
Most devices are indicated by a file name (of a block special device), like
/dev/sda1, but there are other possibilities. For example, in the case of an
NFS mount, device may look like knuth.cwi.nl:/dir. It is possible to indicate
a block special device using its volume label or UUID (see the -L and -U options
below).<br>
<br>
The file /etc/fstab (see fstab), may contain lines describing what devices are
usually mounted where, using which options.</span></p>
<p><i>"The Ten Commandments and the Sermon on the Mount contain my
religion" - John
Adams</i><br>
<br>
<b> Related</b>:<br>
<br>
<a href="df.html">df</a> - Report filesystem disk space usage<br>
<a href="fdformat.html">fdformat</a> - Low-level format a floppy disk<br>
<a href="fdisk.html">fdisk</a> - Partition table manipulator for Linux<br>
<a href="ram.html">ram</a> - ram disk device <br>
<span class="body">umount(8) - detach/u</span>nmount a device<br>
Equivalent Windows commands: Disk Administrator GUI</p>
<!-- #BeginLibraryItem "/Library/foot_bash.lbi" --><p align="left"><script type="text/javascript"><!--
google_ad_client = "pub-6140977852749469";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel ="1984328893";
google_color_border = "CCCCCC";
google_color_bg = "CCCCCC";
google_color_link = "000000";
google_color_text = "333333";
google_color_url = "0000FF";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br>
</p>
<div align="center"><hr size="1">
<p id="top"><a href="#"><img src="../term_tools/images/top-4.gif" width="47" height="53" border="0" alt="Back to the Top" title="Back to the Top"></a></p>
<p class="tagline">© Copyright <a href="http://ss64.com/">SS64.com</a> 1999-2010<br>
Some rights reserved<br>
</p>
</div><!-- #EndLibraryItem --></body>
</html>
|