Tmpfs NOT cleared on reboot?

Just recognized that /tmp on my Manjaro XFCE stable is not cleared on reboot.

Googled and found this “google answer” that is NOT true for my system.

Does tmp get cleared on reboot?
Furthermore, any temporary files that are stored in the /tmp directory get removed immediately on system reboot. As such, the /var/tmp directory is used by programs to store data that needs to be preserved between reboots temporarily.

My fstab:

tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0

ls -lha /temp:

[john1@manjaro ~]$ ls -lha /tmp
insgesamt 108K
drwxrwxrwt 20 root  root   960  8. Mai 15:12 .
drwxrwxrwx 19 root  root  4,0K 20. Apr 14:50 ..
-rw-------  1 john1 john1  11K  3. Mai 22:29 Clementine.RWYePt
drwx------  2 john1 john1   80  8. Mai 14:51 .com.google.Chrome.iOhwNo
drwxrwxrwt  2 root  root    40 29. Apr 18:46 .font-unix
drwxr-xr-x  2 john1 john1   40  3. Mai 20:47 hsperfdata_john1
-rw-r--r--  1 john1 john1 3,8K  3. Mai 19:46 i4j_log_MediathekView_10267141805446812360.log
-rw-r--r--  1 john1 john1 3,8K  2. Mai 21:13 i4j_log_MediathekView_16283684872726811157.log
-rw-r--r--  1 john1 john1 3,8K  1. Mai 20:26 i4j_log_MediathekView_16494222377494407735.log
-rw-r--r--  1 john1 john1 3,8K  2. Mai 11:28 i4j_log_MediathekView_17992274651662542618.log
drwxrwxrwt  2 root  root    60 29. Apr 18:46 .ICE-unix
-rw-------  1 john1 john1 2,3K  2. Mai 15:39 mcfly.1BUUfnCH
-rw-------  1 john1 john1 2,3K  2. Mai 15:39 mcfly.5JuOUJuz
-rw-------  1 john1 john1 2,6K 30. Apr 16:44 mcfly.aeCEFjKj
-rw-------  1 john1 john1 2,3K  2. Mai 15:39 mcfly.Ccl0CevF
-rw-------  1 john1 john1 2,4K 29. Apr 17:04 mcfly.eFTudSg9
-rw-------  1 john1 john1 2,5K 30. Apr 16:54 mcfly.eK2stKq3
-rw-------  1 john1 john1 2,3K 29. Apr 18:46 mcfly.FWmZh3YW
-rw-------  1 john1 john1 2,3K 29. Apr 18:46 mcfly.gjsF7b5i
-rw-------  1 john1 john1 3,0K  8. Mai 14:50 mcfly.IJLf0MPU
-rw-------  1 john1 john1 2,4K 29. Apr 19:48 mcfly.JcW51FbN
-rw-------  1 john1 john1 2,3K  2. Mai 15:37 mcfly.LJ5hq2JM
-rw-------  1 john1 john1 2,3K 29. Apr 16:55 mcfly.NlYUsiCa
-rw-------  1 john1 john1 2,3K 29. Apr 19:48 mcfly.nUv5aaue
-rw-------  1 john1 john1 2,5K 30. Apr 16:55 mcfly.NWx8PSOd
-rw-------  1 john1 john1 2,4K 29. Apr 16:57 mcfly.Ocs3ZEaV
-rw-------  1 john1 john1 2,4K  1. Mai 19:49 mcfly.Sdm6GjLw
-rw-------  1 john1 john1 2,5K 30. Apr 16:53 mcfly.TKxirMwK
drwxrwxrwx  4 john1 john1  100  2. Mai 19:51 pamac
drwxrwxrwx  2 john1 john1   40 29. Apr 19:42 pamac-app-icons
drwxrwxrwx  2 john1 john1   40 29. Apr 19:42 pamac-app-screenshots
-rw-r-----  1 john1 john1    0 29. Apr 18:46 qipc_sharedmemory_MSMNotifier1982c3c75cbed4786bc185973fce6242a7b208b8
-rw-r-----  1 john1 john1    0 29. Apr 18:46 qipc_systemsem_MSMNotifier1982c3c75cbed4786bc185973fce6242a7b208b8
srwxr-xr-x  1 john1 john1    0  3. Mai 17:34 qtsingleapp-clemen-d211-3e8
-rw-r--r--  1 john1 john1    0  3. Mai 17:34 qtsingleapp-clemen-d211-3e8-lockfile
drwx------  2 root  root    40 29. Apr 16:50 runtime-root
drwx------  3 root  root    60  3. Mai 17:27 snap.spotify
drwx------  3 root  root    60 29. Apr 18:46 systemd-private-a57851c89bf940a6beb1c58490d246a0-bluetooth.service-YXXK5u
drwx------  3 root  root    60 29. Apr 18:46 systemd-private-a57851c89bf940a6beb1c58490d246a0-colord.service-XYaVrD
drwx------  3 root  root    60 29. Apr 18:46 systemd-private-a57851c89bf940a6beb1c58490d246a0-ModemManager.service-cB4LbT
drwx------  3 root  root    60 29. Apr 18:46 systemd-private-a57851c89bf940a6beb1c58490d246a0-systemd-logind.service-rl8vNi
drwx------  3 root  root    60 29. Apr 18:46 systemd-private-a57851c89bf940a6beb1c58490d246a0-systemd-timesyncd.service-qJQE1K
drwx------  3 root  root    60 29. Apr 18:46 systemd-private-a57851c89bf940a6beb1c58490d246a0-upower.service-n3OFUY
drwx------  2 john1 john1   80  5. Mai 14:56 .vbox-john1-ipc
-r--r--r--  1 root  root    11 29. Apr 18:46 .X0-lock
drwxrwxrwt  2 root  root    60 29. Apr 18:46 .X11-unix
-rw-------  1 john1 john1  406 29. Apr 18:46 .xfsm-ICE-IFKFL1
drwxrwxrwt  2 root  root    40 29. Apr 18:46 .XIM-unix

SystemInfo:

Generated on 2022-05-08 15:17:1652015837

#################### inxi -Fxzc0 ########################

System:
  Kernel: 5.15.32-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: Xfce v: 4.16.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 81RS v: Lenovo Yoga S740-14IIL serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial: <superuser required> UEFI: LENOVO
    v: BYCN39WW date: 05/28/2021
Battery:
  ID-1: BAT0 charge: 63.9 Wh (97.9%) condition: 65.3/62.0 Wh (105.3%) volts: 17.1 min: 15.4
    model: LGC L19L4PD2 status: full
CPU:
  Info: quad core model: Intel Core i7-1065G7 bits: 64 type: MT MCP arch: Ice Lake rev: 5 cache:
    L1: 320 KiB L2: 2 MiB L3: 8 MiB
  Speed (MHz): avg: 1138 high: 1200 min/max: 400/3900 cores: 1: 1200 2: 1200 3: 1200 4: 1102
    5: 1101 6: 1100 7: 1100 8: 1101 bogomips: 23968
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Iris Plus Graphics G7 vendor: Lenovo driver: i915 v: kernel bus-ID: 00:02.0
  Device-2: NVIDIA GP108M [GeForce MX250] vendor: Lenovo driver: nvidia v: 510.60.02
    bus-ID: 2b:00.0
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 3-5:5
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting,nvidia unloaded: nouveau
    gpu: i915 resolution: 1: 1920x1080~60Hz 2: N/A
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Lenovo driver: sof-audio-pci-intel-icl
    bus-ID: 00:1f.3
  Sound Server-1: ALSA v: k5.15.32-1-MANJARO running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: PulseAudio v: 15.0 running: no
  Sound Server-4: PipeWire v: 0.3.49 running: yes
Network:
  Device-1: Intel Ice Lake-LP PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 00:14.3
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus-ID: 2-1.4:4
  IF: enp0s13f0u1u4 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: pan1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-10:8
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 1.86 TiB used: 339.66 GiB (17.9%)
  ID-1: /dev/nvme0n1 vendor: Micron model: MTFDHBA1T0TCK size: 953.87 GiB temp: 53.9 C
  ID-2: /dev/sdb type: USB vendor: Kingston model: DataTraveler 2.0 size: 14.54 GiB
  ID-3: /dev/sdc type: USB vendor: Western Digital model: WD10EARX-00N0YB0 size: 931.51 GiB
Partition:
  ID-1: / size: 57.9 GiB used: 34.63 GiB (59.8%) fs: ext4 dev: /dev/nvme0n1p8
  ID-2: /boot/efi size: 259.5 MiB used: 113.6 MiB (43.8%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 16.67 GiB used: 1.8 MiB (0.0%) dev: /dev/nvme0n1p9
Sensors:
  System Temperatures: cpu: 44.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 292 Uptime: 8d 22h 31m Memory: 15.2 GiB used: 3.82 GiB (25.1%) Init: systemd
  Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: 1725 Client: Unknown Client: wrapper-2.0
  inxi: 3.3.15

What is my misunderstanding?

Yes, i reboot nearly every day!

Hi @JohnML,

There are many files created in /tmp on boot. So it’s not empty when you log in. Furthermore, many applications use it for temporary storage, which might autostart. I’m guessing the best way to test would be to shut down properly, and start up into a Live ISO and check there.

But, if you’re not having any trouble, then don’t worry further.

:wink:

1 Like

Congratulations. You are the first human being with persistent RAM. :stuck_out_tongue:

1 Like

Sorry for the noise, rebooted and:

john1@manjaro ~]$ ls -lha /tmp
insgesamt 28K
drwxrwxrwt 13 root  root   420  8. Mai 16:56 .
drwxrwxrwx 19 root  root  4,0K 20. Apr 14:50 ..
drwxrwxrwt  2 root  root    40  8. Mai 16:55 .font-unix
drwxrwxrwt  2 root  root    60  8. Mai 16:55 .ICE-unix
-rw-------  1 john1 john1 2,2K  8. Mai 16:55 mcfly.073Mzwux
-rw-------  1 john1 john1 2,2K  8. Mai 16:55 mcfly.32IXIkho
-rw-------  1 john1 john1 2,2K  8. Mai 16:55 mcfly.Fz8nSqc1
-rw-------  1 john1 john1 2,2K  8. Mai 16:55 mcfly.LdfuFrCs
drwxrwxrwx  3 john1 john1   60  8. Mai 16:56 pamac
-rw-r-----  1 john1 john1    0  8. Mai 16:55 qipc_sharedmemory_MSMNotifier1982c3c75cbed4786bc185973fce6242a7b208b8
-rw-r-----  1 john1 john1    0  8. Mai 16:55 qipc_systemsem_MSMNotifier1982c3c75cbed4786bc185973fce6242a7b208b8
drwx------  3 root  root    60  8. Mai 16:55 systemd-private-254e3597841045af9ab2041572aa8c2b-bluetooth.service-ilsNax
drwx------  3 root  root    60  8. Mai 16:55 systemd-private-254e3597841045af9ab2041572aa8c2b-colord.service-XzGDvN
drwx------  3 root  root    60  8. Mai 16:55 systemd-private-254e3597841045af9ab2041572aa8c2b-ModemManager.service-RMQPCR
drwx------  3 root  root    60  8. Mai 16:55 systemd-private-254e3597841045af9ab2041572aa8c2b-systemd-logind.service-eSMXQP
drwx------  3 root  root    60  8. Mai 16:55 systemd-private-254e3597841045af9ab2041572aa8c2b-systemd-timesyncd.service-x8kXJu
drwx------  3 root  root    60  8. Mai 16:55 systemd-private-254e3597841045af9ab2041572aa8c2b-upower.service-GNNJ2A
-r--r--r--  1 root  root    11  8. Mai 16:55 .X0-lock
drwxrwxrwt  2 root  root    60  8. Mai 16:55 .X11-unix
-rw-------  1 john1 john1  406  8. Mai 16:55 .xfsm-ICE-QYWRL1
drwxrwxrwt  2 root  root    40  8. Mai 16:55 .XIM-unix

Shame on me :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.