Technical article 109266

Trying to quit out of the mkdev tape routine leaves the system in an inconsistent state.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

When I try to quit out of mkdev tape, it still creates the special device files and applicable links. Choosing "q" to quit shows:

Tape Driver successfully configured Default special devices created with the following links:

/dev/xct0   linked to   /dev/xStp0
/dev/rct0   linked to   /dev/rStp0 and  /dev/rmt/0b
/dev/nrct0  linked to   /dev/nrStp0 and /dev/rmt/0bn

When I choose to view the current SCSI and Enhanced IDE tape drive configuration I see:

Unit            Description
0               Generic SCSI-1/SCSI-2 tape drive

If I try to remove this tape the system reports:

There are currently no SCSI tape drives configured in the
/etc/conf/cf.d/mscsi file.  Do you wish to continue?

Solution

To work around this problem, take these steps:

After aborting the mkdev tape routine with the "q" option,
do _not_ relink or rebuild the kernel.  Instead,
cd to /etc/conf/pack.d/Stp and, using your favorite editor,
edit the space.h file.

Remove the line at the end of the file after the last comments. The comments right before the line to be removed should look like this:

/*BEGIN SCO_STP ENHANCEMENTS*/

The next line, the one to be removed, looks like this:

{ 0,0, -1, gen_Stp_route };

It is followed by this line, which remains in the file:

/*End SCO_STP ENHANCEMENTS*/
Save your changes and exit.

Next, type "mkdev tape" and choose option 6 to verify that there are no longer any generic SCSI tape drives configured.

From the Xinuos technical article database, record 109266. Reproduced with permission. The original is at www.sco.com/ta/109266, which is reachable but blocked from search engines.

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.