LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2013, 10:09 AM   #1
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492

Rep: Reputation: 31
Question How to unmount a stuck NFS (over VPN) drive


If I type unmount /net/<server>/<path> it just hangs forever.

What's happened is the VPN link has died and the server is no longer accessible. Gnome-Shell has hung on the screen saver as a result.

Doing the following just hangs:

fuser /net/<server>/<path> hangs
df
lsof | grep "/net/"


lsof -b | grep "/net/" works but nothings listed.

How do I get out of this situation without rebooting?
 
Old 06-21-2013, 10:23 AM   #2
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492

Original Poster
Rep: Reputation: 31
Well got a little further on this. If I create a virtual IP

ifconfig p5p1:1 x.x.x.x

I can get the system partly unlocked. (still no desktop)

but unmount

unmount /net/<server>/<path>
umount.nfs: /net/<server>/<path>: Stale file handle

unmount -f /net/<server>/<path>
umount.nfs: /net/<server>/<path>: Stale file handle

unmount -lf /net/<server>/<path>
umount.nfs: /net/<server>/<path>: Stale file handle


This mount just won't go away. Any ideas?
 
Old 06-22-2013, 12:45 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
when you mounted the share did you place any kind of timeout length? if not this is going to be a problem until the system releases the mount point. you could re-establish the VPN connect?

if you are using autofs to mount this share, as you should instead of using fstab, then you could add --timeout=### --ghost

those two options will cause the connection to automatically disconnect/umount after X amount of time and does this quietly without causing issues to the system like you are having now.

as for killing the dead mount point if umount -f does not work, and you are unwilling to wait it out, you might have to reboot the system.

also you should be able to restart the GUI by either init 3, init 5 or by going to the GUI and hitting ctrl+alt+backspace. both of those commands should restart X and your GUI manager (gdm or kdm or xdm or what ever manager you are using on that system).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS refuses to unmount baltazar3 Linux - Server 2 02-21-2011 02:43 PM
Cannot unmount NFS if filesystem. jizlobber Red Hat 2 04-19-2006 11:07 AM
Slackware does not unmount NFS before going singleuser Yalla-One Slackware 5 12-11-2005 10:19 AM
Can't unmount NFS. Remote NFS system was down. PeteRossi Linux - Software 3 10-05-2003 02:23 PM
nfs unmount error mathfeel Linux - General 7 12-13-2002 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration