michaelfackrell
Posts: 10
Joined: Tue Jul 30, 2013 10:21 pm

Re: How to Run NFS Server on Raspberry Pi

Postby michaelfackrell » Wed Aug 07, 2013 8:45 pm

SirLagz wrote:No idea.
But if you run

Code: Select all

/etc/init.d/nfs-kernel-server start

and paste any errors if there are any, then I'll have some idea :)



pi@raspbmc:/$ /etc/init.d/nfs-kernel-server start
Not starting NFS kernel daemon: no exports. ... (warning).
pi@raspbmc:/$
michaelfackrell
Posts: 10
Joined: Tue Jul 30, 2013 10:21 pm

Re: How to Run NFS Server on Raspberry Pi

Postby michaelfackrell » Thu Aug 08, 2013 1:43 am

SirLagz wrote:No idea.
But if you run

Code: Select all

/etc/init.d/nfs-kernel-server start

and paste any errors if there are any, then I'll have some idea :)




here is what it says
pi@raspbmc:~$ /etc/init.d/nfs-kernel-server start
Not starting NFS kernel daemon: no exports. ... (warning).
pi@raspbmc:~$
Dutch_Master
Posts: 360
Joined: Sat Jul 27, 2013 11:36 am

Re: How to Run NFS Server on Raspberry Pi

Postby Dutch_Master » Thu Aug 08, 2013 2:04 am

You need to create a file /etc/exports that contains the (full) path to the directory you want to share on the host (=where the data physically is). Mind that on the client (where you want the data to appear) you need a directory where it can be mounted. This should be specified in the /etc/fstab file of the client.

More info at: http://linux.die.net/man/5/exports
ceddio
Posts: 5
Joined: Sat Nov 08, 2014 7:27 am

Re: How to Run NFS Server on Raspberry Pi

Postby ceddio » Sat Nov 08, 2014 7:39 am

How do you do this in pidora?
ceddio
Posts: 5
Joined: Sat Nov 08, 2014 7:27 am

Re: How to Run NFS Server on Raspberry Pi

Postby ceddio » Sat Nov 08, 2014 1:22 pm

No, does not work
/etc/init.d/kernel-server does not exist

systemctl start nfs-server.service
Job for nfs-server failed. see systemctl status nfs-server.service and journalctl -xn for details
is the error I get in the terminal window
av8r1
Posts: 18
Joined: Mon Jun 23, 2014 7:04 pm

Re: How to Run NFS Server on Raspberry Pi

Postby av8r1 » Sat Jan 30, 2016 8:53 pm

I followed the instructions on the website linked above. It corrupted my SD card.

Samba doesn't work, NFS destroys operating systems...there's no such thing as a Linux file server, is there?
DirkS
Posts: 7129
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How to Run NFS Server on Raspberry Pi

Postby DirkS » Sat Jan 30, 2016 9:15 pm

av8r1 wrote:I followed the instructions on the website linked above. It corrupted my SD card.

Samba doesn't work, NFS destroys operating systems...there's no such thing as a Linux file server, is there?

I have both running on a single Pi, never had any problems...
Which website are you referring to, BTW?
User avatar
DougieLawson
Posts: 28457
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact:

Re: How to Run NFS Server on Raspberry Pi

Postby DougieLawson » Sat Jan 30, 2016 9:29 pm

av8r1 wrote:I followed the instructions on the website linked above. It corrupted my SD card.

Samba doesn't work, NFS destroys operating systems...there's no such thing as a Linux file server, is there?


It works perfectly on Raspbian.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.
av8r1
Posts: 18
Joined: Mon Jun 23, 2014 7:04 pm

Re: How to Run NFS Server on Raspberry Pi

Postby av8r1 » Wed Feb 03, 2016 2:59 am

I'm about at my wits end. I've used the instructions found here: http://www.instructables.com/id/Turn-Raspberry-Pi-into-a-Network-File-System-versi/

I installed it on my 8GB SD card running Raspbian Jessie.

One step he seems to be missing is

Code: Select all

exportfs -av


I had it working. Yesterday. Then I shut down the Pi and left it off for a day.

I made another SD card with a fresh install of Jessie Lite on a 4GB card. I performed the same exact instructions. Plugged it into my Pi B. It didn't work. I would try

Code: Select all

showmount -e 192.168.0.x

And it only gave me the error

Code: Select all

clnt_create: RPC: Program not registered

No amount of restarting services would get it to work.

I plugged my Pi 2 back in with the original SD card. Suddenly, it's giving me the same error. I've googled for HOURS and I haven't found anything that works. What is going on here?
User avatar
DougieLawson
Posts: 28457
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact:

Re: How to Run NFS Server on Raspberry Pi

Postby DougieLawson » Wed Feb 03, 2016 12:21 pm

Have you installed the nfs-server and nfs-client code? Have you installed rpcbind?
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.
innersund
Posts: 1
Joined: Fri Jul 01, 2016 10:21 am

Re: How to Run NFS Server on Raspberry Pi

Postby innersund » Fri Jul 01, 2016 10:43 am

I have set up my Pi running jessie as an NFS server, but could not mount the exported file system from another linux computer. Purging and reinstalling nfs-common, nfs-kernel-server and rpcbind as recommended in a previous post did not help. I finally found out that restarting rpcbind and nfs-kernel-server (in that order) did the trick:

Code: Select all

$sudo service rpcbind restart
$sudo service nfs-kernel-server restart

I have to do this after each reboot of the server. Could be some problem with timing / sequencing during startup.