Files
oldlinux-files/Minix/2.0.0/wwwman/man2/mount.2.html
2024-02-19 00:21:39 -05:00

72 lines
2.0 KiB
HTML

<HTML>
<HEAD>
<TITLE>mount(2)</TITLE>
</HEAD>
<BODY>
<H1>mount(2)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
mount, umount - mount or umount a file system
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>#include</STRONG> <STRONG>&lt;unistd.h&gt;</STRONG>
<STRONG>#include</STRONG> <STRONG>&lt;sys/mount.h&gt;</STRONG>
<STRONG>int</STRONG> <STRONG>mount(char</STRONG> <STRONG>*</STRONG><EM>special</EM><STRONG>,</STRONG> <STRONG>char</STRONG> <STRONG>*</STRONG><EM>name</EM><STRONG>,</STRONG> <STRONG>int</STRONG> <EM>flag</EM><STRONG>)</STRONG>
<STRONG>int</STRONG> <STRONG>umount(char</STRONG> <STRONG>*</STRONG><EM>name</EM><STRONG>)</STRONG>
</PRE>
<H2>DESCRIPTION</H2><PRE>
<STRONG>Mount()</STRONG> tells the system that the file system <EM>special</EM> is to be mounted on
the file <EM>name</EM>, effectively overlaying <EM>name</EM> with the file tree on <EM>special</EM>.
<EM>Name</EM> may of any type, except that if the root of <EM>special</EM> is a directory,
then <EM>name</EM> must also be a directory. <EM>Special</EM> must be a block special
file, except for loopback mounts. For loopback mounts a normal file or
directory is used for <EM>special</EM>, which must be seen as the root of a
virtual device. <EM>Flag</EM> is 0 for a read-write mount, 1 for read-only.
<STRONG>Umount()</STRONG> removes the connection between a device and a mount point, <EM>name</EM>
may refer to either of them. If more than one device is mounted on the
same mount point then unmounting at the mount point removes the last
mounted device, unmounting a device removes precisely that device. The
unmount will only succeed if none of the files on the device are in use.
Both calls may only be executed by the super-user.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man1/mount.1.html">mount(1)</A></STRONG>, <STRONG><A HREF="../man1/umount.1.html">umount(1)</A></STRONG>.
</PRE>
<H2>AUTHOR</H2><PRE>
Kees J. Bot (kjb@cs.vu.nl)
</PRE>
</BODY>
</HTML>