Technical article 105724

How can I get and record information about disks, partitions, and divisions?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4

Written · Last revised

Problem

I want to view information about my disks, partitions, and divisions. I also want to record this information.

Solution

There is a public domain utility for this purpose, called "divisions", which is available for downloading from:

ftp://ftp.armory.com/pub/admin/divisions

To use divisions, you will also need gawk.

For SCO XENIX and SCO UNIX Release 3.2 Version 4.x, download:

ftp://ftp.armory.com/pub/scobins/3.2v4/gawk
For SCO OpenServer Release 5.0.x, download:
ftp://ftp.armory.com/pub/scobins/gawk

Place the files under /local/bin/, and make them executable: (Note that "#" indicates the root command line prompt.)

# chmod 700 divisions
# chmod 755 gawk

To view instructions for using divisions, use the -h flag:

# divisions -h

It is a good idea to check that you have current hardcopy output of divisions in your system log any time changes are going to be made to your disk or filesystem configuration, and to make new hardcopy when the changes are completed:

# divisions | pr | lp -d<printer> -t<user>
NOTE:     Divisions and gawk are public domain software, and not part of any
          SCO-supported product.

See also

The manual pages for awk(C), chmod(C), crash(ADM), divvy(ADM), fdisk(ADM), dparam(ADM), lp(C), and mscsi(F).

TA103327, "Minor numbers for first 4 hard disks, fdisk partitions,
divvy divisions."

TA103862, "Explanation of the hard drive minor number scheme."

TA104863, "How do I add a SCSI disk that has data I want to keep?"

Documentation for gawk can be found at:

http://hill.ucs.ualberta.ca/Documentation/Info/by-node/gawk-3.0.3/gawk_toc.html

For a more detailed understanding of the divisions utility, see the comments in the program:

# view /local/bin/divisions

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