<?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 mode="wrap"><a href="#menu">Menu</a></p>
	<p><b>OpenBSD partitioning</b></p>
	<p>In part 1, I already made a partition for every system I'm installing in this series. However, the OpenBSD parttion is a "disklabel" - a partition that has its own partitions!</p>
	<p>The installer will list the computer's disks:</p>
	<pre>
Available disks are: sd0 wd0 wd1.
Which disk is the root disk? ('?' for details) [sd0] ?</pre>
	<p>Here we type "?" to see the sizes and BIOS names of every disk:</p>
	<pre>
sd0: USB Flash Memory, PMAP serial.09306545ECA140003E6A (7.3G)
wd0: CT1000MX500SSD1 (931.5G)
wd1: SAMSUNG HD501LJ (465.0G)</pre>
	<p>As you can see, removable disks start with "sd" and fixed disks start with "wd". wd0 is my SSD here, so I'll choose it:</p>
	<p>The installer shows the partition table:</p>
	<pre>
Which disk is the root disk? ('?' for details) [sd0] wd0
Encrypt the root disk with a (p)assphrase or (k)eydisk? [no] no
Disk: wd0      geometry: 121601/255/63 (1953525168 sectors)
Offset: 0      Signature: 0xAA55
           Starting         Ending       LBA Info:
 #: id     C   H   S -      C   H   S [      start:      size ]
*0: 07     0  32  33 -  13054  75  13 [       2048: 209715200 ] NTFS
 1: 0C 13054  75  14 -  39162 160  30 [  209717240: 419430400 ] FAT32 (LBA)
 2: A6 39162 160  39 -  52216 203  19 [  629147640: 209715200 ] OpenBSD
Use (W)hole disk, use the (O)penBSD area or (E)dit the MBR? [OpenBSD] o</pre>
    <p>We're doing a multi-boot setup, so we're not encrypting the whole disk with OpenBSD's encryption.</p>
	<p>The installer detects that we made a partition for OpenBSD in part 1 - let's type "o" to use it. It will automatically generate a proposed layout:</p>
    <pre>
The auto-allocated layout for wd0 is:
#          size       offset fstype [fsize bsize    cpg]
  a:       1.0G    629147648 4.2BSD   2048 16384      1 # /
  b:       1.2G    631244000   swap
  c:     931.5G            0 unused
  d:       4.0G    633065216 4.2BSD   2048 16384      1 # /tmp
  e:       6.0G    642253792 4.2BSD   2048 16384      1 # /var
  f:      10.3G    654834624 4.2BSD   2048 16384      1 # /usr
  g:       1.0G    676516768 4.2BSD   2048 16384      1 # /usr/X11R6
  h:      14.3G    678613920 4.2BSD   2048 16384      1 # /usr/local
  i:     100.0G         2048   NTFS
  j:     200.0G    209717248  MSDOS
  k:       3.0G    700626304 4.2BSD   2048 16384      1 # /usr/src
  l:       6.0G    716542624 4.2BSD   2048 16384      1 # /usr/obj
  m:      52.3G    729125536 4.2BSD   2048 16384      1 # /home
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] c</pre>
    <p>I think this layout has way too many partitions in the disklabel! Let's make our own layout by typing in "c". This launches the disklabel editor:</p>
    <pre>
Label editor (enter '?' for help at any prompt)
wd0&gt;</pre>
    <p><a href="quadb2_4.wml">Page 4</a></p>
	<p><a href="quadb2_2.wml">Page 2</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>

