charroo wrote:but what about mounting at boot? i've trouble configuring it. can you link me to a guide that explains in a simple way how to boot-mount?
Rather not. Most "guides" go way overboard and/or provide outdated information. Network filesystem mounts are basically no different from any other type of filesystem; at its most basic you'd add to /etc/fstab the lines
Code: Select all
192.168.0.<x>:/mnt/Music /mnt/Music nfs defaults
192.168.0.<x>:/mnt/Videos /mnt/Videos nfs defaults
in which 192.168.0.<x> is the IP address of your server, the leftmost /mnt/Music and /mnt/Videos its exported directories as per your /etc/exports on the server, the next ones their local mountpoints. Make sure to pre-create them,
sudo mkdir /mnt/{Music,Videos}
, and feel free to name them whatever you want. Note that you can replace "192.168.0.<x>" by "myserver" if you add a line
192.168.0.<x> myserver
to /etc/hosts. Many sources will tell you to add "_netdev" to the options; the type "nfs" as well as any other network filesystem type you are likely to ever encounter in fact already implies "_netdev" when using systemd -- which you do on Mint 18 (but note, systemd, not systemd-networkd; Mint 18 uses NetworkManager, so also ignore advise about enabling systemd-network-wait-online).
This assumes the server to be up and running when the client boots; if it isn't, the client experiences long timeouts trying to mount those filesystems, and it is as such normally advisable to use an automounter for network filesystems. Systemd has one built-in, so again at its most basic:
Code: Select all
192.168.0.<x>:/mnt/Music /mnt/Music nfs noauto,x-systemd.automount
192.168.0.<x>:/mnt/Videos /mnt/Videos nfs noauto,x-systemd.automount
With an automounter the filesystems are
conceptually permanently mounted but actually only when in fact accessed. They will specifically not interrupt your boot when something is up (or down...) with server or network. Note that the "autofs" method that many sources will comment on is for an older, separate automounter which is probably not worth investigating any more now that systemd has one built in. If you disagree, I posted a longish comment a while ago:
viewtopic.php?f=157&t=225120&p=1188039#p1188104.
Slightly less basic and advised, taken from
https://wiki.archlinux.org/index.php/NF ... tc.2Ffstab,
Code: Select all
192.168.0.<x>:/mnt/Music /mnt/Music nfs noauto,x-systemd.automount,x-systemd.device-timeout=10,x-systemd.idle-timeout=1min
192.168.0.<x>:/mnt/Videos /mnt/Videos nfs noauto,x-systemd.automount,x-systemd.device-timeout=10,x-systemd.idle-timeout=1min
Further options (tcp, rsize, wsize, timeo, ...) are available for your perusal pleasure from
man nfs
but I notice that on 18.2 tcp, rsize=8192 and wsize=8192 are in fact default. Check the output of
mount
after rebooting and accessing /mnt/Music and /mnt/Videos. That is, this last example should probably be what you use.