Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ edvtoc(1M) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(7)

prtvtoc(1M)

sd01(7)






       edvtoc(1M)                                                edvtoc(1M)


       NAME
             edvtoc - VTOC (Volume Table of Contents) editing utility

       SYNOPSIS
             edvtoc -f vtoc-file raw-device
             edvtoc -p raw-device

       DESCRIPTION
             The first form of the edvtoc command allows you to edit the
             contents of the VTOC (Volume Table Of Contents).  The second
             form lets you update the disk parameters stored in your VTOC
             so that they reflect the ones currently in use on your system.

          Options
             -f vtoc-file  Specifies the path location of the updated
                           (condensed format) VTOC file to be written to
                           disk.  The format of the file is slice number,
                           slice tag value, slice flag value, slice start
                           sector, slice size (in sectors).  A copy of this
                           file can be obtained for modification by using
                           the -f option of the prtvtoc command.

             -p            Specifies that the disk parameters stored in the
                           VTOC on the specified disk should be updated.
                           These parameters include the number of heads and
                           the numbers of sectors per track that are
                           defined for the specified disk device.

             raw-device    raw-device is the character special device for
                           the disk drive to be accessed.  It must be the
                           slice 0 device to represent the entire device
                           (for example, /dev/rdsk/c0b0t0d0s0).

          Files
             /dev/rdsk/cCbBtTdDs0

       USAGE
             The required procedure for editing the VTOC includes four
             steps:

             1.    Run prtvtoc(1M) using the -f option.

             2.    Edit the file created by prtvtoc to reflect the needed
                   changes to the VTOC.




                           Copyright 1994 Novell, Inc.               Page 1













      edvtoc(1M)                                                edvtoc(1M)


            3.    Run edvtoc using the edited file.

            4.    Reboot the system, so the disk driver can read the new
                  VTOC; the changes to the VTOC will not take place until
                  you perform the reboot.

            edvtoc provides four functions; reading/interpreting the
            vtoc-file, limited validity checking of the new VTOC,
            displaying the new VTOC, and writing the VTOC to the disk if
            the user requests it.

            When editing the VTOC, the following entries are the valid
            slice tags and slice permission flags.
          Slice Tags
          __________________________________________________________________
          #define V_BOOT       0x01    /* Boot slice */
          #define V_ROOT       0x02    /* Root filesystem */
          #define V_SWAP       0x03    /* Swap filesystem */
          #define V_USR        0x04    /* Usr filesystem */
          #define V_BACKUP     0x05    /* full disk */
          #define V_ALTS       0x06    /* alternate sector space */
          #define V_OTHER      0x07    /* non-unix space */
          #define V_ALTTRK     0x08    /* alternate track space */
          #define V_STAND      0x09    /* Stand slice */
          #define V_VAR        0x0a    /* Var slice */
          #define V_HOME       0x0b    /* Home slice */
          #define V_DUMP       0x0c    /* dump slice */
          #define V_ALTSCTR    0x0d    /* Alternate sector/track */
          #define V_MANAGED1   0x0e    /* Volume management public slice */
          #define V_MANAGED2   0x0f    /* Volume management private slice */
          Slice Permission Flags
          __________________________________________________________________
          #define V_UNMNT      0x01    /* Unmountable partition */
          #define V_RONLY      0x10    /* Read only */
          #define V_VALID      0x200   /* Partition is valid to use */

            The start and size value are in absolute sector numbers where
            the first sector on the drive is 0 (which is reserved for the
            partition table).  Slices should start and end on a cylinder
            boundary if possible.  The head, cylinder and sectors/track
            information provided by prtvtoc -p assists in the
            calculations.  Slices should not overlap (slice 0 is the
            exception, it describes the entire UNIX partition).





                          Copyright 1994 Novell, Inc.               Page 2













       edvtoc(1M)                                                edvtoc(1M)


             The -p option causes edvtoc to update the disk parameters
             recorded on the specified disk device with the disk parameters
             that were detected when the disk was recognized.  Normally,
             these parameters match but, either by moving the disk to a
             different controller or by changing the size of a logical
             disk, the parameters recorded on the disk may be incorrect.
             If you are trying to mount filesystems that are on an existing
             disk and you can not because the system believes that the disk
             parameters are no longer compatible, you may use this option
             to change the disk parameters so that the filesystems are
             mountable.

       REFERENCES
             intro(7), prtvtoc(1M), sd01(7)


































                           Copyright 1994 Novell, Inc.               Page 3








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