Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 22nd February 2016
J65nko J65nko is offline
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,786
Default OpenBSD automatic disklabel allocation

From disklabel(8):

     A template for the automatic allocation can be passed to disklabel using
     the -T option.  The template consists of one line per partition, with
     each line giving mountpoint, min-max size range, and percentage of disk,
     space-separated.  Max can be unlimited by specifying '*'.  If only
     mountpoint and min size are given, the partition is created with that
     exact size.

           /               250M
           swap            80-256M 10%
           /tmp            120M-4G 8%
           /var            80M-4G  13%
           /usr            900M-2G 5%
           /usr/X11R6      512M-1G 3%
           /usr/local      2G-10G  10%
           /usr/src        1-2G    2%
           /usr/obj        1.3G-2G 4%
           /home           1G-*    45%
Such a template can be used when doing automatic OpenBSD installations (autoinstall(8))

After some experimentation I came up with the following minimal template that I used for a pxe booted virtualized OpenBSD autoinstall under Linux KVM:

/               100M
swap            180M
/tmp            200M
/home           2G
/var            500M
/var/log        200M
/usr            1G-*
The result on a 8192 MB (8 GB) disk:
root@kvm[~]df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/sd0a     98.3M   52.1M   41.3M    56%    /
/dev/sd0e      2.0G   10.5M    1.9G     1%    /home
/dev/sd0d      197M    8.0K    187M     0%    /tmp
/dev/sd0h      4.8G    413M    4.1G     9%    /usr
/dev/sd0f      492M    4.7M    463M     1%    /var
/dev/sd0g      197M   28.0K    187M     0%    /var/log
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump

Last edited by J65nko; 7th November 2016 at 09:38 PM.
Reply With Quote

autoinstall, disklabel, install.conf

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating 'install.conf' for OpenBSD automatic installations J65nko Guides 3 12th September 2016 06:20 PM
OpenBSD Call For Testing Of OpenBSD Automatic Installation J65nko News 0 10th January 2014 03:08 PM
Mounting an FS with no MBR/disklabel Carpetsmoker FreeBSD General 2 10th December 2009 01:22 PM
Disklabel problem sateenkaari NetBSD Installation and Upgrading 3 13th August 2009 02:51 AM
disklabel don't see OpenBSD partition piotrk OpenBSD General 4 25th September 2008 06:14 PM

All times are GMT. The time now is 01:24 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick