1dnl $OpenBSD: install,v 1.31 2010/03/16 17:23:09 miod 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): p 104 <output is in the after example above> 105 --- 106 107 MBR partitioning: 108 109dnl What follows is the same text as OpenBSDInstallMBRPart2, but 110dnl indented one tab to the right. 111dnl The macro can't be reused because line wraps will occur at different 112dnl places. 113dnl XXX This document really should be converted to mdoc... 114 The installation program will ask you if you want to use 115 the whole disk for OpenBSD. If you don't need to or don't 116 intend to share the disk with other operating systems, 117 answer `y' here. The installation program will then create 118 a single MBR partition spanning the whole disk, dedicated 119 to OpenBSD. 120 121 Otherwise, fdisk(8) will be invoked to let you to edit 122 your MBR partitioning. The current MBR partitions defined 123 will be displayed and you will be allowed to modify them, 124 add new partitions, and change which partition to boot from 125 by default. 126 127 After your OpenBSD MBR partition has been setup, the real 128 partition setup can follow. 129 130OpenBSDInstallPart5({:- 131 If you have DOS or Linux partitions defined on the disk, these 132 will usually show up as partition 'i', 'j' and so on.-:}) 133 134 If you chose to use HFS partitioning to share the disk with MacOS, 135 OpenBSD will be unable to install the bootloader into the HFS(+) 136 partition to boot OpenBSD; it will be necessary to copy 'ofwboot' 137 from the installation media into the first HFS(+) partition using 138 Mac OS or Mac OS X. 139 If the disk is partitioned using MBR, the bootloader will be 140 automatically installed if you setup a small (a few MB) MSDOS 141 partition as position `i' in the label. 142 143OpenBSDInstallPart6({:-CD-ROM, tape, -:}) 144 145OpenBSDURLInstall 146 147OpenBSDCDROMInstall 148 149OpenBSDNFSInstall 150 151OpenBSDDISKInstall(,,{:- or MS-DOS-:}) 152 153OpenBSDCommonInstall 154 155OpenBSDTAPEInstall 156 157OpenBSDInstallWrapup 158 159OpenBSDCongratulations 160