Subject: NFS unmounting problem
To: None <current-users@netbsd.org>
From: walt <wa1ter@myrealbox.com>
List: current-users
Date: 08/17/2003 09:19:14
I'm unable to unmount NFS mounts because of the way they appear in, well,
in the old days it would have been mtab or mnttab, but those are gone,
apparently, and I'm not sure where 'mount' gets its list of mounted fs's.

Anyway, 'mount' shows NFS mounts like this:
otherbox:/ on /mnt/ type nfs

Note the trailing / after the mount directory.  This apparently screws
things up for umount, which claims that /mnt isn't mounted.  This is
correct, of course, since /mnt/ is the one that is mounted, not /mnt .

# umount -a -t nfs
umount: /mnt: not currently mounted

# umount '/mnt/'
umount: /mnt: not currently mounted

# umount /mnt\/
umount: /mnt: not currently mounted

And umount strips the trailing / off the directory name before trying
the unmount.

Anyone else seeing this?  Any workarounds besides rebooting?