Skip to contentSkip to conversation

Significance of " /proc/<pid>/root"

DISCUSSION Arun M Kumar 3 participants 3 messages Sep 15, 2013 – Sep 17, 2013

lore
Share & tools
lore
#0 lore raw

What is the significance of the directory named root inside /proc/<pid> ?

ex:
----------------------------------------------------------------------------------
arunkumar at arun-ThinkPad-Edge-E530:/proc/2543/root$ ls

bin   cdrom  etc   initrd.img      lib         media  opt   root 
sbin     srv  tmp  var      vmlinuz.old
boot  dev    home  initrd.img.old  lost+found  mnt    proc  run selinux  

sys usr vmlinuz
----------------------------------------------------------------------------------

#1 lore raw

/proc/<pid>/root is a link for the root filesystem. This link helps when using chroot.

________________________________
From: Arun M Kumar <[email protected]>
To: Kernel Newbies Mailing List <[email protected]>
Sent: Sunday, September 15, 2013 8:03 PM
Subject: Significance of " /proc/<pid>/root"

What is the significance of the directory named root inside /proc/<pid> ?

ex:
----------------------------------------------------------------------------------
arunkumar at arun-ThinkPad-Edge-E530:/proc/2543/root$ ls

bin? cdrom? etc? initrd.img? ? ? lib? ? ? ? media? opt? root sbin? ? srv? tmp? var? ? ? vmlinuz.old
boot? dev? ? home? initrd.img.old? lost+found? mnt? ? proc? run selinux? sys? usr? vmlinuz
----------------------------------------------------------------------------------

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130915/c7dc190a/attachment.html

#2 lore raw
In reply to Arun M Kumar
Quoted 9 lines · Arun M Kumar

What is the significance of the directory named root inside /proc/<pid> ?

ex:
----------------------------------------------------------------------------------
arunkumar at arun-ThinkPad-Edge-E530:/proc/2543/root$ ls

bin   cdrom  etc   initrd.img      lib         media  opt   root 
sbin     srv  tmp  var      vmlinuz.old
boot  dev    home  initrd.img.old  lost+found  mnt    proc  run selinux  
Quoted 8 lines

sys usr vmlinuz
----------------------------------------------------------------------------------

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

It keeps record of all data (system level) , resources and parameters for that process . You can get more idea here :
https://www.kernel.org/doc/Documentation/filesystems/proc.txt