edvtoc(1M) UNIX System V(Base System) edvtoc(1M)
edvtoc - VTOC (Volume Table of Contents) editing utility
SYNOPSIS
edvtoc -f vtoc-file raw-device
DESCRIPTION
The edvtoc command allows you to edit the contents of the VTOC (Volume
Table Of Contents). The required procedure for editing the VTOC includes
three steps. First, run prtvtoc [see prtvtoc(1M)] using the -f option.
Second, edit the file created by prtvtoc to reflect the needed changes to
the VTOC. Third, run edvtoc using the edited file.
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 VBOOT 0x01 /* Boot slice */
#define VROOT 0x02 /* Root filesystem */
#define VSWAP 0x03 /* Swap filesystem */
#define VUSR 0x04 /* Usr filesystem */
#define VBACKUP 0x05 /* full disk */
#define VALTS 0x06 /* alternate sector space */
#define VOTHER 0x07 /* non-unix space */
#define VALTTRK 0x08 /* alternate track space */
#define VSTAND 0x09 /* Stand slice */
#define VVAR 0x0a /* Var slice */
#define VHOME 0x0b /* Home slice */
#define VDUMP 0x0c /* dump slice */
Slice Permission Flags
__________________________________________________________
#define VUNMNT 0x01 /* Unmountable partition */
#define VRONLY 0x10 /* Read only */
#define VVALID 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 will
assist in the calculations. Slices should not overlap (slice 0 is the
exception, it describes the entire UNIX partition).
OPTIONS
-f vtoc-file writes the current contents of the VTOC into the vtoc-file
in a codensed format. The format of the file is slice
number, slice tag value, slice flag value, slice start
sector, slice size (in sectors). The purpose of this file
is to be input for the edvtoc command.
10/89 Page 1
edvtoc(1M) UNIX System V(Base System) edvtoc(1M)
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 (e.g., /dev/rdsk/0s0 or
/dev/rdsk/c0t0d0s0).
FILES
/dev/dsk/0s0
/dev/rdsk/1s0
/dev/rdsk/c?t?d?s0
SEE ALSO
prtvtoc(1M)
Page 2 10/89