23
4
Why should I make separate partitions for /tmp
, /var
and so on?
I can see more drawbacks than benefits. One benefit is that I can use ext4
with journaling for /home
and ext4
without journaling for other partitions.
Main drawback is size limit. When I was partitioning my disk I was taught to allocate at least 50MB for /tmp
, so I set 1GB /tmp
partition. Now I have trouble because it's definitely not enough! Copying DVDs needs more free space. Even caching single YouTube's concert needs more than 1GB of free space on /tmp
partition.
What are the benefits of having a separate /tmp
partition?
See also a question on separate partitions generally and questions specific to /boot and /var
– sondra.kinsey – 2019-04-10T21:09:57.7004if you have separate partitions for
home
,var
,tmp
,...
then you don't need too much space for/
. Good thing if someday you need to restore system/settings from backup image. There is countless reasons why it is good to keep different parts of system on differens partitions. – Sampo Sarrala - codidact.org – 2012-06-27T23:57:47.6174Nowadays Debian uses tmpfs for /tmp, it can autoresize to accommodate files and can move stuff to the swap if needed. – solarc – 2012-06-28T00:54:06.433