Using network filesystems with NFS
Mounting a remote NFS is not very different from mounting local devices, but instead of specifying a local device as we did in the previous section with our /dev/loop0p1
file, we provide server:export
as a device.
We can find a range of available options by checking the manual page via man mount
, and this will show us several of the options and the way the device looks.
When an NFS mount is going to be used, the administrator will need to use the host and the export name to mount that device. Let’s look at an example based on the following data about the NFS export:
- Server:
server.example.com
- Export:
/isos
- Mount point:
/mnt/nfs
With the preceding data, it’s easy to construct the mount
command, which will look like this:
mount –t nfs sever.example.com:/isos /mnt/nfs
If we analyze the preceding command, it will define the type of filesystem to mount as nfs
, provided by a server.example.com
hostname...