How can I enable an NFS shared file system to be automatically mounted upon a client startup?
Perform the following steps:
1. Log in to the client as user root
2. Run the vi /etc/fstab
3. Press i to enter the editing mode.
4. Move the cursor to the end of the file and add ipaddress:filesystem mount_path nfs timeo=10 0 0
The parameters are described as follows:
indicates a virtual IP address.
indicates a shared file system.
indicates an existing mount directory.
For example, if ipaddress
is set to 192.168.0.10
is set to /vx/nfs_test
, and mount_path
is set to /nfs_mount
, the modification result is as follows:
5. Press Esc
to exit the editing mode.
6. Type :wq!
and press Enter