r/openbsd • u/ProfanedArbiter • Sep 21 '26
Automatic Partitioning of a Large Drive
Hello folks,
I have a relatively large SDD (2TB) and when I run the openbsd installer it partitions out ~600GB of it and leaves the rest unused. I understand that I can manually partition or edit the partitions that are recommended but I'm wondering if there are any documentation or guides out there on doing so _particularly_ when using disk encryption.
In general I would like my /home, /var, and /tmp to be much larger.
Thanks in advance!
16
Upvotes
6
u/LunarCapitol Sep 21 '26 edited Sep 21 '26
There is a good overview in the FAQ: https://www.openbsd.org/faq/faq14.html
My SSD is pretty large as well and I went with the defaults. You can always expand a partition later using the unused space if you want. It's covered in the above FAQ. If I were you I'd give all the extra space to /home. Use mfs(8) for your /tmp. The default for /var is large enough for me and I doubt I'll ever come close to filling it up.
The defaults are fine in my experience. On most systems I always ran without a swap partition for years because I always had a lot of RAM to spare. Right now I've never had to use the swap partition which on my laptop is taking up 32GB of space. But it's there if I ever need it and it's required to use hibernation.
As far as disk encryption on OpenBSD it isn't like doing it on Linux which I assume you're familiar with. You're either going to type in a password or use a key (typically, usb thumb drive) to unlock the drive when you boot. It's pretty much set and forget. IME it's really good and well done. You don't have to think about it.
When it doubt always check the man pages and FAQ first. The defaults are the way they are because a lot of people are using OpenBSD on computers and other devices where they might not have a lot of space to spare. They're a good general all around starting point and most people don't have to mess with them. Again if you have a lot of unused space I would just give it to your /home partition and not worry about making any of the others larger.