Linux – automount nfs shares (or partitions)

In one of the previous post I shared the NFS shares. Now I will configure the automount NFS shares on the start of the client system.

I have two shares: documents and public – I want to have that mounted after login into user dir.

step.1. open end edit file

vi /ets/fstab

step.2. and add the following lines

nfs.local.test:/shared/documents /home/username/Documents nfs4 defaults 0 0
nfs.local.test:/shared/public /home/username/Public nfs4 defaults 0 0

where nfs.local.test is the name of nfs server etc. Easy.

Leave a Reply

Your email address will not be published. Required fields are marked *