← retour aux snippets

findmnt: inspecter montages et options

Lister la hiérarchie des montages, options détaillées et sources (UUID, LABEL).

bash filesystem #findmnt#mount#uuid

objectif

Comprendre rapidement qui est monté où et avec quelles options.

code minimal

findmnt -A -o TARGET,SOURCE,FSTYPE,OPTIONS | column -t | less -S

utilisation

# par point de montage
findmnt /var

variante(s) utile(s)

# arbre filtré par type
findmnt -t xfs,ext4

notes

  • plus lisible que /proc/self/mountinfo direct.
  • -J pour JSON si nécessaire.