FIXMOUNT(8)
π FIXMOUNT β the fix remote mount entries glow-up π
okay bestie, so this is fixmount(8) from the System Manager's Manual section, and honestly? it's giving janitor energy in the best way possible. it cleans up mess. let's go β¨
πΈ NAME πΈ
fixmount β fix remote mount entries π§Ήβ¨
π SYNOPSIS π
fixmount [ -adervq ] [ -h name ] host ...
π¦ DESCRIPTION π¦
so like, fixmount is a variant of showmount(8) β you know her, you love her β except this one has β¨powersβ¨: it can delete bogus mount entries sitting in remote mountd(8) daemons. not just look at them. delete them. slay.
and the way it works is: the actions you ask for with the options get performed for each host in turn. one at a time, bestie. no cutting the line. π
β¨ OPTIONS β¨
-a,-d,-eβ these three work exactly like they do inshowmount(8), no cap, with one little twist: only the entries that pertain to the local host get printed. that's it. that's the twist. π«Ά-rβ removes those remote mount entries on host that don't correspond to current mounts. i.e. the leftovers from a crash, or the result of improper mount protocol. π the way it checks what's actually real? it verifies the actuality of mounts using the entries in/etc/mtab. iconic forensic queen behavior.-vβ verify remote mounts. it's like-r's chill cousin: instead of deleting anything, it just prints a notification message for each bogus entry it finds. the remote mount table is not changed. it's looking, not touching. π-Aβ issues a command to the remotemountddeclaring that ALL of its filesystems have been unmounted. π¨
use this with caution bestie, seriously β it removes all remote mount entries pertaining to the local system, whether or not any filesystems are still mounted locally. it does not care. it does not check. it is not asking. π
-qβ be quiet π€«. suppresses error messages due to timeouts and"Program not registered"β i.e. the ones that happen because remote hosts aren't supporting RPC or aren't runningmountd. no drama, no receipts.-hname β pretend the local hostname is name. π super useful after your local hostname has been changed andrmtabentries using the old name are still chillin' on a remote machine like they pay rent there.
unfortunately π most mountd's won't be able to successfully handle removal of such entries, so this option is useful in combination with -v only.
bonus: this option also saves time, because comparisons of remotely recorded and local hostnames by address are avoided. efficiency queen. β‘
π FILES π
/etc/mtabβ List of current mounts. π/etc/rmtabβ Backup file for remote mount entries on NFS server. πΎ
π SEE ALSO π
showmount(8),mtab(5),rmtab(5),mountd(8C).- the ``am-utils''
info(1)entry. - Linux NFS and Automounter Administration by Erez Zadok, ISBN
0-7821-2739-8, (Sybex, 2001). http://www.am-utils.org- Amd - The 4.4 BSD Automounter
π BUGS π (aka the fine print, read it fr fr)
- no attempt is made to verify the information in
/etc/mtabitself. it just trusts her. π - since swap file mounts are not recorded in
/etc/mtab, a heuristic specific to SunOS is used to determine whether such a mount is actual β that means replacing the string"swap"with"root"and verifying the resulting path. yes really. π§ - symbolic links on the server will cause the path in the remote entry to differ from the one in
/etc/mtab. to catch those cases, a filesystem is also deemed mounted if its local mount point is identical to the remote entry. i.e., on a SunOS diskless client,server:/export/share/sunos.4.1.1is actually/usr/share. since the local mount point is/usr/shareas well, this will be handled correctly. π― - there is no way to clear a stale entry in a remote
mountdafter the local hostname (or whatever reverse name resolution returns for it) has been changed. to take care of these cases, the remote/etc/rmtabfile has to be edited andmountdrestarted. manually. with your hands. π - the RPC timeouts for
mountdcalls can only be changed by recompiling. the defaults are2seconds for client handle creation and5seconds for RPC calls. yes, recompiling. in this economy. π
π AUTHORS π
- Andreas Stolcke
<stolcke@icsi.berkeley.edu>. - Erez Zadok
<ezk@cs.sunysb.edu>, Computer Science Department, Stony Brook University, Stony Brook, New York, USA. - Other authors and contributors to am-utils are listed in the
AUTHORSfile distributed with am-utils. π«Ά
and that's the whole page bestie!! this one's dated back to 26 Feb 1993 and it lives in the System Manager's Manual β vintage, honestly. periodt. πβ¨
π¦ where this page comes from
- fedora 43: am-utils 5:6.2.0-61.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: am-utils 5:6.2.0-61.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: am-utils 5:6.2.0-63.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: am-utils 5:6.2.0-63.fc44 Β· LicenseRef-Callaway-BSD
- Copyright (c) 1997-2014 Erez Zadok
- Copyright (c) 1990 Jan-Simon Pendry
- Copyright (c) 1990 Imperial College of Science, Technology & Medicine
- Copyright (c) 1990 The Regents of the University of California
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms