First Time - Partitioning

[Ref: disklabel(8), fdisk(8), FAQ 14 - Disk Setup]

Partitioning is the process where you divide up your Hard Disk into logical segments (partitions) for storing files. A good approach is to not pre-optimise how your partition should look. This is to say, no single configuration will work for you in every possible system installation.

Be prepared to build a few test systems to gauge the relative sizes your disk usage and requirements (if not already known.) Set your standard as something that will change as your needs and understanding grows.

For a 1st time installer, just building a test environment, you have to early options during your learning process:

  • use the full drive as "/"? That will allow you to use up all the hard disk for improving other knowledge of the OpenBSD system, without letting "out of disk space" errors clutter yourlearning.
  • use recommended settings from post 4.6 installers. The installation system, from 4.6 onwards provide a recommendation for a partitioning of your available disk-space.

Try those out, and again, monitor how your disk space is used.

Use du and df to gather information about your actual usage pattern for a better understanding, determination of your partition needs.

du -h /partition


df -h

The following is on simple partitioning scheme, on the premise that data on this configuration will not grow, the only partition expected to grow after installation being the /var/logs partition.

SliceMount PointCapacitydump;fsck
a/ 5G(default)
b(swap) 2G~
c(disk-slice) (disk)~
d/tmp 4G(default)
e/usr 10G(default)
f/home 10G(default)
g/var/log 20G(default)
h/var 10G(default)
i/storage * (available left-over)0 0

The above works well for us on 50G + Hard Disk Drives, for systems functioning primarily as non-caching proxies and firewalls.