Changes

Jump to navigation Jump to search
508 bytes added ,  16:46, 18 October 2018
Line 45: Line 45:     
=== NFS Volume At Boot Time ===
 
=== NFS Volume At Boot Time ===
 +
==== via /etc/fstab ====
 
  sudo nano /etc/fstab
 
  sudo nano /etc/fstab
 
/etc/fstab
 
/etc/fstab
Line 52: Line 53:  
Mount  
 
Mount  
 
  mount -a
 
  mount -a
 +
 +
==== via SystemD ====
 +
sudo apt-get install nfs-client
 +
sudo modprobe nfs
 +
sudo echo NFS | tee -a /etc/modules
 +
 +
sudo nano /etc/systemd/system/mnt-things.mount
 +
content:
 +
<nowiki>[Unit]
 +
Description=Things devices
 +
After=network.target
 +
 +
[Mount]
 +
What=172.16.24.192:/mnt/things
 +
Where=/mnt/things
 +
Type=nfs
 +
Options=_netdev,auto
 +
 +
[Install]
 +
WantedBy=multi-user.target</nowiki>
 +
 +
Start mount service
 +
systemctl daemon-reload
 +
systemctl start mnt-media.mount
 +
systemctl status mnt-things.mount

Navigation menu