SUMMARY:Help on Man and Mount

From: Lau, Victoria H (vlau@msmail2.hac.com)
Date: Tue Apr 01 1997 - 21:23:52 CST


Apologize for taking this long to post my summary--I was waiting for a
good time to unmount all the file systems which include the users' home
directories. My thanks to all who responded:

- Ric Anderson
- Louis Hoo
- Danny Johnson
- William Wright
- Paul Hubbard
- Sophia Sameera Corsava
- Jay Lessert
- Jason Keltz
- Sanjay Srivastava
- Karl e. Vogel
- Rick von Richter
- Torsten Metzner
- mjb@liffe.com

Original question:
=================
> I am trying to get help on mount by using the man facility. However,
> I could not access the man pages from man1m even though they
> exist there.
>
> # man -d mount
> /usr/man: from man.cf, MANSECTS=1,1m,1c,1f,1s,1b,2,3,3c,3s,3x,3i,
> 3r,3t,3n,3m,3k,3g,3e,3b,9f,9s,9e,9,4,5,7,7d,7i,7m,7p,7fs,4b,6,l,n
> /usr/openwin/man: search the sections lexicographically
>
> mandir path = /usr/man
> search in = /usr/man/windex file
> search an entry to match mount.1
> search an entry to match mount.1m
> search an entry to match mount.1c
> search an entry to match mount.1f
> search an entry to match mount.1s
> search an entry to match mount.1b
> search an entry to match mount.2
> unformatted = /usr/man/man2/mount.2
> formatted = /usr/man/cat2/mount.2
> cd /usr/man; nroff -u0 -Tlp -man /usr/man/man2/mount.2 | col -x >
> /tmp/mpa000Ia
> trap '' 1 15; /usr/bin/mv -f /tmp/mpa000Ia /usr/man/cat2/mount.2 2>
/dev/null
>
>
> # man -l mount
> mount (2) -M /usr/man
>
>
> # cd man1m
>
>
> # dir mount*
> -r--r--r-- 1 bin bin 6514 Apr 11 1996 mount.1m
> -r--r--r-- 1 bin bin 6163 Apr 11 1996 mount_cachefs.1m
> -r--r--r-- 1 bin bin 3995 Apr 11 1996 mount_hsfs.1m
> -r--r--r-- 1 bin bin 10842 Apr 11 1996 mount_nfs.1m
> -r--r--r-- 1 bin bin 3094 Apr 11 1996 mount_pcfs.1m
> -r--r--r-- 1 bin bin 2781 Apr 11 1996 mount_s5fs.1m
> -r--r--r-- 1 bin bin 2464 Apr 11 1996 mount_tmpfs.1m
> -r--r--r-- 1 bin bin 4474 Apr 11 1996 mount_ufs.1m
> -r--r--r-- 1 bin bin 2933 Apr 11 1996 mountall.1m
> -r--r--r-- 1 bin bin 1438 Apr 11 1996 mountd.1m
>
>
> # man -s 1m mount
> No entry for mount in section(s) 1m of the manual.
>
>
> # man -M /usr/man/man1m mount
> No manual entry for mount.
>
> What I want to find out from "man mount" is how to umount
> all the nfs file systems listed in /etc/vfstab. When I mount
> them, I use "/sbin/mount -a -F nfs." I was hoping to use
> something similar like "umount -a -F nfs" but that failed.

==================================================================
Solutions:

1. On man:

    I don't know how my windex got out-of-date but apparently that
    was the culprit. Once I did a "catman -w" everything went fine.
    I combined all the responses on this topic as follows:

This could be a case of "windex out of date". Try
  man -F -s1m mount
If that works, then, as root
  catman -w -M/usr/man
to rebuild windex.
*****

