1dnl $OpenBSD: install,v 1.6 2008/08/05 22:58:01 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 ramdisk kernel, bsd.rd, 6which can be booted from tape, or an existing Mach partition. 7 8 9Booting from the Installation Media: 10 11Prior to attempting an installation, everything of value on the target 12system should be backed up. While installing OpenBSD does not necessarily 13wipe out all the partitions on the hard disk, errors during the install 14process can have unforeseen consequences and will probably leave the system 15unbootable if the installation process is not completed. Availability 16of the installation media for the prior installation, such as a Luna-88K 17Mach tape, is always a good insurance, should it be necessary to "go back" 18for some reason. 19 20After taking care of all that, the system should be brought down gracefully 21using the shutdown(8) and/or halt(8) commands, which will eventually go 22back to the PROM prompt. Remember that the leftmost switch from the front 23panel DIP switch #1 must be down to access the PROM prompt. 24 25Booting from an installation tape: 26 27 The internal tape drive is usually configured as SCSI ID #4. At the 28 prompt, enter 29 30 b st(0,0,0) 31 32 to boot the first file from the tape. If your tape drive uses a 33 different SCSI ID, replace the middle number with the appropriate number 34 from the following table: 35 36 tape drive SCSI ID: 0 1 2 3 4 5 6 37 middle number for st(): 4 3 2 1 0 6 5 38 39 If the tape drive is connected to the external SCSI controller, add 10 to 40 the middle number. For example, to boot from a tape drive with ID #5 41 connected to the external controller, enter: 42 43 b st(0,16,0) 44 45Booting from an existing partition: 46 47 At the prompt, enter 48 49 b sd(0,n,p) bsd.rd 50 51 to boot bsd.rd from the specified disk and partition. Replace 'p' with 52 the partition number (usually 0, for the 'a' partition), and 'n' with 53 the appropriate number from the following table: 54 55 disk drive SCSI ID: 0 1 2 3 4 5 6 56 value of 'n': 6 5 4 3 2 1 0 57 58 If the disk drive is connected to the external SCSI controller, add 10 to 59 this number. For example, to boot from a disk drive with ID #0 connected 60 to the external controller, enter: 61 62 b sd(0,16,0) bsd.rd 63 64 65Installing the system: 66 67OpenBSDInstallPart2 68 69 Boot your machine from the installation media as described above. 70 71 It will take a while to load the kernel especially from a slow 72 network connection, most likely more than a minute. If some action 73 doesn't eventually happen, or the spinning cursor has stopped and 74 nothing further has happened, either your boot media is bad, your 75 diskless setup isn't correct, or you may have a hardware or 76 configuration problem. 77 78OpenBSDBootMsgs(,"sd0") 79 80 You will next be asked for your terminal type. If you are 81 installing from a non-serial console, the default of "vt220" 82 is correct. If you are installing from a serial console 83 you should choose the terminal type from amongst those listed. 84 (If your terminal type is xterm, just use vt220.) 85 86OpenBSDInstallPart3 87 88OpenBSDInstallPart4 89 90OpenBSDInstallPart5(sd0) 91 92OpenBSDInstallNet({:-CD-ROM, NFS, -:}) 93 94OpenBSDFTPInstall 95 96OpenBSDHTTPInstall 97 98OpenBSDTAPEInstall(1) 99 100OpenBSDCDROMInstall 101 102OpenBSDNFSInstall 103 104OpenBSDDISKInstall(,{:-only -:}) 105 106OpenBSDCommonFS(NFS) 107 108OpenBSDCommonURL 109 110OpenBSDInstallWrapup 111 112OpenBSDInstallWrapupPart2 113 114OpenBSDCongratulations 115