Prev | Current Page 1293 | Next

Christopher Negus

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


4. Mount the file system on the client. Each client computer that is allowed access to the
server??™s NFS shared file system can mount it anywhere the client chooses. For example,
you may mount a file system from a computer called maple on the /mnt/maple directory
in your local file system. After it is mounted, you can view the contents of that directory
by typing ls /mnt/maple. Then you can use the cd command below the /mnt/maple
mount point to see the files and directories it contains.
Figure 27-1 illustrates a Linux file server using NFS to share (export) a file system and a client
computer mounting the file system to make it available to its local users.
TIP
714
Running Servers Part V
FIGURE 27-1
NFS can make selected file systems available to other computers.
In this example, a computer named oak makes its /apps/bin directory available to clients on the
network (pine, maple, and spruce) by adding an entry to the /etc/exports file. The client computer
(pine) sees that the resource is available and mounts the resource on its local file system at
the mount point /oak/apps, after which any files, directories, or subdirectories from /apps/bin
on oak are available to users on pine (given proper permissions).
Although it is often used as a file server (or other type of server), Linux is a general-purpose operating
system, so any Linux system can share file systems (export) as a server or use another computer??™s
file systems (mount) as a client.


Pages:
1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305