Murray R. Van Luyn schrieb:
Only the /proc directory itself should exist (empty) on your root drive. Then say "mount -t proc proc /proc" somewhere in your startup or put the equivalent line in /etc/fstab if you have that.
The *contents* of /proc are created directly by the kernel whenever it's accessed - reading a file in proc really connects your user space program directly to some kernel function that produces its content on-the-fly. Same for writing - your process gets connected to some kernel function that takes the data from your application and does something with it.
So except for the top /proc directory itself, nothing in /proc exists on any disk.