NFS Help!

Soldato
Joined
8 Oct 2003
Posts
2,884
Location
Glasgow
Hi guy's,

Need a little help moving to NFS shares from Samba, I am basically trying to share /home/kevin/Podcasts

Both hosts.deny & .allow are empty.

Code:
[SERVER]

>sudo nano /etc/exports

/home/kevin/Podcasts 192.168.1.1/24(rw,sync,no_subtree_check)

?sudo /etc/init.d/nfs-kernel-server restart 
 * Stopping NFS kernel daemon                                            [ OK ] 
 * Unexporting directories for NFS kernel daemon...                      [ OK ] 
 * Exporting directories for NFS kernel daemon...                               exportfs: scandir /etc/exports.d: No such file or directory

                                                                         [ OK ]
 * Starting NFS kernel daemon                                            [ OK ] 

[CLIENT]

sudo mount 192.168.1.2:/Podcasts /Podcasts

mount.nfs: access denied by server while mounting 192.168.1.2:/Podcasts

showmount -e 192.168.1.2
Export list for 192.168.1.2:
/home/kevin/Podcasts 192.168.1.1/24

Sorry for block of text ^^any ideas?

Thanks Kevin :)
 
Post your server exports file, and check syslog for anything nfs related on both client and server :)

Edit: sorry you did, is 192.168.1.1 your client box? Try .0/24 instead
 
Last edited:
Server syslog states

"Nov 21 20:13:20 ubuntu rpc.mountd[5172]: refused mount request from 192.168.1.6 for /Podcasts (/): no export entry"

?
 
Didn't work :(

The server's ip is set to 192.168.1.2, the client is currently dchp and at 6 so I tried 192.168.1.6 on the servers export file too.
 
Client

ls
Desktop Documents Downloads Music Pictures Podcasts Public Templates Videos
kevin@kevin-Aspire-R3600:~$ sudo mount 192.168.1.2:/Podcasts /Podcasts
mount.nfs: mount point /Podcasts does not exist
 
"Podcasts" exists in the home directory on both machines, do I need to create it else where on the client?
 
"Podcasts" exists in the home directory on both machines, do I need to create it else where on the client?

Ah, no. "/Podcasts" refers to the root directory of your disk, not inside your home directory.

I would fully quantify the directory e.g /home/kkelly/Podcasts. And make 100% sure the paths is correct on your server.
 
Yay! :D

Thanks tntcoder, I assumed that "192.168.1.2:/Podcasts" would have been the share as seen by the client, not "192.168.1.2:/home/kevin/Podcasts"
 
Yeah you have to give it the FQDN alternative basically. On mine i mount "192.168.1.1/home/sam/Downloads" for example. Still beats SMB :)
 
Back
Top Bottom