You are not logged in.

#1 2022-05-25 07:30:50

Davide Di Francesco
Member
From: Italy
Registered: 2022-01-10
Posts: 7
Website

/var/tmp and /tmp

Hi everyone,
I partitioned the disk so as to have /var and /tmp separate,
but in the partition dedicated to tmp I also find /var/tmp is that correct?

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0 476.9G  0 disk 
├─nvme0n1p1 259:1    0   500M  0 part /boot
├─nvme0n1p2 259:2    0    64G  0 part /
├─nvme0n1p3 259:3    0    12G  0 part /var
├─nvme0n1p4 259:4    0     8G  0 part /var/tmp
│                                     /tmp
└─nvme0n1p5 259:5    0 392.5G  0 part /home

Sometimes when I reboot I see the watchdog message twice and other times I get the message on startup that it was unable to mount /tmp


Designing, testing and deploying secure smart contracts on eth network.

Offline

#2 2022-05-25 08:10:52

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: /var/tmp and /tmp

If i reckon correctly, /var/tmp is meant to be persistent across sessions/reboots thus it is stored on disk. Whereas /tmp is a volatile tmpfs on purpose nowadays for speed reasons.
https://wiki.archlinux.org/title/tmpfs#Usage

Last edited by Maniaxx (2022-05-25 08:12:58)


sys2064

Offline

#3 2022-05-25 18:19:42

stanczew
Member
Registered: 2021-03-02
Posts: 114

Re: /var/tmp and /tmp

Did you follow some random tutorial when installing?
By default /tmp is mounted as tmpfs (i.e. in RAM). Why would you want to have it as a physical partition?
/var/tmp should just be a directory in /var (albeit with a sticky bit set). Either systemd has some logic for detecting if /tmp is mounted as a physical partition and bind-mounts /var/tmp to /tmp if it is (?), or you set it manually to do so.
Please post contents of your /etc/fstab, and output of 'mount' command.

Offline

Board footer

Powered by FluxBB