1dnl $OpenBSD: install,v 1.35 2020/07/05 22:27:47 tj Exp $ 2OpenBSDInstallPrelude 3 4Before you begin, you should decide if OpenBSD is to be installed 5on the whole disk or share the disk with Mac OS. 6 7For stand-alone (No Mac OS installed) or dedicated disks, the MBR 8installation method should be chosen and no additional prep is necessary. 9 10If the disk is to be shared with Mac OS, a partition must be preallocated 11by the Mac OS partition editor and Mac OS installed to the proper partition. 12This expects that the HFS partition will be the first partition on 13the disk, and then the OpenBSD partition will follow. 14This may require the disk be reformatted using the "Drive Setup" application 15and reinstalled under Mac OS. 16 17OpenBSDInstallPart2 18 19 At this time, the system can be installed from the supplied 20 CD-ROM boot image, by network loading the bootloader, or loading 21 the bootloader and kernel from an HFS partition. 22 23 Once the bootloader is installed on the local hard drive, the 24 system can boot from it. OpenBSD may share a drive with Mac OS 25 if the process is followed carefully. Currently it is 26 necessary to use Open Firmware commands to dual boot between 27 OS's, or multiple drives may be used with each OS owning drive(s). 28 It is also possible on some newer models to set up the system 29 to auto boot OpenBSD and if Mac OS is desired, choose it using 30 the firmware boot selector by holding down the <option> key 31 during reboot and selecting the Mac OS Disk icon. 32 33 (Refer to "Preparing your System for OpenBSD Installation" above 34 for information on how to access and boot from Open Firmware.) 35 36OpenBSDInstallPart3(,"wd0") 37 38OpenBSDInstallPart4 39 40 Disks on OpenBSD/MACHINE are partitioned either using Apple-style 41 HFS partitions, or MBR partitions. 42 43 OpenBSD/MACHINE can share a disk with Mac OS or Mac OS X by using 44 an HFS partitioned disk. For proper layout, the disk should be 45 partitioned with Mac OS or Mac OS X first with unused space or a 46 spare partition where OpenBSD can be installed. 47 48 The installation program will ask you whether you intend to use 49 HFS or MBR partitions. 50 51 HFS partitioning: 52 53 HFS partition tables are edited with pdisk(8). The most 54 common operation, and the example presented here, deals 55 with the conversion of an existing partition into one usable 56 by OpenBSD. 57 58 Before editing, the partition table may look like the 59 following: 60 61 #: type name length base ( size ) 62 1: Apple_partition_map Apple 63 @ 1 63 2: Apple_Driver43*Macintosh 54 @ 64 64 3: Apple_Driver43*Macintosh 74 @ 118 65 4: Apple_Driver_ATA*Macintosh 54 @ 192 66 5: Apple_Driver_ATA*Macintosh 74 @ 246 67 6: Apple_FWDriver Macintosh 200 @ 320 68 7: Apple_Driver_IOKit Macintosh 512 @ 520 69 8: Apple_Patches Patch Partition 512 @ 1032 70 9: Apple_HFS untitled 2142310 @ 1544 ( 1.0G) 71 10: Apple_HFS untitled 2 4120589 @ 2143854 ( 2.0G) 72 11: Unused untitled 3 6330517 @ 6264443 ( 3.0G) 73 74 After editing the table, it should look like: 75 76 #: type name length base ( size ) 77 1: Apple_partition_map Apple 63 @ 1 78 2: Apple_Driver43*Macintosh 54 @ 64 79 3: Apple_Driver43*Macintosh 74 @ 118 80 4: Apple_Driver_ATA*Macintosh 54 @ 192 81 5: Apple_Driver_ATA*Macintosh 74 @ 246 82 6: Apple_FWDriver Macintosh 200 @ 320 83 7: Apple_Driver_IOKit Macintosh 512 @ 520 84 8: Apple_Patches Patch Partition 512 @ 1032 85 9: Apple_HFS untitled 2142310 @ 1544 ( 1.0G) 86 10: Apple_HFS untitled 2 4120589 @ 2143854 ( 2.0G) 87 11: OpenBSD OpenBSD 6330517 @ 6264443 ( 3.0G) 88 89 This will likely be different based on the number of 90 partitions created on the disk by the Apple partition editor. 91 It is _VERY_ important to not change the start, sizes, or 92 types of partitions other than the ones that are to be used 93 by OpenBSD, including the Apple_Driver.* and 94 Apple_partition_map. 95 96 --- 97 Command (? for help): p 98 <output is in the before example above> 99 Command (? for help): t 100 Partition number: 11 101 Existing partition type ``Unused''. 102 New type of partition: OpenBSD 103 Command (? for help): n 104 Partition number: 11 105 New name of partition: OpenBSD 106 Command (? for help): p 107 <output is in the after example above> 108 --- 109 110 MBR partitioning: 111 112dnl What follows is the same text as OpenBSDInstallMBRPart2, but 113dnl indented one tab to the right. 114dnl The macro can't be reused because line wraps will occur at different 115dnl places. 116dnl XXX This document really should be converted to mdoc... 117 The installation program will ask you if you want to use 118 the whole disk for OpenBSD. If you don't need to or don't 119 intend to share the disk with other operating systems, 120 answer `y' here. The installation program will then create 121 a single MBR partition spanning the whole disk, dedicated 122 to OpenBSD. 123 124 Otherwise, fdisk(8) will be invoked to let you to edit 125 your MBR partitioning. The current MBR partitions defined 126 will be displayed and you will be allowed to modify them, 127 add new partitions, and change which partition to boot from 128 by default. 129 130 After your OpenBSD MBR partition has been set up, the real 131 partition setup can follow. 132 133OpenBSDInstallPart5({:- 134 If you have DOS or Linux partitions defined on the disk, these 135 will usually show up as partition 'i', 'j' and so on.-:}) 136 137 If you chose to use HFS partitioning to share the disk with MacOS, 138 OpenBSD will be unable to install the bootloader into the HFS(+) 139 partition to boot OpenBSD; it will be necessary to copy 'ofwboot' 140 from the installation media into the first HFS(+) partition using 141 Mac OS or Mac OS X. 142 If the disk is partitioned using MBR, the bootloader will be 143 automatically installed if you set up a small (a few MB) MSDOS 144 partition as position `i' in the label. 145 146OpenBSDInstallPart6({:-CD-ROM, -:}) 147 148OpenBSDURLInstall 149 150OpenBSDCDROMInstall 151 152OpenBSDNFSInstall 153 154OpenBSDDISKInstall(,,{:- or MS-DOS-:}) 155 156OpenBSDCommonInstall 157 158OpenBSDInstallWrapup 159 160OpenBSDCongratulations 161 162 163 164OpenBSDUnattendedInstallation 165