Prev | Current Page 1310 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

So, for example,
you could type:
# mount /oak/apps
With this command, mount knows to check the /etc/fstab file to get the file system to mount
(oak:/apps), the file system type (nfs), and the options to use with the mount (in this case ro
TIP
723
Running a File Server 27
for read-only). Instead of typing the local mount point (/oak/apps), you could have typed the
remote file system name (oak:/apps) and had other information filled in.
When naming mount points, including the name of the remote NFS server in that name
can help you remember where the files are actually being stored. This may not be possible
if you are sharing home directories (/home) or mail directories (/var/spool/mail). For example,
you might mount a file system from a machine called duck on the directory /mnt/duck.
Using mount Options
You can add several mount options to the /etc/fstab file (or to a mount command line itself)
to influence how the file system is mounted. When you add options to /etc/fstab, they must
be separated by commas. For example, here the noauto, ro, and hard options are used when
oak:/apps is mounted:
oak:/apps /oak/apps nfs noauto,ro,hard 0 0
The following are some options that are valuable for mounting NFS file systems:
 hard??”If this option is used and the NFS server disconnects or goes down while a
process is waiting to access it, the process will hang until the server comes back up.


Pages:
1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322