labelit(8) CLIX labelit(8)
NAME
labelit - Provides labels for file systems
SYNOPSIS
/etc/labelit special [fsname volume [-n]]
FLAGS
-n Provides for initial labeling only (this destroys the previous
contents).
DESCRIPTION
The labelit command can be used to provide labels for unmounted disk file
systems. With the optional arguments omitted, labelit displays current
label values.
The special name should be the physical disk section (such as
/dev/dsk/s0u0p7.3). The device cannot be on a remote machine.
The fsname argument represents the mounted name (such as root, u1, and so
forth) of the file system.
The volume argument may be used to equate an internal name with a volume
name applied externally to the disk pack, diskette, or tape.
The fsname and volume arguments are recorded in the superblock.
The labelit command displays the block size, number of inodes, and number
of 512-byte sectors of the file system. For file systems of type ffsfs
(see ffsfs(4)), the fragment size is also displayed.
EXAMPLES
1. labelit /dev/dsk/s0u0p7.3
2. labelit /dev/dsk/s0u0p7.4 /usr
DIAGNOSTICS
labelit: cannot stat file system
A system error occurred while trying to get information on the
specified file system. Check the spelling of your arguments.
labelit: cannot open device
Check the permissions on the file system.
labelit: tape not labeled
The labelit command is trying to read a label from an unlabeled
2/94 - Intergraph Corporation 1
labelit(8) CLIX labelit(8)
tape.
labelit: cannot read superblock
The file system may be corrupt.
labelit: invalid superblock
The superblock is damaged.
*** Mounted FILE SYSTEM
An attempt was made to label a mounted file system.
labelit: cannot write label
A system error occurred while trying to write the label. Check the
write enable on the tape or diskette.
EXIT VALUES
The labelit command exits with a value of 0 if successful and a nonzero
value if an error occurs.
RELATED INFORMATION
Files: ffsfs(4), fs(4)
Commands: makefsys(8)
2 Intergraph Corporation - 2/94