nfs server client autostart

Asked by Gerlof Brinck on 2018-04-03

Dear sir/madam,

My computers (all Linux) are with the startup automatic connected with my nfsserver. works oke.

But I have forgotten how to set up the autostart. As far as I can remember I have to write the line:

sudo mount 192.168.178.29:/home /media/nfsserver

in a small file/program. But wich one?

I hope someone can help me out.

Many thanks beforehand

Kid Regards,

Gerlof.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2018-04-03
Last query:
2018-04-03
Last reply:
2018-04-03

If you run:

sudo touch /etc/rc.local
sudo chmod +x /etc/rc.local
echo "exit 0" | sudo tee /etc/rc.local
sudo gedit /etc/rc.local

Above the "exit 0" line add your command, it will run at boot and complete the mount for you

Gerlof Brinck (brinck) said : #2

THANKS!!

Gerlof Brinck (brinck) said : #3

Thanks actionparsnip, that solved my question.