1dnl $OpenBSD: install,v 1.13 2014/04/22 22:58:02 aoyama 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, press any key to stop the countdown 50 if the ``boot>'' prompt does not appear. 51 52 Then, boot the installation kernel from the same partition: 53 54 boot sd(n,p)bsd.rd 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.fs 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, press any key to stop the countdown 70 if the ``boot>'' prompt does not appear. 71 72 Then, boot the installation kernel from the same partition: 73 74 boot sd(n,1) 75 76 77Installing the system: 78 79OpenBSDInstallPart2 80 81 Boot your machine from the installation media as described above. 82 83 It will take a while to load the kernel especially from a slow 84 network connection, most likely more than a minute. If some action 85 doesn't eventually happen, or the spinning cursor has stopped and 86 nothing further has happened, either your boot media is bad, your 87 diskless setup isn't correct, or you may have a hardware or 88 configuration problem. 89 90OpenBSDInstallPart3(,"sd0") 91 92OpenBSDInstallPart4 93 94OpenBSDInstallPart5 95 96OpenBSDInstallPart6({:-CD-ROM, NFS, -:}) 97 98OpenBSDURLInstall 99 100OpenBSDCDROMInstall 101 102OpenBSDNFSInstall 103 104OpenBSDDISKInstall(,{:-only -:}) 105 106OpenBSDCommonInstall 107 108OpenBSDInstallWrapup 109 110OpenBSDCongratulations 111