Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17845 - /proc not explained correctly
Summary: /proc not explained correctly
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-19 16:10 UTC by John Mylchreest
Modified: 2003-03-27 02:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Mylchreest 2003-03-19 16:10:29 UTC
<meekrob> there's a big problem with the new install doc...
<meekrob> mount /proc /gentoo/proc
<meekrob> should be 
<meekrob> mount -o bind /proc /gentoo/proc
<meekrob> newbies can't figure it out ...

as above

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jon Portnoy (RETIRED) gentoo-dev 2003-03-19 16:14:16 UTC
This is how it was previously. There was a short discussion of it and the conclusion was that -o bind was unnecessary, as I recall.
Comment 2 Jon Portnoy (RETIRED) gentoo-dev 2003-03-19 16:19:24 UTC
And when I say 'this,' I really mean 'that.' ;-)
Comment 3 John Mylchreest 2003-03-19 16:20:33 UTC
could that not cause problems as you do not provide a filesystem?
Comment 4 George Shapovalov (RETIRED) gentoo-dev 2003-03-19 16:25:38 UTC
Well, there is still a problem:
groug mnt # mount /proc/ mnt/
mount: /proc/ is not a block device

This should be either:
mount -o bind /proc /new/place
or
mount -t proc /proc /new/place

First will "hardlink" old location to new location. Only possible in kernels 2.4 and higher.
Second is universal and will just mount another instance of proc, which in the end is the same (since hardlinking a dir just creates similar instance..).
Personally I would prefer 2nd variant, as sometimes one might need to install off 2.2 kernel series (like upgrading an old box and doing it "live").

George
Comment 5 John Mylchreest 2003-03-19 16:27:40 UTC
i think modifying to 
mount -t proc /proc /mnt/proc
is also the most sensible solution.

just my 2c
Comment 6 Brad Laue (RETIRED) gentoo-dev 2003-03-21 02:12:05 UTC
# mount -t /proc /mnt/gentoo/proc
# cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
# chroot /mnt/gentoo /bin/bash

Just to unify the semi-correct responses to this bug:

mount -t proc none /mnt/live

This needs to be added to the installation instructions sooner than
later.
Comment 7 Brad Laue (RETIRED) gentoo-dev 2003-03-21 02:13:34 UTC
Blah. That should read:

mount -t proc none /mnt/gentoo/proc
Comment 8 Sven Vermeulen (RETIRED) gentoo-dev 2003-03-21 05:22:22 UTC
ppl, what are you doing? The latest commit now reads

"""
 # <c>mount -t proc proc /mnt/gentoo/proc</c>
"""

This is still wrong. *Or* you do "mount -t proc none /mnt/gentoo/proc", *or* you do "mount -t proc /proc /mnt/gentoo/proc". 
Comment 9 John Davis (zhen) (RETIRED) gentoo-dev 2003-03-21 13:55:23 UTC
that is correct, it has been verified by at least 4 people in -dev. The doc is fine as is.
Comment 10 Tobias Sager 2003-03-27 02:57:24 UTC
I would change to:

mount -t proc /proc /mnt/gentoo/proc

This will prevent some hassle for newbies.