LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Where does the file system proc get mounted during the boot process? (http://www.linuxquestions.org/questions/fedora-35/where-does-the-file-system-proc-get-mounted-during-the-boot-process-4175460703/)

computergirl121 05-04-2013 01:49 PM

Where does the file system proc get mounted during the boot process?
 
I am trying to figure out where the proc gets mounted during the boot process. Is it is the /proc?

jv2112 05-04-2013 05:11 PM

Yes.
/proc ................

rknichols 05-04-2013 05:12 PM

When the system first boots, it is running from the initrd, which is a small root filesystem in RAM. In that, there is a script named "init" that performs various functions, including the initial mounting of /proc.

The initramfs-*.img files in your /boot are compressed cpio archives of that initrd. If you want to examine the init script, you can extract it into your current directory like this:
Code:

gunzip -c /root/initramfs-$(uname -r).img | cpio -im init

computergirl121 05-04-2013 06:01 PM

LOL YIPPPEEEE!!!! I got something right I am learning
Thank you.

syg00 05-04-2013 06:05 PM

I've never tried it, but I suspect /proc could be mounted (almost) where-ever you want.
Stand by for all-round confusion to erupt ...

And, of course, initrd id is optional. It's unlikely the OP has a system without one, but possible.

computergirl121 05-04-2013 06:05 PM

I will check out what you suggested rknichols. Thanks a lot

rknichols 05-04-2013 07:39 PM

Quote:

Originally Posted by syg00 (Post 4944976)
I've never tried it, but I suspect /proc could be mounted (almost) where-ever you want.

And in fact, it does get mounted in other places, all simultaneously, wherever things that run in a chroot environment need access to /proc.

Quote:

And, of course, initrd id is optional. It's unlikely the OP has a system without one, but possible.
Since this is a Fedora-specific forum, I'd say that liklihood is vanishingly small.


All times are GMT -5. The time now is 11:39 PM.