Find the answer to your Linux question:
Results 1 to 10 of 10
Guys help me to solve this problem. . . I have to configure NFS in my office. . .I am getting error message like this mount failed, reason given by ...
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    13

    Cool Problem in NFS

    Guys help me to solve this problem. . .

    I have to configure NFS in my office. . .I am getting error message like this

    mount failed, reason given by server: Permission denied. . .

    I have done these steps. . .

    In SERVER. . .


    mkdir /raj
    chmod ug+rw /raj
    vi /etc/exports
    /raj serverIP(rw)
    service portmap restart
    service nfs restart
    exportfs -ra
    rpcinfo -p
    All the necessary services are running


    In Client. . .

    mkdir /kumar
    chmod ug+rw /kumar
    service portmap restart
    service nfs restart
    rpcinfo -p
    All the necessary services are running
    mount serverIP:/raj /kumar

    mount failed, reason given by server: Permission denied

    sad. . .What should i do now???
    Plz give me best suggestion to solve this problem. . .

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    /raj serverIP(rw)
    You need to specify client, not server. Or you can export for whole subnet by giving netmask, like 192.168.0.0/24.

    man exports

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    13
    oops!!!....

    I changed it...even though i m getting the same error????

  4. #4
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    From client:

    Code:
    showmount -e server
    Do you see exports?

    See examples in man exports, make sure no firewall is blocking connections.

  5. #5
    Just Joined!
    Join Date
    Aug 2010
    Posts
    3
    You can try checking your Firewall and SELINUX. You can try by temporarily disabling them.

  6. #6
    Just Joined!
    Join Date
    Jul 2010
    Posts
    13
    I already checked my firewall and selinux. . .

    Its in disable only. . .??

    any other way???

  7. #7
    Just Joined!
    Join Date
    Jun 2010
    Posts
    25

    Wink Mounting NFS Share

    on nfs server side try with these option it might work
    vim /etc/exports
    /<sharename> <*.your_domain_name>(rw,sync,no_root_squash)

    then type
    exportfs -rv
    and restart the desired services

    on client side type

    showmount -e <server_ip>
    if your shared folder is been listed then type
    cd /net/<server_ip>/<shared_folder_name>
    or
    mount -t nfs <server_ip>/<shared_folder_name>

  8. #8
    Just Joined!
    Join Date
    Jul 2010
    Posts
    13
    Guys still getting the same error. . i have tried all steps u told. . .its urgent help

  9. #9
    Just Joined!
    Join Date
    Jun 2010
    Posts
    25

    Thumbs up

    On client side
    mount -t nfs <server_ip>:<shared_folder_name> <mount _point>
    mount -t nfs 192.168.0.254:/myshare /mnt
    here 192.168.0.254 is nfs server ip
    dont forget to give ":" after server ip
    and /mnt is mount pount

  10. #10
    Just Joined!
    Join Date
    Jul 2010
    Posts
    13
    Thanks Friends got d desired output. . .Success

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...