NFS sharing drives connected to USB?

Marvell Kirkwood based
Post Reply
shanix
Posts: 10
Joined: Thu Dec 04, 2014 7:50 am

NFS sharing drives connected to USB?

Post by shanix » Sat Jan 07, 2017 4:22 pm

Is there any way of having NFS shares of the external (usb) drives?

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: NFS sharing drives connected to USB?

Post by MrDini » Sat Jan 07, 2017 5:23 pm

Yes, You Can edit the /etc/exports file and of course, and You Can specify new shares also here. But the /etc/exports file has been replaced during every boot up with the original one. So i recommend to use the unfs3 instead of the zypkg version. You Can easily install it using the slacker tool (FFp). And it has an ability to read the /ffp/etc/exports file also, instead of just reading the /etc/exports file's content, So in this way You Can make the shares permanently. :)
Thanks nas-central the lot of help! :)

shanix
Posts: 10
Joined: Thu Dec 04, 2014 7:50 am

Re: NFS sharing drives connected to USB?

Post by shanix » Sat Jan 07, 2017 7:02 pm

thanks,

I also looked at unfs3, but i have not yet figured out how to use/configure it the way i need. if by chance you have something that will help me get startet it would be greatly appreciated.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: NFS sharing drives connected to USB?

Post by MrDini » Sat Jan 07, 2017 8:13 pm

Install the package first with slacker and disable the fw NFS package. After that, create the /ffp/etc/exports file (or if it is exist, skip this step) and open it for editing via nano, vi, mcedit or etc).

And here You Can create the shares. For example mine external HDD sharing (with access of anybody on my network) looks like this:

Code: Select all

/e-data/<longUUIDofTheExternalStorage> 192.168.1.0/24(rw,async,no_root_squash,no_subtree_check,wdelay,fsid=0,insecure)
Change the <longUUID[...]> to fit for Your environment and finally save that file. Now, You just have to start the package and make the script executable to start the unfsd server during every FFp startup:

Code: Select all

chmod +x /ffp/start/unfsd.sh
/ffp/start/unfsd.sh start
And that's it. You are done! :)

Have fun!

Ps: change the subnet from 192.168.1.0/24 if necessary. And use the Google if You looking for some other nfs config option.
Thanks nas-central the lot of help! :)

Post Reply