|
|
1.1 root 1: .TH MKPROTO 8 "10 May 1981"
2: .UC 4
3: .SH NAME
4: mkproto \- construct a prototype file system
5: .SH SYNOPSIS
6: .B /etc/mkproto
7: special proto
8: .SH DESCRIPTION
9: .I Mkproto
10: is used to bootstrap a new file system.
11: First a new file system is created using
12: .IR newfs (8).
13: .I Mkproto
14: is then used to copy files from the old file system into the new
15: file system according to the directions found in the prototype file
16: .I proto.
17: The prototype file
18: contains tokens separated by spaces or
19: new lines.
20: The first tokens comprise the specification
21: for the root directory.
22: File specifications consist of tokens
23: giving the mode,
24: the user-id,
25: the group id,
26: and the initial contents of the file.
27: The syntax of the contents field
28: depends on the mode.
29: .PP
30: The mode token for a file is a 6 character string.
31: The first character
32: specifies the type of the file.
33: (The characters
34: .B \-bcd
35: specify regular, block special,
36: character special and directory files
37: respectively.)
38: The second character of the type
39: is either
40: .B u
41: or
42: .B \-
43: to specify set-user-id mode or not.
44: The third is
45: .B g
46: or
47: .B \-
48: for the set-group-id mode.
49: The rest of the mode
50: is a three digit octal number giving the
51: owner, group, and other read, write, execute
52: permissions, see
53: .IR chmod (1).
54: .PP
55: Two decimal number
56: tokens come after the mode; they specify the
57: user and group ID's of the owner of the file.
58: .PP
59: If the file is a regular file,
60: the next token is a pathname
61: whence the contents and size are copied.
62: .PP
63: If the file is a block or character special file,
64: two decimal number tokens
65: follow which give the major and minor device numbers.
66: .PP
67: If the file is a directory,
68: .I mkproto
69: makes the entries
70: .BR . ""
71: and
72: .B ..
73: and then
74: reads a list of names and
75: (recursively)
76: file specifications for the entries
77: in the directory.
78: The scan is terminated with the
79: token
80: .BR $ .
81: .PP
82: A sample prototype specification follows:
83: .PP
84: .nf
85: .in +5
86: d\-\-777 3 1
87: usr d\-\-777 3 1
88: sh \-\-\-755 3 1 /bin/sh
89: ken d\-\-755 6 1
90: $
91: b0 b\-\-644 3 1 0 0
92: c0 c\-\-644 3 1 0 0
93: $
94: $
95: .in -5
96: .fi
97: .dt
98: .SH "SEE ALSO"
99: fs(5),
100: dir(5),
101: fsck(8),
102: newfs(8)
103: .SH BUGS
104: There should be some way to specify links.
105: .PP
106: There should be some way to specify bad blocks.
107: .PP
108: Mkproto can only be run on virgin file systems.
109: It should be possible to copy files into existent file systems.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.