Technical article 111073

Using Merge, I get "TOKEN_NF: dos: ERROR: Could not find token 'dosc' of needed type..."

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

When I try to run the "dos" command (or related) under Merge, I receive the following error message:

TOKEN_NF: dos: ERROR: Could not find token 'dosc' of needed type. Run 'mrgadmin' to add or delete tokens or run mrgadminreset

Cause

The Merge token database has become corrupt.

Solution

 "dosc" is a token for the automatic definition of the first real
 DOS partition on the hard disk. If you have more than one DOS drive,
 then there will also be "dosd", "dose", and so on. Each time you
 reboot the system, Merge checks for DOS drives and updates or removes
these automatic definitions as needed. Therefore, the problem could
 be that there is no more "dosc" definition because there is no DOS
 "C" partition anymore.

If that is not the case, then perhaps there is a problem with the file permissions in the directory:

/usr/merge/admin

All the files in that directory should be mode 664, and typically owned by "bin" with group "sys". However, those specific ownerships are not required, as long as the files are readable by all and only writable by a privileged account.

One way to rebuild the token definition is to edit a temporary configuration file anywhere on your drive. In it, add the following lines:

attachtype=drive  <-- must be "drive"
drivename=/var/vdrive <-- Full path to virtual DOS volume
failureaction=warn

Once this file is created, run the following command:

# mrgadmin dosdrive add dosc: <filename>: dosc

where <filename> is the name of the file you just created.

See also

ta109997, "I get 'Class Not Found' errors when I use mrgadmin or xmrgconfig to configure SCO Merge."

Manual pages: mrgadmin(MERGE), mrgadminreset
Merge Documentation, Chapter 6.

From the Xinuos technical article database, record 111073. Reproduced with permission. The original is at www.sco.com/ta/111073, 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.