Check the "cat1m" directory. Does it exist and have good perms?
Here is what they are here:

        bengal PROD |-- /net/bobcat/home/bobcat3/p/paul --| cd /usr/man
        bengal PROD |-- /usr/man --| ls -ld man1m cat1m
        drwxrwxr-x 2 root other 8704 May 17 1996 cat1m/
        drwxr-xr-x 2 bin bin 8704 Feb 1 1996 man1m/
        bengal PROD |-- /usr/man --| ls -l man1m/mount*
        -rw-r--r-- 1 bin bin 6545 Jul 18 1994 man1m/mount.1m
        -rw-r--r-- 1 bin bin 5473 Jul 18 1994 man1m/mount_cachefs.1m
        -rw-r--r-- 1 bin bin 3994 Jul 18 1994 man1m/mount_hsfs.1m
        -rw-r--r-- 1 bin bin 7792 Jul 18 1994 man1m/mount_nfs.1m
        -rw-r--r-- 1 bin bin 3100 Jul 18 1994 man1m/mount_pcfs.1m
        -rw-r--r-- 1 bin bin 2680 Jul 18 1994 man1m/mount_s5fs.1m
        -rw-r--r-- 1 bin bin 2145 Jul 18 1994 man1m/mount_tmpfs.1m
        -rw-r--r-- 1 bin bin 3407 Jul 18 1994 man1m/mount_ufs.1m
        -rw-r--r-- 1 bin bin 2220 Jul 18 1994 man1m/mountall.1m
        -rw-r--r-- 1 bin bin 1123 Jul 18 1994 man1m/mountd.1m
        bengal PROD |-- /usr/man --| ls -l cat1m/mount*
        -rw-r--r-- 1 root other 7747 Feb 5 1996 cat1m/mount.1m
        -rw-r--r-- 1 root other 6908 Feb 5 1996 cat1m/mount_cachefs.1m
        -rw-r--r-- 1 root other 5006 Feb 5 1996 cat1m/mount_hsfs.1m
        -rw-r--r-- 1 root other 9773 Feb 5 1996 cat1m/mount_nfs.1m
        -rw-r--r-- 1 root other 3402 Feb 5 1996 cat1m/mount_pcfs.1m
        -rw-r--r-- 1 root other 3146 Feb 5 1996 cat1m/mount_s5fs.1m
        -rw-r--r-- 1 root other 2412 Feb 5 1996 cat1m/mount_tmpfs.1m
        -rw-r--r-- 1 root other 4257 Feb 5 1996 cat1m/mount_ufs.1m
        -rw-r--r-- 1 root other 2067 Feb 5 1996 cat1m/mountall.1m
        -rw-r--r-- 1 root other 1259 Feb 5 1996 cat1m/mountd.1m
        bengal PROD |-- /usr/man --|
*****

1) The absolutely brute-force way you can use if all else fails is:

    % nroff -man /usr/man/man1m/mount.1m | more -s

2) The "man -s 1m mount" command absolutely should have worked, *unless*
    you've got a corrupted windex file. Try "man -F -s 1m mount". The
    -F bypasses the windex file.

3) The "man -M /usr/man/man1m mount" command has an error, it should
    be "man -M /usr/man mount". You can't choose sections with -M,
    only with -s.

4) Most likely you need to do a "catman -w -M /usr/man", because someone
    started it at one time and either did not let it finish, or managed
    to corrupt the windex file (/usr/man/windex). By default, man
    relies on the windex file, if it exists. You also could just remove
    the windex file, but please don't do that (man -k won't work!).

In general, you need to be aware of all the places you have man pages
and make sure the windex files are updated when appropriate.
*****

It sounds like you're missing the proper windex files. I think
"/usr/lib/makewhatis /usr/man" will generate what you need.
*****

Check the environment variable MANPATH. This is the setting I use:

setenv MANPATH
/usr/local/man:/usr/share/man:/usr/openwin/share/man:/usr/local/lib/perl5/man

If it still doesn't work, you might want a better manpage viewer. There's
 one called "woman" that I really like.

=========================================================================

2. On mount:

    I tested the commands "umountall -F nfs" and "umountall -r"
    and both worked beautifully.

    Other responses are:

    Make sure there are no proceses running that reside on or write
    to the file systems you wish to unmount. Be especially mindful
    of the automounter - it will hold on to a file system for a
    bit (i.e. /home after all users have "logged off").
*****

    cp /etc/fstab /etc/fstab.old
    umount and leave all the nfs fs inside.
    umountall
    and then you put the original fstab back ???

Thanks, everybody.

Vicky Lau
vlau@msmail2.hac.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:49 CDT