Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] To mount or not to Mount proc, that is the question
Date: Fri, 16 Mar 2012 21:20:03
Message-Id: CAK2H+ecPndY=4q0VwbwyQZOMdSFArkb-+qk542Qamcawginf2g@mail.gmail.com
In Reply to: Re: [gentoo-user] To mount or not to Mount proc, that is the question by "Canek Peláez Valdés"
1 On Fri, Mar 16, 2012 at 12:47 PM, Canek Peláez Valdés <caneko@×××××.com> wrote:
2 > On Fri, Mar 16, 2012 at 1:40 PM, Mark Knecht <markknecht@×××××.com> wrote:
3 <SNIP>
4 >> Looking at the Gentoo amd64 install guide here:
5 >>
6 >> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8
7 >>
8 >> it appears that the recommendation is to mount proc.
9 >>
10 >> [QUOTE]
11 >>
12 >> /dev/sda1   /boot        ext2    defaults,noatime     1 2
13 >> /dev/sda2   none         swap    sw                   0 0
14 >> /dev/sda3   /            ext3    noatime              0 1
15 >>
16 >> /dev/cdrom  /mnt/cdrom   auto    noauto,user          0 0
17 >>
18 >> proc        /proc        proc    defaults             0 0
19 >> shm         /dev/shm     tmpfs   nodev,nosuid,noexec  0 0
20 >>
21 >> [QUOTE]
22 <SNIP>
23 >
24 > I haven't put /proc explicitly on my /etc/fstab since a long time ago,
25 > and everything seems to be working. However, I use systemd, which
26 > always mounts /proc with the default options, and only uses the entry
27 > in /etc/fstab (if present) to override the default options. In other
28 > words, systemd always mounts /proc, no matter if it's listed in
29 > /etc/fstab or not.
30 >
31 > I don't know what OpenRC does, but it would not surprise me that it's
32 > something similar.
33 >
34 > Regards.
35 > --
36 > Canek Peláez Valdés
37 > Posgrado en Ciencia e Ingeniería de la Computación
38 > Universidad Nacional Autónoma de México
39 >
40
41 Thanks Canek. I appreciate your response.
42
43 It seems when rereading the link above the authors do put the work
44 'example' in italics, implying that possibly I should know what I'm
45 doing and not depend on the text on that page. I'm fine with the not
46 depending part. I'm not so sure about the 'know what I'm doing' part.
47 ;-)
48
49 I'm going to take a wild guess that it's somehow mounted in an init
50 script these days but I have no reason to know that's actually how it
51 gets done. I did read the kernel docs and it doesn't seem to be done
52 automatically by the kernel AFAICT.
53
54 Thanks,
55 Mark

Replies

Subject Author
Re: [gentoo-user] To mount or not to Mount proc, that is the question "Canek Peláez Valdés" <caneko@×××××.com>