Post

Mount Shares on Linux (NFS or CIFS)

Network File System (NFS) is a distributed file system protocol that allows you to share remote directories over a network. With NFS, you can mount remote directories on your system and work with the remote files as if they were local files.

Common Internet File System (CIFS) is a network filesystem protocol used for providing shared access to files and printers between machines on the network. It was developed by Microsoft in 1996.

Install Network Share Via NFS

1
2
3
sudo apt install nfs-common -y
sudo nano /etc/fstab
192.168.1.150:/volume1/Media /media/plex nfs auto,defaults,nofail 0 0

Create the share directory on the file system. EX: /media/plex

1
sudo mount -a

Install Network Share Via CIFS

1
2
3
sudo apt install cifs-utils
sudo nano /etc/fstab
//omv/media /media/emby cifs guest,uid=1000,iocharset=utf8,file_mode=0666,dir_mode=0777,vers=3.0 0 0

Create the share directory on the file system

ex: /media/emby

This post is licensed under CC BY 4.0 by the author.