OpenElec
Jump to navigation
Jump to search
Raspberry Pi OpenElec Mount NFS[edit]
Create the directory[edit]
mkdir /storage/videos
Create service file[edit]
- The service file name must follow the following pattern
path.replace("/", "-").mount (example for /storage/videos)
nano /storage/.config/system.d/storage-videos.mount
- Content:
[Unit] Description=test nfs mount script Requires=network-online.service After=network-online.service Before=kodi.service [Mount] What=192.168.0.103:/media/video Where=/storage/videos Options=udp,noatime,rsize=32768,wsize=32768,nolock,nfsvers=3 Type=nfs [Install] WantedBy=multi-user.target
Music[edit]
nano /storage/.config/system.d/storage-music.mount
[Unit] Description=test nfs mount script Requires=network-online.service After=network-online.service Before=kodi.service [Mount] What=192.168.0.103:/media/music Where=/storage/music Options=udp,noatime,rsize=32768,wsize=32768,nolock,nfsvers=3 Type=nfs [Install] WantedBy=multi-user.target
Start and enable the service[edit]
systemctl enable storage-videos.mount systemctl start storage-videos.mount