1dnl	$OpenBSD: install,v 1.16 2023/03/16 18:04:08 miod Exp $
2OpenBSDInstallPrelude
3
4There are several ways to install OpenBSD onto a disk. The easiest way
5in terms of preliminary setup is to use the OpenBSD miniroot that can be
6booted off your local disk's swap partition. Alternatively, you can
7use the OpenBSD bootblocks and the ramdisk kernel, bsd.rd, copied to an
8existing UniOS partition.
9
10
11Booting from the Installation Media:
12
13Prior to attempting an installation, everything of value on the target
14system should be backed up.  While installing OpenBSD does not necessarily
15wipe out all the partitions on the hard disk, errors during the install
16process can have unforeseen consequences and will probably leave the system
17unbootable if the installation process is not completed. Availability
18of the installation media for the prior installation, such as a LUNA-88K
19UniOS tape, is always a good insurance, should it be necessary to "go back"
20for some reason.
21
22After taking care of all that, the system should be brought down gracefully
23using the shutdown(8) and/or halt(8) commands, which will eventually go
24back to the PROM prompt. Remember that the leftmost switch from the front
25panel DIP switch #1 must be down to access the PROM prompt.
26
27Booting from an existing partition:
28
29    Copy the OpenBSD/MACHINE boot loader on one of the first 8 partitions
30    (a-h). Copy the installation kernel (bsd.rd) to the same partition.
31
32    At the PROM prompt, enter
33
34      b sd(n,p) boot
35
36    to boot the OpenBSD bootloader from the specified disk and partition.
37    Replace 'p' with the partition number (usually 0, for the 'a' partition),
38    and 'n' with the appropriate number from the following table:
39
40      disk drive SCSI ID: 0 1 2 3 4 5 6
41      value of 'n':       6 5 4 3 2 1 0
42
43    On LUNA-88K2 systems, if the disk drive is connected to the external SCSI
44    controller, add 10 to this number. For example, to boot from a disk drive
45    with ID #0 connected to the external controller, enter:
46
47      b sd(10,0)boot
48
49    Once the OpenBSD bootloader starts, at the ``boot>'' prompt, enter:
50
51      boot sd(n,p)bsd.rd
52
53    to boot the installation kernel from the same partition.
54
55
56Booting from the miniroot:
57
58    Copy the OpenBSD/MACHINE miniroot to the swap partition (assuming your
59    disk is sd0):
60
61	dd if=miniroot{:--:}OSrev.img of=/dev/sd0b
62
63    After halting the system, at the PROM prompt, enter
64
65	b sd(n,1)
66
67    to boot the OpenBSD bootloader from the swap partition.
68
69    Once the OpenBSD bootloader starts, at the ``boot>'' prompt, enter:
70
71      boot sd(n,1)
72
73    to boot the installation kernel from the same partition.
74
75
76Installing the system:
77
78OpenBSDInstallPart2
79
80	Boot your machine from the installation media as described above.
81
82	It will take a while to load the kernel especially from a slow
83	network connection, most likely more than a minute.  If some action
84	doesn't eventually happen, or the spinning cursor has stopped and
85	nothing further has happened, either your boot media is bad, your
86	diskless setup isn't correct, or you may have a hardware or
87	configuration problem.
88
89OpenBSDInstallPart3(,"sd0")
90
91OpenBSDInstallPart4
92
93OpenBSDInstallPart5
94
95OpenBSDInstallPart6({:-CD-ROM, NFS, -:})
96
97OpenBSDURLInstall
98
99OpenBSDCDROMInstall
100
101OpenBSDNFSInstall
102
103OpenBSDDISKInstall(,{:-only -:})
104
105OpenBSDCommonInstall
106
107OpenBSDInstallWrapup
108
109OpenBSDCongratulations
110
111
112
113OpenBSDUnattendedInstallation
114