LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-05-2009, 10:43 AM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
unmounting all nfs filesystems without unmounting local ones


Hi there --

I want to unmount all NFS filesystems on one of our systems, while retaining the local mounts. The umount -a command comes to mind, but
when I run it, the /boot filesystem also gets unmounted, and I need
that one to remain available.

What would the correct command syntax to use in this case. The operating
system in question is the Fedora Core 2 distribution. Thanks.
 
Old 03-05-2009, 11:00 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
why not
# umount -a -t nfs
this will umount all file systems which are nfs

<from man page>
-t vfstype
Indicate that the actions should only be taken on file systems
of the specified type. More than one type may be specified in a
comma separated list. The list of file system types can be pre-
fixed with no to specify the file system types on which no
action should be taken.

<//>
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulty unmounting NFS exported filesystems rperlberg Linux - Server 2 05-11-2007 01:12 PM
Unmounting remote filesystems, is there a way to stop that? M$ISBS Slackware 13 05-11-2007 12:05 PM
Unmounting remote filesystems? BajaNick Linux - General 2 05-17-2004 11:22 PM
Unmounting NFS filesystems: Cannot MOUNTPROG RPC: RPC ErnstVikenstein Linux - General 4 05-31-2003 12:10 AM
unmounting NFS filesystems failed??? matjaz85 Linux - General 1 05-02-2002 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:22 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