Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.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 19:48:37
Message-Id: CADPrc82-xYTsSfpcWXw2wUtNKNo9ioLD8beCZhMrpsEZVOsXdQ@mail.gmail.com
In Reply to: [gentoo-user] To mount or not to Mount proc, that is the question by Mark Knecht
1 On Fri, Mar 16, 2012 at 1:40 PM, Mark Knecht <markknecht@×××××.com> wrote:
2 > I've been trying to debug a problem where one laptop's networking, as
3 > controlled by wicd, seems to randomly go offline once in awhile. In
4 > the process of reviewing 5 machines I ran across an inconsistency
5 > across a bunch of my machines, new and old. It seems some of them
6 > mount proc in fstab while others do not. Some of these machines have
7 > been around for a few years not mounting proc and except for the
8 > laptop's networking issues there really haven't been any problems.
9 >
10 > Looking at the Gentoo amd64 install guide here:
11 >
12 > http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8
13 >
14 > it appears that the recommendation is to mount proc.
15 >
16 > [QUOTE]
17 >
18 > /dev/sda1   /boot        ext2    defaults,noatime     1 2
19 > /dev/sda2   none         swap    sw                   0 0
20 > /dev/sda3   /            ext3    noatime              0 1
21 >
22 > /dev/cdrom  /mnt/cdrom   auto    noauto,user          0 0
23 >
24 > proc        /proc        proc    defaults             0 0
25 > shm         /dev/shm     tmpfs   nodev,nosuid,noexec  0 0
26 >
27 > [QUOTE]
28 >
29 >
30 > What would the issues be with proc not mounted? For instance, this
31 > machine doesn't mount proc in fstab but still has proc:
32 >
33 > laptop1 ~ # cat /etc/fstab
34 > <SNIP>
35 > /dev/sdb1               /boot           ext2            noauto,noatime  1 2
36 > /dev/sdb4               /               ext3            noatime         0 1
37 > /dev/sdb2               none            swap            sw              0 0
38 > /dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0
39 >
40 > shm                     /dev/shm        tmpfs
41 > nodev,nosuid,noexec     0 0
42 >
43 >
44 > laptop1 ~ # cat /proc/mdstat
45 > Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
46 > md127 : active (auto-read-only) raid1 sdb3[1] sda3[0]
47 >      343758245 blocks super 1.2 [2/2] [UU]
48 >
49 > unused devices: <none>
50 > laptop1 ~ #
51
52 I haven't put /proc explicitly on my /etc/fstab since a long time ago,
53 and everything seems to be working. However, I use systemd, which
54 always mounts /proc with the default options, and only uses the entry
55 in /etc/fstab (if present) to override the default options. In other
56 words, systemd always mounts /proc, no matter if it's listed in
57 /etc/fstab or not.
58
59 I don't know what OpenRC does, but it would not surprise me that it's
60 something similar.
61
62 Regards.
63 --
64 Canek Peláez Valdés
65 Posgrado en Ciencia e Ingeniería de la Computación
66 Universidad Nacional Autónoma de México

Replies

Subject Author
Re: [gentoo-user] To mount or not to Mount proc, that is the question Mark Knecht <markknecht@×××××.com>