Can’t mount NFS share from linux server on windows

21,261

Try executing the following command
mount 192.168.0.1://home/files Z:

This should work for you.

If you want to mount the root folder, then execute the command
mount 192.168.0.1:/! Z:

PS: As for why this works, have no idea, I am a total NFS noob... If anyone knows please share it in the comments.

Share:
21,261

Related videos on Youtube

tijagi
Author by

tijagi

Updated on September 18, 2022

Comments

  • tijagi
    tijagi over 1 year

    There is a linux server supporting NFS v3 and 4, and a virtual machine with WinXP running a client service for NFS. XP can ping the server, but cannot mount NFS shares.

    From /etc/exports:

    /home/files              
    192.168.0.0/24(ro,all_squash,anonuid=1003,anongid=1003,insecure,no_subtree_check)
    

    --debug option is passed to nfsd, but no corresponding output in /var/log/messages was seen. Looks like requests didn’t come to the server at all.

    On windows when I run

    mount 192.168.0.1:\home\files Z:
    

    I got

    ERROR — Invalid command line argument
    mount 192.168.0.1:\home\files Z:
          ^^^^^^^^^^^^^^^^^^^^^^^
    

    If I go with

    net use Z: 192.168.0.1:\home\files
    

    It throws

    System error 67 has occurred. 
    The network name cannot be found.
    

    After small change in address

    net use Z: \\192.168.0.1\home\files
    

    It skips for a second then gives another error:

    System error 1231 has occurred.
    The network location cannot be reached. For information about network troubleshooting, see Windows Help.
    

    According to the digital signature and the last mod time of the ‘UNIX services’ downloaded, they’re presumably of 2003–2004 year. The Linux kernel running the server is new—3.10, so there might be a some kind of incompatibility. However, NFS v4 was released yet in the December 2000, so I’m not sure. I’ve tried to disable windows’s firewall, but with no luck. The server shouldn’t be blocking any ports for the NAT.

    • user16081-JoeT
      user16081-JoeT over 9 years
      did you try to map through windows explorer to the location \\192.168.0.1?
    • tijagi
      tijagi over 9 years
      @user16081-JoeT I’ve tried to RMB on ‘My Computer’ → Add new remote volume… (or something like that, the system interface is localized, and I can’t find how to switch it to English, sadly), then after suggested Z: letter I enter \\192.168.0.1\home\files; two windows appear next: one indicating search process nad the other with error ‘Couldn’t find remote folder.’
    • user16081-JoeT
      user16081-JoeT over 9 years
      did you try without the path \home\files ? If it's accessible at all, windows should present you with a folder (\home, ideally) that you could then click on and see if there's an error or prompt or what...
    • tijagi
      tijagi over 9 years
      @user16081-JoeT how will that work if the /home isn’t exported? I can guarantee, that the share is set up well, because other VMs in the network accessing it without problems. They’re linux, though.
    • Giovanni Tirloni
      Giovanni Tirloni over 9 years
      Running NFS on Windows is looking for trouble. Better to install Samba on this Linux server and mount over SMB.
  • Falcon Momot
    Falcon Momot over 9 years
    While this might answer the question, we generally appreciate some explanation as to why and how.
  • Admin
    Admin over 6 years
    mount command comes from a windows feature called nfs-client (that may be enabled from powershell by install-windowsfeature nfs-client command).