When creating a new Debian server, I generally partition the storage as follows: (I usually, also, create my VMs with a 32GB disk)
Mountpoint | # | Type | Label | Size | Description |
---|---|---|---|---|---|
/boot | 1 | ext4 | boot | 1GB | This sizing is overkill. I set 1GB because I have the space and better ensures no future space issues |
[SWAP] | 2 | swap | swap | 2GB | I generally try to size RAM on the system so SWAP is not used, so I just set 2GB and call it good. |
/home | 3 | ext4 | home | 4GB | Use a separate /home partition so in the event a system process fills /, users can still login without issues caused by capacity |
/ | 4 | ext4 | root | <remainder> | Allocate the remainder of the storage to the remaining system partitions to use as needed |