Technical article 106481

Df(C) and mount(ADM) report erroneous information.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

The df(C) command reports "cannot stat" error message, or reports
no filesystem information, or has erroneous information for the
filesystems mounted on the system.  In addition, the mount(ADM)
command has erroneous information about the filesystems.

Cause

The file that contains information about filesystems in use by the
system is corrupted.  This file is /etc/mnttab.

Solution

To recreate the mount table from scratch, issue the following command:

devnm / | setmnt

For SCO OpenServer 5.0, you will also want to include /stand, as:

devnm / /stand | setmnt
This will create a new mount table that has only the root
filesystem as an entry.  If you have additional filesystems,
you will need to mount these yourself.  You may mount them
using the mount(ADM) command or reboot your system and it
will mount them automatically.

From the Xinuos technical article database, record 106481. Reproduced with permission. The original is at www.sco.com/ta/106481, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.