<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
  <card id="article" title="Triple booting on an old PC, part 2: OpenBSD">
    <p><b>Copying system files</b></p>
    <p>Now the installer asks for the location of "sets" (in BSD systems that means non-kernel software included with the system):</p>
    <pre>
Let's install the sets!

Location of sets? (cd0 disk http or 'done') [cd0] cd0
Pathname to the sets? (or 'done') [7.8/i386]</pre>
    <p>Type "cd0" as we're installing from optical drive, then press Enter to accept the default path to the sets.</p>
    <p>Then the installer will ask which sets to install:</p>
    <pre>
Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-', e.g. '-game*'. Selected sets are labeled '[X]'.
     [X] bsd        [X] comp78.tgz    [X] xbase78.tgz   [X] xserv78.tgz
     [X] bsd.rd     [X] man78.tgz     [X] xshare78.tgz
     [X] base78.tgz [X] game78.tgz    [X] xfont70.tgz
Set name(s)? (or 'abort' or 'done') [done] done</pre>
    <p>I'll just type "done" to install all of the sets - we have a lot of space so why not install the complete system?</p>
    <p>The installer will copy the files to the OpenBSD partition and display progress bars while doing so. Then it will ask if we want to copy any more sets:</p>
    <pre>
Location of sets? (cd0 disk http or 'done') [done] done</pre>
    <p>We installed the entire system, so let's type in "done".</p>
    <p>After taking some time to finish the setup, the system will show a reboot prompt:</p>
    <pre>
Exit to (S)hell, (H)alt or (R)eboot? [reboot]</pre>
    <p>We finally installed OpenBSD, so let's remove the install disc and press Enter to reboot!</p>
    <p>Now we need to do some additional configuration to get OpenBSD to dual boot with Windows.</p>
    <p><b>Dual boot setup</b></p>
    <p>Now the first thing we need to do is boot the Linux ISO again, then remove the boot flag with fdisk from the OpenBSD partition, keeping it only on the Windows XP partition. The partition table should look close to this:</p>
    <pre>
Device     Boot     Start        End   Sectors  Size Id Type
/dev/sda1  *         2048  209717247 209715200  100G  7 HPFS/NTFS/exFAT
/dev/sda2       209717248  629147647 419430400  200G  c W95 FAT32 (LBA)
/dev/sda3       629147648  838862847 209715200  100G a6 OpenBSD</pre>
    <p>As we can see, after toggling the OpenBSD partition's boot flag only the NTFS partition (the Windows one) should have the boot flag set. I explained fdisk usage in more detail in part 1 and in the preparation section of this part.</p>
    <p>Then we need to copy the OpenBSD partition boot sector to a file that can be read by the Windows bootloader. To do this, we boot the OpenBSD install disc and repeat the installation prompts, just like installing normally, until we get to this prompt:</p>
    <pre>
Use (W)hole disk, use the (O)penBSD area or (E)dit the MBR? [OpenBSD] !</pre>
    <p>At this point type "!" (a single exclamation mark without quotes) and press Enter to get into the command shell. If we use the shell at an earlier point in the installation, the system won't let us access the disklabel.</p>
	<p><a href="quadb2_6.wml">Page 6</a></p>
	<p><a href="quadb2_4.wml">Page 4</a></p>
    <p><a href="#article">Top</a></p>
    <p><a href="#menu">Menu</a></p>
  </card>
  <card id="menu" title="crimson_phoneme's website">
    <p mode="wrap"><img src="../gfx/about.wbmp" alt="" /><a href="../index.wml#about">About</a></p>
    <p><img src="../gfx/blog.wbmp" alt="" /><a href="../index.wml#blog">Blog</a></p>
	<p><img src="../gfx/comp.wbmp" alt="" /><a href="../comp.wml">My computers</a></p>
	<p><img src="../gfx/links.wbmp" alt="" /><a href="../links.wml">Links</a></p>
  </card>
</wml>

