Lately, I've been playing around with FreeBSD. I remembered the first few times I had to partition a disk a long time ago. I spent a lot of time researching what other people did and talking with friends about it.
It is not a complicated process, but because I didn't do it often, I had to re-learn what I've done every time. Now I'm mostly using ZF which kind of makes partitioning a single disk not necessary. But I wanted to write down my notes on partitioning a disk using UFS if I had to do it again.
I'm following the advice in Absolute FreeBSD, 3rd edition, and create the following partitions:
efi
swap
dump
/
/tmp
/var
-
/usr
(I'm keeping myhome
directory under/usr
)
I believe that is a solid "classic" partitioning schema that I find useful and clean. And from this base, and depending on the system I'm deploying, I'll add new partitions. For example, a partition for /database
if I'm running a server dedicated to PostgreSQL.
Anyhow, if you are interested in more detail here is the link:
https://rderik.com/notes/notes-on-freebsd-ufs-partition-schema/
I would also recommend the book Absolute FreeBSD, 3rd edition, quite enjoyable. I learned a lot from it.
Top comments (0)