Partitioning
Previous  Top  Next

If the computer on which you are installing OpenBSD has one IDE harddisk (CF disk) then you should see the following screen:

clip0007clip0002

Since wd0 is the only available disk we press enter and are presented with the question

Do you want to use *all* of wd0 for OpenBSD? [no] yes

which we answer with a yes since we are not installing any other Operating Systems. The OpenBSD installer will then create an OpenBSD partition on your harddisk and enter the disklabel editor disklabel automatically. You will see something like this:

clip0003

This shows two partitions in the lower area – a and c where c represents the entire partition. The number 2097152 is the total size of the disk in 512 byte blocks – exactly 1Gb (2097152 * 512 byte). We will remove the
a slice that was created by the installer and setup our own partition instead.

clip0004

To create the partitions
abd and e type what you see in the screenshot above.
First we delete the a partition by typing
d a, then we add the root / partition, add the swap partition (very small on purpose) and finally add the /var and /usr partitions.

We used the default provided when you see no input next to the [] brackets.

We write our changes by typing

w
q

and proceed to creating the file systems.


If you are installing onto a 256Mb CF disk then we recommend the following partition sizes:

·/   50Mb  
·swap   1Mb  
·/var   25M  
·/usr   rest (~180Mb)  

When installing onto a reasonably big hard drive please consult the OpenBSD manual (FAQ). We generally use a ~128Mb big root partition, a swap partition the size of RAM (or smaller), a /usr partition ~1024Mb, a 128Mb /var partition and, if possible, a separate /var/log partition that is even bigger.

Setup will now create all file systems for us:

clip0005

which we will immediately confirm with
done. Proceed by typing y and watch the file systems being created. After this is complete we can configure the network (skip for additional security).