NFS retard needs help


I feel really dumb…I’m trying to make my external HDD (2 pieces) available for KODI via NFS, and for the love of god, i cant figure out how to add multiple folders/drives. It defaults to a single one being visible/accessible in kodi, fx. /mnt/disk1, where i have series stored. So, if i want to add /mnt/disk2, where i have movies stored - how do i achieve that? I have tried to add the path to both drives in /etc/exports, as i found it suggested elsewhere…but to no awail…can someone explain to me, like if i was a total simpleton, how it works, when i want to share via NFS, and what files to edit? I have had i work before, but simply cant remember how i did it…

I def. have the NFS client up and running and have used the drive manager to mount the NFS network drive…but thats where the show stops…:confused:


Just for clarification, you have 2 device. One is acting as NFS server and the 2nd one is the NFS client (running Kodi)? Do you try to mount the NFS shares directly into Kodi or as share on the NFS client?

Hi, yes, i have dietpi raspberry pi, with 2 hdd in dockingstation and kodi running in my pc (for testing - normally it runs from a shield TV). what im trying to accomplish, is to share relevant folders on the dietpi, so theyre accessible from KODI…maybe i’ve totally misunderstood something about what runs what…and where…? :rofl: :thinking:

There is no need to use drive manager if DietPi is acting as server. The task of driver manager would be to mount the shar form a different devices and not the same one.

Not sure how Kodi is working, therefore probably a stupid question. Are you able to mount the NFS share directly in Kodi?

ok, so only nfs server is needed on the Pi, right?

The problem is, that i can tap in the IP in KODI, and it will show up fine, but i dont have any kontrol over which folders are shared. I managed to get it to share one of the HDD, but i cant figure out, how to make it “serve” the second one.

Right, your Pi acts as the server, Kodi as the client.

You can add folders to be shared via your NFS server on dietpi with:
sudo nano /etc/exports.d/dietpi.exports
after editing this file to your need, run sudo systemctl restart nfs-kernel-server
You can find some explanation about this here:

I guess thy are already part of server config. Could you share your /etc/exports pls.

Guess the exports file is empty? does the reference to wanted shares go in here? and if so, whats the syntax?

# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)

I’ve tried to make it happen via dietpi.exports:

 GNU nano 5.4                     /etc/exports.d/dietpi.exports
/mnt/disk1 *(rw,async,no_root_squash,fsid=0,crossmnt,no_subtree_check)
/mnt/disk2 *(rw,async,no_root_squash,fsid=0,crossmnt,no_subtree_check)

But the only content browsable in KODI, is disk1 content. I’m not even sure anymore, if i’m editing the right files… :rofl:

Thanks, but kinda tried it already, but maybe i’m doing it wrong? see my response to Joulinar :slight_smile:

1 Like

Try to remove on both lines the fsid=0 flag and restart NFS server. Try again on Kodi.

It freakin’ WORKS!!! thanks man!! :smiley: :smiley: :smiley:

Btw, what does the



1 Like

fsid=0 is defining the root for all exported directories.