Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What are /proc, /dev and /sys?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6313
Location: /usr/lib64/lv2

PostPosted: Tue Mar 20, 2018 6:09 pm    Post subject: What are /proc, /dev and /sys? Reply with quote

I've been doing a bunch of Gentoo installs recently, and I realized I don't really know what the /proc, /sys and /dev mounts are when chrooting. What exactly are they and why are they needed?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Tue Mar 20, 2018 6:35 pm    Post subject: Reply with quote

audiodef,

/proc and /sys both expose internal kernel data structures as files.
Some things are read/write, some read only and a some write only.
You can read and change kernel behavior here.

With a kernel using DEVTMPFS /dev contains all the device special nodes for the hardware that the kernel can see.
eg /dev/sda is the entire first HDD detected by the kernel.

Without /dev mounted, grub could not be installed ts the MBR.
/dev/pts in needed for pseudo ttys.

Not mounting /proc and /sys breaks other things.
Try it, its harmless.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21782
Location: here

PostPosted: Tue Mar 20, 2018 6:37 pm    Post subject: Reply with quote

https://unix.stackexchange.com/questions/188886/what-is-in-dev-proc-and-sys
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6313
Location: /usr/lib64/lv2

PostPosted: Tue Mar 20, 2018 7:00 pm    Post subject: Reply with quote

Very cool, thank you both.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum