Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!sdd.hp.com!hplabs!hpcc05!hpcc01!lthompso From: lthompso@hpcc01.HP.COM (Larry L. Thompson) Newsgroups: comp.unix.wizards Subject: Re: detecting a file system mounted via NFS Message-ID: <2620003@hpcc01.HP.COM> Date: 5 Jun 91 20:04:50 GMT References: <977@aeshq.UUCP> Organization: HP Corp Computing & Services Lines: 24 > >If I have a file system mounted on my host from a remote host through NFS, is >there a way that that file system can be detected as being mounted on it? > >I want to be able to do this in order to allow checking of these file systems >before shutting down so that they can be properly umounted from the remote >host rather than having to time out each time they are checked. > >I guess a script which performs a 'df' on all systems would be possible, if >not extremely sluggish, and I didn't see anything from netstat. > >Any suggestions? /usr/etc/shoumount will give you this information. Be very careful, if any client shutdown ungracefully this file will not tell truth. Read the man page very carefully. Larry ------------------------------------------------------------------------------ Larry L. Thompson Hewlett-Packard Co. Unix: lthompso@hpcmfs.corp.hp.com 3500 Deer Creek Rd 26U-13 HPDesk: larry_l_thompson@hp0000 Palo Alto, CA. 94304 Tel: (415) 857-4437