Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-25-2010, 02:13 PM   #1
Registered: Dec 2003
Posts: 78

Rep: Reputation: 1
Simple way to umount NFS mount in linux


I've mounted a share using standard nomenclature for the NFS mount command with the following command line:

mount -t nfs -o rw {IP address1}:/ /mnt_for_70 / {IP address2}(rw)

mnt_for_70 is a mount point I created on {IP address2}

I'm confuse and want to be sure I use the correct command on the correct host to correctly umount the nfs share.

Would I execute umount /mnt_for_70 on {IP address2}

Not sure if such a simple command will work. As this is a semi-production host pair, I hesitate to just umount so simply & I have no test systems to try this on...

Thanks in advance for your time and assistance.

Old 10-25-2010, 02:34 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,222
Blog Entries: 9

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
That seems a bit confused. On IP address2 you should simply type the following to do the mount - the / and IP address2 you have aren't meaningful unless you're mounting on a secondary IP of the host which I gather you aren't.

mount -t nfs -o rw {IP address1}:/ /mnt_for_70
On IP address2 you simply type the following to unmount it:
umount /mnt_for_70
Unmounting a filesystem doesn't do anything to its contents. You should be able to remount it again after you unmount it. (This is also true of device filesystems - if you don't destroy or reformat the underlying device the data is still there - it simply isn't visible until mounted.)
Old 10-25-2010, 05:00 PM   #3
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1
Thanks MensaWater...

My bad on the Code line... I inadvertently mixed the exports file entry to the end of the line I entered.

I'll try to do the umount as you suggest. I appreciate your time and consideration.



nfs, umount

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mount.nfs: mount to NFS server 'jesse' failed: timed out, retrying keupie Linux - Networking 3 06-05-2009 07:03 PM
Execute command on mount and integrate with gnome-mount / umount Peter Rhone Linux - Newbie 4 11-18-2008 05:28 AM
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 8 09-22-2006 03:34 AM
util-linux-2.12r error on 'make -C mount mount umount' james penguin Linux From Scratch 2 08-28-2006 11:55 PM
Strange NFS mount / umount problem .. ..or Bug? PeteRossi Slackware 3 03-07-2006 09:25 PM

All times are GMT -5. The time now is 09:58 AM.

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