Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
204
rated 0 times [  204] [ 0]  / answers: 1 / hits: 294487  / 2 Years ago, fri, january 21, 2022, 5:55:10

I am mounting a NFS-folder from a server to my laptop.



Unfortunately, the server goes off sometimes... The problem is, that I cannot unmount the "dead" NFS-folder. On the command-line, I get "device is busy", and via nautilus it crashes my current session.



Is there any way to unmount a NFS-folder when the server is off?


More From » nfs

 Answers
2

You can use umount -f -l /mnt/myfolder, and that will fix the problem.




  • -f – Force unmount (in case of an unreachable NFS system). (Requires kernel 2.1.116 or later.)


  • -l – Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.)




Source:Linux Complete Command Reference


[#31328] Friday, January 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ameatoes

Total Points: 321
Total Questions: 106
Total Answers: 112

Location: Belarus
Member since Sat, Jul 18, 2020
4 Years ago
ameatoes questions
Tue, Aug 16, 22, 22:50, 2 Years ago
Fri, May 14, 21, 03:36, 3 Years ago
Sat, Oct 8, 22, 01:00, 2 Years ago
Fri, Feb 17, 23, 14:44, 1 Year ago
;