Prev | Current Page 1305 | Next

Christopher Negus

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

That??™s the same command used to
mount file systems from local hard disks, CDs, and floppies, but with slightly different options.
mount can automatically mount NFS directories added to the /etc/fstab file, just as it does with
local disks. NFS directories can also be added to the /etc/fstab file in such a way that they are
not automatically mounted (so you can mount them manually when you choose). With a noauto
option, an NFS directory listed in /etc/fstab is inactive until the mount command is used, after
the system is up and running, to mount the file system.
Manually Mounting an NFS File System
If you know that the directory from a computer on your network has been exported (that is, made
available for mounting), you can mount that directory manually using the mount command. This
is a good way to make sure that it is available and working before you set it up to mount permanently.
Here is an example of mounting the /tmp directory from a computer named maple on your
local computer:
# mkdir /mnt/maple
# mount maple:/tmp /mnt/maple
The first command (mkdir) creates the mount point directory (/mnt is a common place to put
temporarily mounted disks and NFS file systems). The mount command identifies the remote
computer and shared file system separated by a colon (maple:/tmp), and the local mount point
directory (/mnt/maple) follows.


Pages:
1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317