NFS with usb mount

I was wondering and I have been looking on google, .. for weeks, .. only found options for linux which don't seem to work for FreeBSD like root_squash

Now my problem, I have this 1TB usb disk which I usually use for backups ... however I would like this disk to be readable from nfs, so this disk is not plugged in all the time.

But when I mount this disk under a directory in on my nfs server this directory can't be read, ..
 
Ofloo said:
But when I mount this disk under a directory in on my nfs server this directory can't be read, ..
Restart nfsd and mountd or send a SIGHUP to them.
 
You should give a more precise account of what you're trying to do, what commands you have performed, and how it fails.

Based on the information given it's hard to decide what's actually your problem.
 
Well I got an nfs share /usr/local/nfs and I'm trying to mount an usb disk under /usr/local/nfs/disk however when I try to enter the directory nothing is there. The nfs share works however the disk contents is not visible, however when I go on the shell it is visible.

edit:

I've tried several ways to mount it the usb disk that is and then in exports I have tried various ways to map all directories to a specific user.

Can't remember all the commands I've done so far, .. however when I create new export outside the current nfs share it works just fine.
 
Ofloo said:
Well I got an nfs share /usr/local/nfs and I'm trying to mount an usb disk under /usr/local/nfs/disk however when I try to enter the directory nothing is there.

That's to be expected. You can export one local filesystem at at time. Since /usr/local/nfs/disk/ is a different filesystem you'll have to export it separately.
 
Yes, I figured as much however overlapping directory do not work either. It is only visible outside the other primary nfs share, so basically it's impossible.
 
Back
Top