[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can/should I delete /tmp partition?



FWIW: 

Here is more information. 
This is after a reboot.


$ findmnt /tmp
TARGET SOURCE FSTYPE OPTIONS
/tmp   tmpfs  tmpfs 
rw,nosuid,nodev,size=3938476k,nr_inodes=1048576,inode64


 ls /mnt
total 12K
 783372 drwxr-xr-x  3 root root 4.0K Feb  3  2024 ./
      2 drwxr-xr-x 20 root root 4.0K Aug  9 20:30 ../
1044927 drwxr-xr-x  2 root root 4.0K Feb  3  2024 my_usb/


$ ls /mnt/my_usb/
total 8.0K
1044927 drwxr-xr-x 2 root root 4.0K Feb  3  2024 ./
 783372 drwxr-xr-x 3 root root 4.0K Feb  3  2024 ../


$ ls /tmp
total 20K
 1 drwxrwxrwt 20 root       root        480 Aug 11 14:29  ./
 2 drwxr-xr-x 20 root       root       4.0K Aug  9 20:30  ../
 5 drwxrwxrwt  2 root       root         40 Aug 11 14:28  .font-unix/
 3 drwxrwxrwt  2 root       root         80 Aug 11 14:28  .ICE-unix/
 6 drwx------  3 root       root         60 Aug 11 14:28  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-bluetooth.service-fFDOR0/
26 drwx------  3 root       root         60 Aug 11 14:28  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-colord.service-J96Vsz/
30 drwx------  3 root       root         60 Aug 11 14:28  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-exim4.service-gC5Gn3/
68 drwx------  3 root       root         60 Aug 11 14:29  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-fwupd.service-eKtmYC/
10 drwx------  3 root       root         60 Aug 11 14:28  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-lm-sensors.service-ROtcAz/
12 drwx------  3 root       root         60 Aug 11 14:28  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-low-memory-monitor.service-
eJ6xvK/
22 drwx------  3 root       root         60 Aug 11 14:28  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-ModemManager.service-LifYov/
14 drwx------  3 root       root         60 Aug 11 14:28  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-polkit.service-RVxVZv/
44 drwx------  3 root       root         60 Aug 11 14:28  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-power-profiles-daemon.service-
yUPBGs/
16 drwx------  3 root       root         60 Aug 11 14:28  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-rsyslog.service-IxIAlN/
18 drwx------  3 root       root         60 Aug 11 14:28  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-switcheroo-control.service-
KDYVE1/
20 drwx------  3 root       root         60 Aug 11 14:28  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-systemd-logind.service-4G8qZp/

[REDACTED]

40 drwx------  3 root       root         60 Aug 11 14:28  systemd-
private-52ea092a16fa40a3b21bac6d5a5a0bf0-upower.service-C9oMgx/
 2 drwxrwxrwt  2 root       root        120 Aug 11 14:28  .X11-unix/
 4 drwxrwxrwt  2 root       root         40 Aug 11 14:28  .XIM-unix/
47 -r--r--r--  1 me    me      11 Aug 11 14:28  .X0-lock
34 -r--r--r--  1 Debian-gdm Debian-gdm   11 Aug 11 14:28  .X1024-lock
36 -r--r--r--  1 Debian-gdm Debian-gdm   11 Aug 11 14:28  .X1025-lock
49 -r--r--r--  1 me    me      11 Aug 11 14:28  .X1-lock


$ ls /run/lock
total 8.0K
1 drwxrwxrwt  3 root root 100 Aug 11 14:28 ./
1 drwxr-xr-x 31 root root 740 Aug 11 14:29 ../
2 drwxr-xr-x  2 root root  40 Aug 11 14:28 subsys/
3 -rw-r--r--  1 root root  22 Aug 11 14:28 asound.state.lock
4 -rw-r--r--  1 root root  22 Aug 11 14:28 card0.lock


$ ls /run
total 16K
   1 drwxr-xr-x 31 root              root         740 Aug 11 14:29 ./
   2 drwxr-xr-x 20 root              root        4.0K Aug  9 20:30 ../
2839 drwxr-xr-x  2 avahi             avahi         80 Aug 11 14:28
avahi-daemon/
2610 drwxr-xr-x  2 root              root          80 Aug 11 14:28
console-setup/
1183 drwxr-xr-x  3 root              root          60 Aug 11 14:43
credentials/
2798 drwx------  2 root              root          40 Aug 11 14:28
cryptsetup/
2841 drwxr-xr-x  3 root              lp           100 Aug 11 14:28
cups/
2843 drwxr-xr-x  2 root              root          60 Aug 11 14:28
dbus/
2805 drwxr-x---  2 Debian-exim       Debian-exim   60 Aug 11 14:28
exim4/
3011 drwx--x--x  4 root              Debian-gdm    80 Aug 11 14:28
gdm3/
   2 drwx------  2 root              root          80 Aug 11 14:28
initramfs/
   1 drwxrwxrwt  3 root              root         100 Aug 11 14:28
lock/
1259 drwxr-xr-x  3 root              root          60 Aug 11 14:28 log/
3456 drwxr-xr-x  2 root              root          60 Aug 11 14:29
motd.d/
1237 drwxr-xr-x  2 root              root          40 Aug 11 14:28
mount/
1317 drwxr-xr-x  2 root              root         100 Aug 11 14:28
network/
2965 drwxr-xr-x  4 root              root         120 Aug 11 14:29
NetworkManager/
1155 drwxr-xr-x  2 root              root          40 Aug 11 14:28
plymouth/
2800 drwxr-xr-x  2 root              root          40 Aug 11 14:28
sendsigs.omit.d/
2809 drwxr-xr-x  2 root              root          40 Aug 11 14:28
setrans/
2799 lrwxrwxrwx  1 root              root           8 Aug 11 14:28 shm
-> /dev/shm/
2810 drwxr-x---  3 speech-dispatcher audio        100 Aug 11 14:28
speech-dispatcher/
2797 drwxr-xr-x  2 root              root          40 Aug 11 14:28
sshd/
2818 drwx--x--x  2 root              root          40 Aug 11 14:28
sudo/
1180 drwxr-xr-x 22 root              root         580 Aug 11 14:46
systemd/
1243 drwxr-xr-x  2 root              root          60 Aug 11 14:28
tmpfiles.d/

[REDACTED]

   3 drwxr-xr-x  8 root              root         220 Aug 11 14:29
udev/
2962 drwx------  2 root              root          40 Aug 11 14:28
udisks2/
2823 drwxr-xr-x  3 root              root          60 Aug 11 14:29
user/
2829 drwxrwsr-x  2 uuidd             uuidd         60 Aug 11 14:28
uuidd/
2957 drwxr-x---  2 root              netdev        40 Aug 11 14:28
wpa_supplicant/
2884 -rw-r--r--  1 root              root           4 Aug 11 14:28
crond.pid
2888 ----------  1 root              root           0 Aug 11 14:28
crond.reboot
3012 -rw-r--r--  1 root              root           5 Aug 11 14:28
gdm3.pid
1225 prw-------  1 root              root           0 Aug 11 14:28
initctl|
3086 -rw-r--r--  1 root              root           5 Aug 11 14:28
privoxy.pid


$ sudo ls -lahFi /run/initramfs/
total 4.0K
   2 drwx------  2 root root  80 Aug 11 14:28 ./
   1 drwxr-xr-x 32 root root 760 Aug 11 15:00 ../
1157 -rw-r--r--  1 root root 182 Aug 11 14:28 fsck.log
1159 -rw-r--r--  1 root root   0 Aug 11 14:28 fsck-root



Reply to: