NFS on Debian Squeeze cannot be mounted by Windows
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: PUKEKOHE (50Km south of Auckland), New Zealand
Distribution: Redhat, Debian, Ubuntu
Posts: 29
Rep:
NFS on Debian Squeeze cannot be mounted by Windows
I had Debian Lenny with an NFS share set up that my Windows 7 machine could access using the Windows 7 NFS client. I updated Lenny to Squeeze and now Windows cannot access it. It just sits there for a while and then says it cannot find the path. I haven't changed anything in the setup. The exports entry is wide open and set with the options:
*(ro,no_subtree_check,insecure,all_squash)
Any ideas??
jj
Last edited by j.jensen@auckland.ac.nz; 04-17-2012 at 10:19 PM.
Maybe the NFS version changed, try running the following on the server:
Code:
rpcinfo -p localhost
You'll see the version numbers in column 2 .. it may be that the default version is now 4 and Windows can't handle it, you can disable nfs v4 by editing adding "-N 4" to rpc.nfsd startup options.
Correct, it's running 2, 3 and 4 - the problem is that it will usually offer the highest version first unless the client specifically mentions the version it wants, and I don't know whether that's possible with the Windows client.
I haven't run Debian in the last decade but going by this, you may have to add the option to RPCNFSDCOUNT in /etc/default/nfs-kernel-server, something like:
Code:
RPCNFSDCOUNT="8 -N 4"
It could also be worth seeing if you can force the NFS version in the Windows client..
Location: PUKEKOHE (50Km south of Auckland), New Zealand
Distribution: Redhat, Debian, Ubuntu
Posts: 29
Original Poster
Rep:
Thanks for the suggestion - alas, tried it and no change. I have also tried a different Windows machine, to make sure it wasn't the machine. The Windows client has very little you can set. The only page of some possible interest is the Security page, which can set any of sys, krb5, krb5i - and is set to use reserved ports. I tried turning off Kerberos - no dice - tried turning off 'reserved ports,' ditto.
This is becoming maddening! It worked fine before!
Back to basics then: is the IP address of the NFS server still the same? Can you access the NFS share from another Linux machine? Can you ping the NFS server from the Win-OS machine? Is there (now) a firewall getting in the way? You may want to re-generate (and copy over) the ssh keys, it has probably changed on the server due to its upgrade.
Location: PUKEKOHE (50Km south of Auckland), New Zealand
Distribution: Redhat, Debian, Ubuntu
Posts: 29
Original Poster
Rep:
Back to basics then: is the IP address of the NFS server still the same?
Yes
Can you access the NFS share from another Linux machine?
Haven't a Linux machine to try from at the moment but that is something I am going to give a go
Can you ping the NFS server from the Win-OS machine?
Yes
Is there (now) a firewall getting in the way?
No (neither end - and tried with two Windows machines)
You may want to re-generate (and copy over) the ssh keys, it has probably changed on the server due to its upgrade
OK - though I confess I am only vaguely aware how to do this, and especially where to put them on the Windows machine. But I had thought that the 'sys' method of security (see above about the Windows client) wouldn't be using them. And one of the Windows machines had never tried to connect to the NFS server before.
By the way, I can putty to the machine just fine from either Windows machine - and putty doesn't ask me if I trust the Linux machine - so it seems to me likely that the SSH keys are all happy.
I will try to find another Linux machine to connect to the NFS share with.
Right, that means the cause is indeed in the NFS configuration. Sometimes systematically eliminating causes can be the only way to solving the problem... :-\
As for another Linux machine: reboot one of the Win-OS machines with a Linux Live-CD, like Knoppix. Doesn't install anything to disk, unless you explicitly tell it do so...
Location: PUKEKOHE (50Km south of Auckland), New Zealand
Distribution: Redhat, Debian, Ubuntu
Posts: 29
Original Poster
Rep:
Right, that means the cause is indeed in the NFS configuration. Sometimes systematically eliminating causes can be the only way to solving the problem... :-\
Absolutely! I am 100% with you there.
Yes, going to have to do that to eliminate a problem with Windows. And if it does prove to be Windows, then I will have to use something else - maybe WinSCP - to copy data. NFS was so nice and convenient :-)
Thanks for all the help. I will report back when I have tried a test from Linux.
Location: PUKEKOHE (50Km south of Auckland), New Zealand
Distribution: Redhat, Debian, Ubuntu
Posts: 29
Original Poster
Rep:
Quote:
NFS is a Unix (and Linux) oriented file system, Win-OS has SMB (Samba to you and me) so try that for starters.
Yes - I have in the past, on a different Linux system, successfully set up Samba - but it was a real pain, and the more so because my Windows boxes are part of an Active Directory. With this new Linux machine - a little laptop with only command-line interface (no X), I had set up NFS so that my Windows machine could backup the data from it. It worked a charm - until I upgraded to Squeeze :-( I may try to set up Samba - but WinSCP is something I have used in the past as well. It's less convenient than just having a share connected, but might be easier to set up than Samba.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.