|
|
1.1 root 1:
2:
3: boot Driver boot
4:
5:
6:
7:
8: Boot block for hard-disk partition/nine-sector diskette
9:
10:
11: To be bootable, a COHERENT file system must contain a boot block
12: that lives in the first block of the file system. In addition,
13: all hard disks must contain the master boot block mboot or an
14: equivalent.
15:
16: boot is a boot block for a hard-disk partition or a floppy disk.
17: It must be installed as the first sector of the partition or dis-
18: kette; for example, the following commands format and create a
19: file system on a high-density, 5.25-inch diskette:
20:
21:
22: /etc/fdformat -v -i 4 /dev/fha0
23: /etc/mkfs /dev/fha0 2400
24: /bin/cp /conf/boot.fha /dev/fha0
25:
26:
27: boot searches its root directory `/' for file _a_u_t_o_b_o_o_t. If it
28: finds this kernel, bboooott loads and runs it. Otherwise, it gives
29: the prompt ?, to which the user must type the name of the
30: operating-system kernel to load (typically, ``coherent''). If
31: bboooott cannot find the requested kernel or if an error occurs, boot
32: does not print an error message, but re-prompts with `?'.
33:
34: ***** Creating a Bootable Floppy Disk *****
35:
36: In some cases, it is necessary to create a mini-version of
37: COHERENT that can be booted from a floppy disk. For example, you
38: may wish to test a device driver or a tricky program written in
39: assembly language; by using a floppy-disk version of COHERENT,
40: you can test your program yet protect your hard disk's file sys-
41: tems from damage should something go wrong.
42:
43: The following describes how to create a floppy-disk version of
44: COHERENT. If your drive A is a 5.25-inch, high-density device,
45: type:
46:
47:
48: export DEV=/dev/fha0
49: export BS=30b
50:
51:
52: If, however, your drive A is a 3.5-inch, high-density device,
53: type:
54:
55:
56: export DEV=/dev/fva0
57: export BS=36b
58:
59:
60: The rest of the commands will be the same for either device.
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
67:
68:
69: boot Driver boot
70:
71:
72:
73: The next step is to copy disk 1 of your COHERENT release onto the
74: hard disk. Insert disk 1 into drive A and type:
75:
76:
77: dd if=$DEV of=_f_i_l_e__n_a_m_e count=80 bs=$BS
78:
79:
80: where file_name is the file into which you are copying the disk.
81:
82: Now, remove the COHERENT release disk and insert a blank floppy
83: disk. The next step is to format it; type the following command:
84:
85:
86: /etc/fdformat $DEV
87:
88:
89: Now, copy the file that contains your copy of COHERENT release
90: disk 1 onto the newly formatted floppy disk:
91:
92:
93: dd if=_f_i_l_e__n_a_m_e of=$DEV count=80 bs=$BS
94:
95:
96: where file_name is the file that holds COHERENT.
97:
98: Now, mount the new floppy disk:
99:
100:
101: /etc/mount $DEV /f0
102:
103:
104: From this point on, you must have superuser status. If you have
105: not yet done so, type
106:
107:
108: su root
109:
110:
111: and type the password if prompted.
112:
113: The final steps further prepare the new floppy disk:
114:
115:
116: cd /f0
117: mv begin autoboot
118: rm Coh_300.1
119: cd etc
120: rm brc*
121: rm build
122:
123:
124: The bootable floppy is now done. Type <ctrl-D> to return from
125: superuser status, and then type the command
126:
127:
128:
129:
130: COHERENT Lexicon Page 2
131:
132:
133:
134:
135: boot Driver boot
136:
137:
138:
139:
140: /etc/umount $DEV
141:
142:
143: to unmount the floppy disk. Put it away in a safe place.
144:
145: Your bootable floppy disk contains about 700 blocks (350
146: kilobytes) of an information. We suggest that you put on it a
147: handful of the most commonly used programs, such as the
148: MicroEMACS screen editor.
149:
150: ***** Files *****
151:
152: /ccoonnff/bboooott* -- Various diskette boot blocks
153:
154: ***** See Also *****
155:
156: device drivers, fdisk, mboot, mkfs
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196: COHERENT Lexicon Page 3
197:
198:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.