#Auto mount nfs folder with /home folder encrypted

7 messages · Page 1 of 1 (latest)

topaz maple
#

I have an NFS share set up on a network. One LMDE 6 computer can mount that NFS share to a folder in /home/<user>/<mounted folder>. It comes up automatically at boot cause an entry in /etc/fstab is added that looks like this:
<server address>/share/shared_folder ~/home/<user>/sharedfolder nfs defaults 0 0

That works well on that computer.

Tried the same on another computer, also running LMDE 6. It would not work, and I wondered why. Then reading online, it occurred to me that I may have encrypted the /home folder on the computer that is not mounting the NFS share as hoped. Turnes out that the encrypted home folder cannot have a folder inside it that the NFS share can be mounted to. Guess NFS and encrypted /home directories are not compatible.

Ok, only thing I want to do is access that NFS share when I turn on this computer. Since I did choose to encrypt the /home folder when installing LMDE 6 on this computer, is there somewhere else I can have the /etc/fstab file point to and mount the NFS share to that new location?

zenith pond
#

Well, you don't have / encrypted? Mount to /mnt. I also noticed Mint uses /media/<username>/ folder to mount the partitions when I mount them via gui. @topaz maple

stuck scaffold
#

+1
mount under /media. then make a symlink to your home directory. you'll be able to access your files from your home as well.

topaz maple
#

Thanks!
Will try /media. Good idea.

By the way, I'll also ask: A music file (mp3 or flac, for example), sitting in the shared NFS folder, -- I click on it, open it up in an audio app such as Celluloid, and it will play for a bit and then it stops and the file system becomes unresponsive, or it locks up, or appears to become unusable. Going back to the server, it appears that the NFS service is no longer running. Have to reboot the NFS server and then able to access the files again. Is it a common problem with NFS shares?

stuck scaffold
zenith pond
#

Is it reproducible every time or only sometimes? My first thought is that that is caused by unstable network connection

topaz maple
#

Good question. The computers are connected to the router with Ethernet cables and it does reproduce every time.