Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I customarily mount several (W)LAN NFS shares on my laptop running Ubuntu (7.10). I try to remember to manually dismount them when I take the laptop off the LAN, but sometimes I forgot, or the cable falls out, or the wireless connections is momentarily dropped; in such cases, I find it virtually impossible to remount the shares: I try restarting NFS, portmapper, networking, restarting X, anything else I can think of to no avail. Likewise nautilus hangs and the open file dialogs in my apps don't work (probably because I have the NFS mounts bookmarked in nautilus). The only remedy is to reboot.
I seem to recall earlier versions of Ubuntu being more forgiving about lost NFS mounts, but that is perhaps another matter.
In any case:
Is there a way of mounting NFS shares in a more robust way? I usually just run it like mount host:/some/export mountpoint without any options.
Is there some specific way of restarting NFS that I should know of?
Alternately, is there an alternative to NFS which would be better at handling this kind of situation? (My shares are on a Fedora 8 box).
SSHFS is a pretty simple setup, all you need to do is have SSH running on one box & sshfs + fuse on the other. Once your connections been dropped try using umount to unmount the directory. Sometimes I forget to unmount my sda1 thumbdrive before I pull it out and have to manually do:
My experience with NFS shares is the same as yours. . .when it flakes, it just totally hoses. I've not found a way around it other than restarting the client.
In my experience it happens particularly when either a nautilus window is displaying a share or an app has opened a file on one. There must be some subsystem, like maybe udev, which crashes when this happens.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.