Rebuilding /etc/mnttab

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(New page: From ''mnttab''(4): The file /etc/mnttab is really a file system that provides read-only access to the table of mounted file systems for the current host. To rebuild '...)
Current revision (16:44, 21 January 2008) (edit) (undo)
 
Line 7: Line 7:
# '''umount /etc/mnttab'''
# '''umount /etc/mnttab'''
# '''mount -F mntfs mnttab /etc/mnttab'''
# '''mount -F mntfs mnttab /etc/mnttab'''
 +
 +
=== Links ===
* [http://www.unix.com/unix-advanced-expert-users/46140-etc-mnttab-zero-length-i-have-done-silly-thing.html /etc/mnttab is zero length - I have done a silly thing]
* [http://www.unix.com/unix-advanced-expert-users/46140-etc-mnttab-zero-length-i-have-done-silly-thing.html /etc/mnttab is zero length - I have done a silly thing]

Current revision

From mnttab(4):

    The file /etc/mnttab is really a file system  that  provides
    read-only  access  to  the table of mounted file systems for
    the current host.

To rebuild /etc/mnttab on Solaris systems on which it is a file system (Solaris 8 and later?), issue the following commands:

# umount /etc/mnttab
# mount -F mntfs mnttab /etc/mnttab

Links

Personal tools