OpenWrt Forum Archive

Topic: NFS Client on OpenWRT Won't Mount Share, Cryptic Error Message

The content of this topic has been archived on 31 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have an nfs share on another Linux computer (running Debian Sarge) and listed in /etc/exports.  I can mount it on another computer but I can't mount it on my OpenWRT system.  I don't know if there's a syntax difference in the BusyBox commands or what the issue is because the error message is so cryptic.  I searched the OpenWRT files system and didn't find any NFS log files.  I have kmod_nfs installed, but didn't see any other nfs packages to install on OpenWRT.  I used just "mount."  This is the line in /etc/exports on the NFS server:

/data/Data/Audio/flac 172.16.7.0/255.255.255.0(ro,sync)

This is the line in /etc/fstab on the OpenWRT system:

172.16.7.2:/data/Data/Audio/flac/ /usr/share/mpd/music nfs

I had more options included, but I pared them down because I thought they might cause errors.  This is the error message I get:

mount: mounting 172.16.7.2:/data/Data/Audio/flac/ on /usr/share/mpd/music failed

When I had not entered the proper date in /etc/exports on the server I did get a message that the server didn't authorize the share, so I think they're communicating.  The directory /usr/share/mpd/music does exist on the OpenWRT system.

Am I doing something wrong?  Is there a way to get more info (I tried mount with -v for verbose but it gave me nothing worse).  I also tried using mount and specifying the info, like this:

mount -t nfs -o ro 172.16.7.2:/data/Data/Audio/flace /usr/share/mpd/music

And at first, got an error message for the option.  I removed the "-ro o" part and got the same error as I did all the other times.  I also tried without the "ro" in /etc/exports and tried removing all options in the same file, but it wouldn't work that way (nfs needs sync or rsync).

Thanks for any help on this!

(Last edited by HalNineThousand on 16 Aug 2007, 05:35)

Have you loaded the module? I forgot to do that and got same error

Thanks.  I took the easy way and just rebooted.  I don't get an error, but it just locks up when I enter the mount command now.  It happens if I just type mount or if I give all the parameters to the mount command.

Ah!  I tried -o nolock on earlier attempts and forgot to include it once I rebooted, as I said above.  That makes all the difference!

I had Googled for nfs and the key words in the error message, both on this site only and world wide and did not get that page in the links.  Thanks for the link page!

The discussion might have continued from here.