I have a server that is not 24/7. I have my main computer that has an nfs entry in fstab to mount a server directory. From other posts, I've configured the fstab line so the nfs directory will load only when the server is available. I've tried to tweak the line further to reduce the time the system takes to process that nfs mount, but
systemd-analyze blame still report over 1.5 minutes to process the nfs line even when the server is down.
I need a good configuration of the options so the nfs directory mounts quickly when the server is running or doesn't mount it quickly when the server is not running. Searching for answers has led me to this Frankenstein configuration that does not work.
systemd-analyze blame still report over 1.5 minutes to process the nfs line even when the server is down.
Code:
# /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda1 during installation UUID=6bb8b708-55bf-4acd-bf77-b7f70d60d41b / ext4 errors=remount-ro 0 1 # # This is the data drive mounted to /media/Data UUID=9d3f1ff1-99b4-418c-8dca-84916431f9d5 /media/Data ext4 auto,exec,rw,noatime 0 2 # # This is the server mount of /nas 192.168.1.105:/nas /media/NAS nfs timeo=14,intr,auto,exec,rw,_netdev 0 0
Comment