Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hd(HW) — Xenix 2.3.4g

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

badtrk(C)

divvy(C)

dos(C)

mkdev(C)



     HD(HW)                   XENIX System V                    HD(HW)



     Name
          hd - Internal hard disk drive
     Description
          The files hd00, hd01 through hd04, hd0a through hd0d, root,
          and swap provide block-buffered access to the primary hard
          disk.  The corresponding files for a second hard disk are
          listed below.

          root refers to the root file system; swap refers to the swap
          area; hd00 is the entire disk; hd01 through hd04 are the
          four partitions recognized by ROM-BIOS.  Partition one is
          generally the partition.  These special device files access
          the disks via the system's normal buffering mechanism and
          may be read and written without regard to the size of
          physical disk records.

          The following are the names of the fixed disk partitions.
          Each partition can be accessed through a block interface,
          for example /dev/hd01, or through a character (raw)
          interface, for example /dev/rhd01.

                  ____________________________________________
                       Device File Names for Fixed Disks
                     Disk 1       Disk 2        Partition
                  ____________________________________________
                   /dev/hd00    /dev/hd10    entire disk
                   /dev/rhd00   /dev/rhd10
                  ____________________________________________
                   /dev/hd01    /dev/hd11    first partition
                   /dev/rhd01   /dev/rhd11
                  ____________________________________________
                   /dev/hd02    /dev/hd12    second partition
                   /dev/rhd02   /dev/rhd12
                  ____________________________________________
                   /dev/hd03    /dev/hd13    third partition
                   /dev/rhd03   /dev/rhd13
                  ____________________________________________
                   /dev/hd04    /dev/hd14    fourth partition
                   /dev/rhd04   /dev/rhd14
                  ____________________________________________
                   /dev/hd0a    /dev/hd1a    active partition
                   /dev/rhd0a   /dev/rhd1a
                  ____________________________________________
                   /dev/hd0d    /dev/hd1d    DOS partition
                   /dev/rhd0d   /dev/rhd1d
                  ____________________________________________
                   /dev/u
                   /dev/ru
                  ____________________________________________
                   /dev/root                 root file system
                   /dev/rroot
                  ____________________________________________



     Page 1                                           (printed 8/7/87)





     HD(HW)                   XENIX System V                    HD(HW)



                   /dev/swap                 swap area
                   /dev/rswap
                  ____________________________________________
                 |                                           |
          Note that the last three file names do not exist for a
          second disk.                                       |
                 |                                           |
          The device file names for DOS partitions function similarly
          to /dev/hd?a .                                     |
                 |                                           |
          To access DOS partitions, specify letters such as ``C:'' or
          ``D:'' to indicate first or second partitions.  The|file
          /etc/default/msdos contains lines that assign a letter
          abbreviation for the DOS device name.  Refer to dos(C).
                 |                                           |
          The following table lists the minor device numbers for
          possible disk partitions.  The minor device names for the
          raw devices are identical.                         |
                 |                                           |
            _______________________________________________________
           |     |           Minor Device Numbers            |    |
           |     |              Minor                      Minor  |
           |   Partition:      Device      Partition:      Device |
           |                   Number:                     Number:|
           |______________________________________________________|
           | hd00              0         hd10              64     |
           | hd01              15        hd11              79     |
           | hd02              23        hd12              87     |
           | hd03              31        hd13              95     |
           | hd04              39        hd14              103    |
           | hd0a              47        hd1a              111    |
           | hd0d              55        hd1d              119    |
           | root              40        u (user choice)   104    |
           | swap              41        u1                105    |
           | u (on 1st disk)   42        u2                106    |
           | recover           46                                 |
           |______________________________________________________|


















     Page 2                                           (printed 8/7/87)





     HD(HW)                   XENIX System V                    HD(HW)



     Files
          /dev/hd0a                 /dev/hd1a
          /dev/rhd0a                /dev/rhd1a
          /dev/hd0?                 /dev/hd1?
          /dev/rhd0?                /dev/rhd1?
          /dev/hd0d                 /dev/hd1d
          /dev/rhd0d                /dev/rhd1d

          /dev/u
          /dev/ru
          /dev/root
          /dev/rroot
          /dev/swap
          /dev/rswap

     See Also
          badtrk(C), divvy(C), dos(C), mkdev(C)

     Diagnostics
          The following messages may be printed on the console:

               invalid fixed disk parameter table

          and:

               Error on Fixed Disk (minor n), blkno = nnnnn,
               cmd=nnnnn, status=nnnn,
               sector = nnnnn, Cylinder/head = nnnnn

          Possible reasons for the first error include:

          -  The kernel is unable to get drive specifications, such as
             number of heads, cylinders, and sectors per track, from
             the disk controller ROM.

          -  Improper configuration.

          -  The disk is not turned on.

          -  The disk is not supported.

          The second error specifies the following information:

          -  blkno : The  block number within the device.

          -  cmd : The last command sent to the disk controller.

          -  status : The first byte of error status from the disk
             controller.

          -  sector and Cylinder/head specify the location of a
             possible flaw.  This information is used with badtrk(M).



     Page 3                                           (printed 8/7/87)





     HD(HW)                   XENIX System V                    HD(HW)



     Notes
          On the first disk, hd00 denotes the entire disk and is used
          to access the master boot record and partition table. For
          the second disk, hd10 denotes the entire disk and is used to
          access its partition table.  Do not write to hd10 and hd00.


















































     Page 4                                           (printed 8/7/87)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026