Prev | Current Page 1306 | Next

Christopher Negus

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


721
Running a File Server 27
If the mount fails, make sure the NFS service is running on the server and that the
server??™s firewall rules don??™t deny access to the service. From the server, type ps ax |
grep nfsd to see a list of nfsd server processes. If you don??™t see the list, try to start your NFS daemons
as described in the previous section. To view your firewall rules, type iptables -L (see Chapter 18 for
a description of firewalls). By default, the nfsd daemon listens for NFS requests on port number 2049.
Your firewall must accept udp requests on ports 2049 (nfs) and 111 (rpc).
To ensure that the mount occurred, type mount. This command lists all mounted disks and NFS
file systems. Here is an example of the mount command and its output (with file systems not
pertinent to this discussion edited out):
# mount
/dev/sda3 on / type ext3 (rw)
...
...
...
maple:/tmp on /mnt/maple type nfs (rw,addr=10.0.0.11)
The output from the mount command shows the mounted disk partitions, special file systems, and
NFS file systems. The first output line shows the hard disk (/dev/sda3), mounted on the root file
system (/), with read/write permission (rw), with a file system type of ext3 (the standard Linux file
system type). The just-mounted NFS file system is the /tmp directory from maple (maple:/tmp).


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