2 .\" Copyright (c) 1997-2014 Erez Zadok
3 .\" Copyright (c) 1990 Jan-Simon Pendry
4 .\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine
5 .\" Copyright (c) 1990 The Regents of the University of California.
6 .\" All rights reserved.
8 .\" This code is derived from software contributed to Berkeley by
9 .\" Jan-Simon Pendry at Imperial College, London.
11 .\" Redistribution and use in source and binary forms, with or without
12 .\" modification, are permitted provided that the following conditions
14 .\" 1. Redistributions of source code must retain the above copyright
15 .\" notice, this list of conditions and the following disclaimer.
16 .\" 2. Redistributions in binary form must reproduce the above copyright
17 .\" notice, this list of conditions and the following disclaimer in the
18 .\" documentation and/or other materials provided with the distribution.
19 .\" 3. Neither the name of the University nor the names of its contributors
20 .\" may be used to endorse or promote products derived from this software
21 .\" without specific prior written permission.
23 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 .\" File: am-utils/fixmount/fixmount.8
44 .Nd fix remote mount entries
56 that can delete bogus mount entries in remote
59 The actions specified by the options are performed for each
63 .Bl -tag -width indent
65 These options work as in
67 except that only entries pertaining to the local host are printed.
69 Removes those remote mount entries on
71 that do not correspond to current mounts, i.e., which are left-over
72 from a crash or are the result of improper mount protocol.
73 The actuality of mounts is verified using the entries in
79 except that only a notification message is printed for each bogus entry
81 The remote mount table is not changed.
83 Issues a command to the remote mountd declaring that
85 of its file systems have been unmounted.
86 This should be used with caution, as it removes all
87 remote mount entries pertaining to the local system, whether or not any
88 file systems are still mounted locally.
91 Suppresses error messages due to timeouts and
92 .Dq Li "Program not registered" ,
93 i.e., due to remote hosts not supporting RPC or not running
96 Pretend the local hostname is
98 This is useful after the local hostname has been changed and rmtab entries
99 using the old name remain on a remote machine.
100 Unfortunately, most mountd's will not be able to successfully handle removal
101 of such entries, so this option is useful in combination with
105 This option also saves time as comparisons of remotely recorded and local
106 hostnames by address are avoided.
109 .Bl -tag -width ".Pa /etc/rmtab"
111 List of current mounts.
113 Backup file for remote mount entries on
128 .%B "Linux NFS and Automounter Administration"
129 .%O ISBN 0-7821-2739-8
134 .Pa http://www.am-utils.org/
136 .%T Amd \- The 4.4 BSD Automounter
144 .An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk ,
145 Department of Computing, Imperial College, London, UK.
147 .An Erez Zadok Aq ezk@cs.columbia.edu ,
148 Department of Computer Science, Columbia University, New York, USA.
150 .An Other authors and contributors to
154 file distributed with
157 .An Andreas Stolcke Aq stolcke@icsi.berkeley.edu
159 .An Erez Zadok Aq ezk@cs.sunysb.edu ,
160 Computer Science Department, Stony Brook University, Stony Brook, New York, USA.
162 Other authors and contributors to am-utils are listed in the
164 file distributed with am-utils.
166 No attempt is made to verify the information in
170 Since swap file mounts are not recorded in
172 a heuristic specific to SunOS is used to determine whether such a mount
173 is actual (replacing the string
177 and verifying the resulting path).
179 Symbolic links on the server will cause the path in the remote entry to differ
182 To catch those cases, a file system is also deemed mounted if its
184 mount point is identical to the remote entry.
185 I.e., on a SunOS diskless client,
186 .Pa server:/export/share/sunos.4.1.1
189 Since the local mount point is
191 as well this will be handled correctly.
193 There is no way to clear a stale entry in a remote
196 local hostname (or whatever reverse name resolution returns for it)
198 To take care of these cases,
201 file has to be edited and
207 calls can only be changed by recompiling.
208 The defaults are 2 seconds for client handle creation and 5 seconds for