Sun Microsystems Sun Workstation 100U System Manager's Manual page 210

Table of Contents

Advertisement

MKPROTO(8)
MAINTENANCE COM:MANDS
MKPROTO(8)
NAME
mkproto - construct a prototype file system
SYNOPSIS
/uar/etc/mkproto special proto
DESCRIPTION
Mlcproto is used to bootstrap a new file system. First a new file system is created using newJs(8).
Mlcproto is then used to copy files from the old file system into the new file system according to
the directions found in the prototype file proto. The prototype file contains tokens separated by
spaces or new lines. The first tokens comprise the specification for the root directory. File
specifications consist of tokens giving the mode, the user-id, the group id, and the initial contents
of the file. The syntax of the contents field depends on the mode.
The mode token for a file is a. 6 character string. The first character specifies the type of the file.
(The characters -bed specify regular, block special, character special and directory files respec-
tively .) The second character of the type is either
u
or - to specify set-user-id mode or not. The
third is • or - for the set-group-id mode. The rest or the mode is a three digit octal number giv-
ing the owner, group, and other read, write, execute permissions, see chmod(I).
Two decimal number tokens come after the mode; they specify the user and group ID's of the
owner or the file.
If the file is a regular file, the next token is a pathname whence the contents and size are copied.
If the file is a block
Qr
character special file, two decimal number tokens follow which give the
major and minor device numbers.
It the file
is
a directory, mlcproto makes the entries. and •• and then reads a list of names and
(recursively) file specifications for the entries in the directory. The scan
is
terminated with the
token
S.
A sample prototype specification follows:
(1-77731
usr
d-7773 1
sh
-755 3 1 /bin/sh
ken
d-7556 1
S
bO
1>-644 3 1 0 0
cO.
c-644 3 1 0 0
S
S
SEE ALSO
BUGS
fs(5), dir(5), fsck(8), newfs(8)
There should be some way to specify links.
There should be some way to specify bad blocks.
Mkproto can only be run on virgin file systems. It should
be
possible to copy files into existent
file systems.
Sun Release 1.1
Last change: 10 May 1981
55

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sun workstation 150u

Table of Contents