LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-19-2001, 08:51 PM   #1
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
umounting NFS


Hi all,

I mounted a directory with NFS bt executing the following command:

mount computer_host:/home/jon /home/tmp

It goes ok and I can use it as I wish on any of my machines it is mounted on (lan).
How do I unmount it? If I type:

umount computer_host:/home/jon /home

I get a message saying it isn't even mounted???
Any ideas?

Jon
 
Old 06-19-2001, 11:20 PM   #2
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
Have you tried:

# umount /home

I find if I attempt to unmount the directory it's mounted to(or mount point if you'd rather be specific) that it works just as well. Another option is:

# more /etc/mtab

which shows ALL currently mounted filesystems, then you can umount whichever the NFS is attached too. One thing to note is that you cannot be in a directory on the NFS system(or you'll get an in use error).

J
 
Old 06-20-2001, 07:42 AM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Re: umounting NFS

Quote:
Originally posted by jonfa
mount computer_host:/home/jon /home/tmp
You probably want to specify some options when you mount your NFS shares. If you are on a unswitched LAN (so Coax or a hub) try the following:

mount -t nfs -o async,rsize=4096,wsize=4096 server:/share /someDir

This forces all IO to be done asynchronosly (sp?) and your read size and write size to be a bit friendlier for Intel boxes (if you're on a SPARC or something then this is different - IIRC its something to do with the CPUs page size - but don't quote me on it).

If you on a switched LAN then you might want to leave our the 'async' option.

As for the umount I've just always used umount /someDir without any problems.

HTH

Jamie...
 
Old 06-20-2001, 06:40 PM   #4
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Original Poster
Rep: Reputation: 30
I still cannot seem to unmount the nfs directory. If I try:

umount server:/directroy

I get a DEVICE IS BUSY reply.
Any ideas?

Jon
 
Old 10-27-2003, 05:52 PM   #5
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
jonfa,

did you get it to umount in the end?

I am having the same problem, and so do a lot of people . Noone seems to have an answer.

thanks
hamish
 
Old 10-27-2003, 05:57 PM   #6
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
Ok, i just found the trick!!! (pity it SUCKS so bad)

remove the line in /etc/exports which contains the offnding drive, save and exit. Run exportfs -ra and then umount. perfect.

Pity it is so fidly. There MUST MUST MUST be a better way.

thanks
Hamish
 
Old 10-27-2003, 05:58 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
If you mounted nfs directory to /mnt/<nfs_drive>

umount /mnt/<nfs_drive>
 
Old 10-27-2003, 06:07 PM   #8
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
My cd drive in my Server is /mnt/export/cdrom.

Even if I 'umount /mnt/export/cdrom', I still get told that it is busy....strange...

why would unmounting the directory be any different from unmounting the device itself?

hamish
 
Old 12-06-2005, 02:37 PM   #9
Murmlrmpf
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Rep: Reputation: 0
>>even if outdated, google finds this post<<

I had the same problem and an appropriate solution:
use the -l (Lazy ->man) option

umount -l /path/to/share

works like a charm, without editing /etc/exports ;-)
 
Old 12-14-2007, 03:01 PM   #10
aix4200
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Rep: Reputation: 0
fix for unmount

Here is a fix for unmount http://sysdigg.blogspot.com/2007/12/...-in-linux.html
 
  


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
umounting a broken CD G!m! Fedora 7 07-04-2005 12:43 AM
umounting smbfs ping_wing Linux - General 6 04-25-2005 12:35 PM
Umounting NFS shared directory matta Linux - Networking 2 03-09-2004 05:31 AM
umounting NFS Syncrm Linux - General 4 10-11-2002 07:55 PM
Umounting NFS Device without rebooting after a remote system fail Larry James Linux - Networking 3 12-11-2000 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:12 PM.

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