LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Understanding Linux file sharing via NFS. (https://www.linuxquestions.org/questions/linux-newbie-8/understanding-linux-file-sharing-via-nfs-4175604239/)

elsmandino 04-20-2017 08:23 AM

Understanding Linux file sharing via NFS.
 
Hello,

I have finally managed to get Ubuntu server up and running and have since learnt how to automount a second hard drive.

On that second hard drive I have created a folder called "videos", which is located at /media/videos.

I want to share this folder so it is available to a Rasperry Pi and a Linux-based laptop - in particular, for the Raspberry Pi to play the videos via Kodi.

I have read a few guides on NFS sharing but they seem to be a bit too complex in their explanation.

Could anyone perhaps give me a beginners guide to setting up NFS sharing or perhaps point me in the direction of one please?

Thanks very much.

pan64 04-20-2017 08:30 AM

basically you need to look for the command exportfs, and there are a lot of information available on the net.
Please pick one, try to use that and we will help you to go further (but actually we cannot configure your box).
Post what did you try, what's happened and what did you try to achieve.

suicidaleggroll 04-20-2017 09:54 AM

Install the nfs server, start the service, edit /etc/exports:
Code:

/media/videos 192.168.1.0/24(rw,sync)
(replacing 192.168.1 with your subnet)
Then run "exportfs -ra" on the server

On the client, install the nfs client, create a directory for the mount, and then mount it
Code:

mkdir /media/videos
mount server:/media/videos /media/videos

(replacing "server" with the IP address of your server, or the name of the server from /etc/hosts)

Those are the basic steps, if something fails you'll have to give us the applicable debugging information.

jefro 04-20-2017 03:36 PM

More info. https://help.ubuntu.com/lts/servergu...le-system.html

I assume 16.x in that.


All times are GMT -5. The time now is 07:52 PM.