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

1 Answer 1

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.

3
  • +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
    Commented Oct 6, 2021 at 15:28
  • If the system is running systemd (/run/systemd exists), yes, you can remove that entry. Commented Oct 6, 2021 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
    Commented Oct 6, 2021 at 21:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .