LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2017, 08:23 AM   #1
elsmandino
Member
 
Registered: Oct 2009
Posts: 78

Rep: Reputation: 0
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.
 
Old 04-20-2017, 08:30 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,636

Rep: Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614
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.
 
Old 04-20-2017, 09:54 AM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138
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.
 
Old 04-20-2017, 03:36 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,991

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

I assume 16.x in that.

Last edited by jefro; 04-20-2017 at 03:37 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS - File Sharing Muneerulla Linux - Software 1 05-12-2013 01:40 PM
File sharing (NFS) - how ? moljac024 Linux - Networking 4 11-24-2007 05:57 PM
File Sharing Through NFS stfusonxxxx Linux - Newbie 7 11-08-2007 08:34 AM
File Sharing: NFS or SMB? scorpatron Linux - Networking 6 11-10-2003 12:44 AM
File Sharing with NFS graystarr Linux - Networking 1 01-14-2002 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration