Technical article 105062

I cannot use the dir directive to boot(HW) to view hd(42).

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

I want to use the dir directive to boot(HW) to view the contents of a disk on my system. If I issue the command:

dir hd(40)

I get a listing of the /stand filesystem of my hard disk. However, if I try to read the root filesystem on my hard disk using the command:

dir hd(42)
I get the error message:
not a directory
. not found
Can't open hd(42)

Cause

The dir command to boot(HW) can only read AFS and EAFS root filesystems. It cannot read DTFS or HTFS filesystems.

The /stand filesystem (hd(40)) is an EAFS filesystem, but on OpenServer 5.0 installations the root filesystem is normally HTFS. Therefore, you cannot use the dir command on such filesystems.

If your root filesystem is EAFS or AFS and you get the error message mentioned above, your root filesystem is corrupt and you will need to recover the filesystem.

Solution

If your root filesystem is corrupt, see TA104767 "Recover OpenServer 5 root filesystem after crash if backups, boot/root exist" for details about how to recover your system from backup.

A future release of boot(HW) may support filesystems other than AFS and EAFS.

NOTE:     To view the contents of a floppy disk at boot time you can enter the
          following command at the boot prompt:
Boot
: dir fd(61)

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