.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)mkproto.8 6.1 (Berkeley) %G%
mkproto \- construct a prototype file system
is used to bootstrap a new file system.
First a new file system is created using
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
contains tokens separated by spaces or
The first tokens comprise the specification
File specifications consist of tokens
and the initial contents of the file.
The syntax of the contents field
The mode token for a file is a 6 character string.
specifies the type of the file.
specify regular, block special,
character special and directory files
The second character of the type
to specify set-user-id mode or not.
for the set-group-id mode.
is a three digit octal number giving the
owner, group, and other read, write, execute
tokens come after the mode; they specify the
user and group ID's of the owner of 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 or character special file,
two decimal number tokens
follow which give the major and minor device numbers.
If the file is a directory,
reads a list of names and
file specifications for the entries
The scan is terminated with the
A sample prototype specification follows:
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.