Previous | Table of Contents | Next |
When you have created a file system, you need to make it available; you do this by mounting it. A mounted file system is attached to the system directory tree at the specified mount point and becomes available to the system. The root file system is always mounted. Any other file system can be connected or disconnected from the root file system.
You can mount a local file system in these ways:
File systems on disk slices must always be mounted on the server system and shared (exported) before other systems can access them. See "Sharing Files from a Server" later in this chapter for information about sharing file systems. When file systems are shared from a server, a client can mount them as NFS file systems in any of these three ways:
File systems can be attached to the hierarchy of directories available on a system. This process is called mounting. To mount a file system you need:
As a general rule, local disk slices should always be included in the /etc/vfstab file. Any software from servers, such as CDE, OpenWindows, or manual pages, and home directories from a server can either be included in the /etc/vfstab file or be automounted, depending on the policy at your site.
When you mount a file system, any files or directories that might be present in the mount point directory are unavailable as long as the file system is mounted. These files are not permanently affected by the mounting process and become available again when the file system is unmounted. However, mount directories usually are empty because you usually do not want to obscure existing files.
The system tracks the mounted file systems in the /etc/mnttab (mount table) file. Whenever you mount or unmount a file system, the /etc/mnttab file is modified to show the list of currently mounted file systems. You can display the contents of the mount table using the cat or more command but you cannot edit the mount table as you would the /etc/vfstab file. Here is an example of a mount table file:
drusilla% more /etc/mnttab /dev/dsk/cØt3dØsØ / ufs rw,suid 693186371 /dev/dsk/cØt1dØs6 /usr ufs rw,suid 693186371 /proc /proc proc rw,suid 693186371 swap /tmp tmpfs ,dev=Ø 693186373 swsvr4-5Ø:/export/svr4/openwinV3 /usr/openwin nfs rw,dev=21cØØØØ 693186443 swsvr4-5Ø:/export/svr4/man /usr/man nfs rw,dev=21cØØØ1 693186447 drusilla:(pid127) /nse nfs ro,ignore,map=/etc/auto.nse,indirect,dev=21cØØØ2 693186449 drusilla:(pid127) /net nfs ro,ignore,map=-hosts,indirect,dev=21cØØØ3 693186449 drusilla:(pid127) /home nfs ro,ignore,map=/etc/auto_home,indirect, dev=21cØØØ4 693186449 bigriver:/export/home/bigriver /tmp_mnt/home/bigriver nfs rw,dev=21cØØØ5 693186673 drusilla%
Previous | Table of Contents | Next |