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/adminAll 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=warnOnce this file is created, run the following command:
# mrgadmin dosdrive add dosc: <filename>: doscwhere <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), mrgadminresetMerge Documentation, Chapter 6.