I just installed TurnKeyLinux for the first time, and am working to mount my Unraid NFS shares.

I have the following in my fstab

192.168.11.41:/mnt/user/Public /mnt/nasbox nfs defaults 0 0

And I can mount that share with mount -a

But on a reboot, the share is not automouting.

I did some searching as well, and some mentioned to remove the following directory

/var/run/network/mountnfs

However, that directory is already not showing.  So I have no idea why else it would not be mounting on boot.

Any ideas?

Replies (5)

Hey Paul

Reply 1

I have had very little exposure to NFS so I'm not sure that I can be a lot of help...

However I do know that mounting Samba shares on boot (via fstab) can also be a bit flakey. My understanding that this can be because fstab mounts are parsed fairly early in the boot process, and often networking is not yet available. End result is that the mount times out (because it can't connect with no networking).

Unfortunately I don't recall what the workaround was (I don't use Samba that much either...) but I recall that I did manage to sort it at the time... So hopefully if you keep in mind that TKL v12.x is basically a tricked out/minimised Debian Squeeze server then google may be of some asistance.

Awesome!

Reply 2

Thanks for posting that back, that's brilliant! And will no doubt be of use to others... :)

[SOLVED] ASYNCMOUNTNFS=no not work

Reply 4

Putting the "set ASYNCMOUNTNFS=no" the next reboot the / filesystem becomes read-only and you are stuck until it is remounted in rw. 
The solution is to remove the network card eth1 which blocks the initiation of nfs startup. At least in my case I have only one network card. The network card eth1 is found in webmin, but I have not found by ifconfig. 
greetings

It sounds like NFS is not configured

Reply 5
So you will need to set it up. TBH I'm no NFS expert but if you google then you should find tons of info. Keep in mind that TurnKey Linux is based on Debian so generally any instructions for Debian or Ubuntu should be close.