proc_pid_mountstats(5)

๐Ÿ’– /proc/pid/mountstats โ€” mount statistics ๐Ÿ’–

okay bestie, pull up a chair, this is the Linux proc_pid_mountstats(5) page and it's a short one but it's so useful ๐Ÿซถ


โœจ NAME โœจ

/proc/pid/mountstats โ€” literally just mount statistics, that's the whole vibe ๐Ÿ’…


๐ŸŒธ DESCRIPTION ๐ŸŒธ

๐Ÿฆ‹ /proc/pid/mountstats (since Linux 2.6.17)

So this file (yes it's a file, not a dir, stay with me) exports info โ€” statistics, configuration info, the whole little bundle โ€” about the mounts inside the process's mount namespace. If you need a refresher on what a mount namespace even is, go check mount_namespaces(7), iykyk ๐Ÿ’œ

The lines in this file look like this:

device /dev/sda7 mounted on /home with fstype ext3 [stats]
(       1      )            ( 2 )             (3 ) (  4  )

and those little numbers underneath? they're a map, bestie. here's what each field means:

  • (1) โ€” the name of the mounted device. or, if there's no device behind it, it says "nodevice". iconic honestly ๐ŸŒˆ
  • (2) โ€” the mount point, aka where it lives in the filesystem tree.
  • (3) โ€” the filesystem type.
  • (4) โ€” optional stats and configuration info. and this is the tea: currently (as at Linux 2.6.26), only NFS filesystems actually export anything through this field. everyone else leaves it empty ๐Ÿ˜ญ
heads up: this file is readable only by the owner of the process. no peeking, no cap ๐Ÿ”ฅ

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘


star sign moment: this page is from Linux man-pages 6.20, dated 2026-02-08. periodt ๐Ÿ’–โœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from
  • arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • ๐Ÿ“œ the page's license: GPL-3.0-or-later
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms