2

I have a proc mount entry in my fstab on (Debian derived) Raspberry Pi OS. Is this one needed? On my pc (running Arch linux) I don't have this but (of course) proc gets mounted.

fstab line:

proc        /proc       proc    defaults    0 0

uname -a:

Linux website 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
goldilocks
  • 87,661
  • 30
  • 204
  • 262
Antoni
  • 131

1 Answers1

12

Historically, /proc wasn’t automatically mounted, which is why some systems still list it in /etc/fstab.

Nowadays systemd takes care of mounting a number of “API file systems” including /proc, so any system running systemd will have /proc mounted whether it’s listed in /etc/fstab or not.

API file systems may still appear in /etc/fstab since that’s the documented way of overriding mount settings; see Systemd backed tmpfs | How to specify /tmp size manually for details.

Stephen Kitt
  • 434,908
  • +1 and accept, nice explanation. so i can remove that entry? my system is fully updated but it was flashed 3+ years ago (apr 18) (does that even matter?) – Antoni Oct 06 '21 at 15:28
  • If the system is running systemd (/run/systemd exists), yes, you can remove that entry. – Stephen Kitt Oct 06 '21 at 15:33
  • @Antoni: And your system is running systemd, so yes - you can remove the entry in/etc/fstab. The only exception would be if you've removed systemd - which would be highly unusual. – Seamus Oct 06 '21 at 21:01