Why Should I Keep /home, /var, and /tmp on Different Partitions?

January 11, 2026 1 answer
Asked by TechyTreasureHunter83
I've been using a security tool called Lynis which suggests I should separate my directories: /home, /var, and /tmp into their own partitions on my Linux system. I'm curious about the benefits of doing this, and if it's possible to create these partitions on a disk where my OS is already installed and running. Can anyone shed some light on this?

Answers

DistroDabbler66
Separating these directories can also make it easier to switch between different Linux distributions without losing your home directory, and from a security standpoint, it makes your personal files less accessible to potential malware.

DeepDiveDev: I heard partitioning /var is beneficial too, since daemons can fill up space. What do you think?

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions