# =====================================================================
#  Fichier : /etc/fstab
#  Objectif : Maximiser l’usage de la RAM via tmpfs (système quasi-volatile)
# =====================================================================

# ---------------------------------------------------------------------
# Dossiers temporaires globaux
# ---------------------------------------------------------------------
tmpfs   /tmp                        tmpfs   defaults,noatime,mode=1777,size=2G          0  0
tmpfs   /var/tmp                    tmpfs   defaults,noatime,mode=1777,size=1G          0  0

# ---------------------------------------------------------------------
# Caches et logs système
# ---------------------------------------------------------------------
tmpfs   /var/cache                  tmpfs   defaults,noatime,mode=0755,size=1G          0  0
tmpfs   /var/log                    tmpfs   defaults,noatime,mode=0755,size=512M        0  0
tmpfs   /run                        tmpfs   defaults,noatime,mode=0755,size=512M        0  0
tmpfs   /var/run                    tmpfs   defaults,noatime,mode=0755,size=512M        0  0
tmpfs   /var/lock                   tmpfs   defaults,noatime,mode=1777,size=64M         0  0

# ---------------------------------------------------------------------
# Caches spécifiques et bases de données volatiles
# ---------------------------------------------------------------------
#tmpfs   /var/lib/apt/lists          tmpfs   defaults,noatime,mode=0755,size=128M        0  0
#tmpfs   /var/lib/dpkg               tmpfs   defaults,noatime,mode=0755,size=256M        0  0
tmpfs   /var/lib/systemd            tmpfs   defaults,noatime,mode=0755,size=256M        0  0
tmpfs   /var/lib/systemd/coredump   tmpfs   defaults,noatime,mode=0700,size=512M        0  0
tmpfs   /var/spool                  tmpfs   defaults,noatime,mode=1777,size=256M        0  0

# ---------------------------------------------------------------------
# Facultatifs / extrêmes (désactiver si besoin de persistance)
# ---------------------------------------------------------------------
tmpfs   /var/lib/NetworkManager     tmpfs   defaults,noatime,mode=0755,size=64M         0  0
tmpfs   /var/lib/systemd/timers     tmpfs   defaults,noatime,mode=0755,size=32M         0  0
tmpfs   /var/lib/misc               tmpfs   defaults,noatime,mode=0755,size=64M         0  0
