1

What's the best way to mount an NFS share during boot?

Trent Scott
  • 949
  • 1
  • 11
  • 28

1 Answers1

3

What is "better" depends on your needs. If it is your home box, I'd go with autofs. If you add an entry in /etc/fstab, which requires mount at boot time and there is anything wrong with the NFS server, then your boot will hang. Autofs based solution will let you boot every time, also if there's a problem with your NFS server.

If you decide to use fstab anyhow, then add netdev option. This prevents mount attempt until networking is up.

Paweł Brodacki
  • 6,451
  • 19
  • 23