DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th January 2022
hd77 hd77 is offline
Shell Scout
 
Join Date: Jan 2022
Posts: 97
Default disk space

Hi guys
on my multiboot laptop, I have on the hard drive the following one :
https://wtf.roflcopter.fr/pics/Ssp2t79z/UYxDsE3S.png

as shown, my openbsd area space is about 18GB.

on obsd:
https://wtf.roflcopter.fr/pics/QE4wLsBK/GzHOdxtw.png

I don't understand why on my openbsd disklabel information status I have only the following one, as I guess 8GB + 3GB, means 11 instad of 18GB?

why does obsd installer does nt takes all the space available on obsd area?
do I have to reinstall it with new partition specs?

thank you
Reply With Quote
  #2   (View Single Post)  
Old 29th January 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Your OpenBSD disklabel partitions are a custom allocation. These were not provisioned through OpenBSD's automatic allocations.

You have a 3 GB root partition "a", a 0.2 GB swap partition "b", an 8 GB /usr partition "d", and a 4 GB RAID partition "e". Partitions "i" through "p" appear to be foreign filesystems from the drive's GPT or MBR partition table.

If you had used OpenBSD's automatic allocation, disklabel(8) would have allocated your 18GB as:
Code:
           /                5% of disk.  150M – 1G
           swap            10% of disk.   80M – 2x max physical memory
           /tmp             8% of disk.  120M – 4G
           /var            13% of disk.   80M – 4G + 2x size of crash dump
           /usr            10% of disk. 1500M – 6G
           /usr/X11R6       3% of disk.  384M – 1G
           /usr/local      15% of disk.    1G – 20G
           /usr/src         2% of disk. 1500M – 3G
           /usr/obj         4% of disk.    5G – 6G
           /home           30% of disk.    1G – 300G
Reply With Quote
  #3   (View Single Post)  
Old 29th January 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Here's an example automatic allocation for an 18GB hard drive, created on my 4G RAM laptop using vmctl(8) to create a sparse file, vnconfig(8) to assign the file to a vnd(4) vnode, and disklabel(8) to create the allocation. I didn't bother with a GPT or an MBR so this starts at LBA 0, but that wouldn't change the storage size assignments in GB, shown below:
Code:
OpenBSD area: 0-37748736; size: 18.0G; free: 0.0G
#                size           offset  fstype [fsize bsize   cpg]
  a:             0.5G                0  4.2BSD   2048 16384     1 # /
  b:             0.8G          1070080    swap                    
  c:            18.0G                0  unused                    
  d:             0.7G          2759680  4.2BSD   2048 16384     1 # /tmp
  e:             1.0G          4226048  4.2BSD   2048 16384     1 # /var
  f:             2.2G          6373376  4.2BSD   2048 16384     1 # /usr
  g:             0.6G         10971136  4.2BSD   2048 16384     1 # /usr/X11R6
  h:             2.1G         12215296  4.2BSD   2048 16384     1 # /usr/local
  i:             1.6G         16601088  4.2BSD   2048 16384     1 # /usr/src
  j:             5.3G         19978240  4.2BSD   2048 16384     1 # /usr/obj
  k:             3.2G         31074304  4.2BSD   2048 16384     1 # /home
Reply With Quote
Reply

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
can't use full disk space when partitioning ohmpr OpenBSD Installation and Upgrading 9 8th June 2021 01:04 AM
Verify integrity of disk image file written to disk ? gustaf OpenBSD General 2 14th December 2017 06:34 AM
Partions and disk space PapaParrot OpenBSD General 15 16th May 2017 06:26 AM
Span Disk Space plexter OpenBSD Packages and Ports 8 20th November 2009 08:06 PM
Disk space gone missing EricM FreeBSD General 0 26th February 2009 02:25 AM


All times are GMT. The time now is 10:54 AM.


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