Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New Installation => Chroot /proc question [solved]
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
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Apr 01, 2010 1:51 pm    Post subject: New Installation => Chroot /proc question [solved] Reply with quote

Ok

Where is the difference between these two chrooting methods?

I have used Method #2 now.


Method #1, according to http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml
Code:

livecd usr # cd /
livecd / # mount -t proc proc /mnt/gentoo/proc
livecd / # mount -o bind /dev /mnt/gentoo/dev
livecd / # chroot /mnt/gentoo /bin/bash
livecd / # env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache.


Method #2, according to http://www.gentoo.org/doc/en/altinstall.xml, SEction

Quote:
Code Listing 3.2: Bind-mounting the proc pseudo filesystem

# mount -o bind /proc /mnt/gentoo/proc



Code:

# mount -o bind /proc /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev
livecd / # chroot /mnt/gentoo /bin/bash
livecd / # env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache.


Offtopic:

I have tried to install with sysrescuecd, the newest, at the moment available. I only get weired messages. I did all the things mentioned in the installation guide, but portage seems to be fxxxx up. So I did a complete new attempt:
I do my own way, like I always did. Install a host binary distro and then chroot. This method works great for ubuntu jaunty jacket, arch-linux and at the moment I try out Linux-Mint.

Well I cant unterstand it, each time I try to install with sysrescue-cd I get weired errors. This first happened in january 2009 first, then in august 2009 and now in march 2010 too.


Last edited by Roman_Gruber on Thu Apr 01, 2010 2:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Apr 01, 2010 1:56 pm    Post subject: Reply with quote

Post the actual error messages that you are getting, verbatim please.

In fact look further down the alternative installation guide:
Quote:
... Then go to The Gentoo Handbook: Preparing the Disks and follow the instructions. When chrooting, use the following command to flush your environment:
Code:
Code Listing 5.5: Flushing the environment during chroot

# env -i HOME=$HOME TERM=$TERM chroot /mnt/gentoo /bin/bash
# /usr/sbin/env-update
# source /etc/profile
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Apr 01, 2010 2:00 pm    Post subject: Reply with quote

Mike Hunt wrote:
Post the actual error messages that you are getting, verbatim please.


Well, sry I have ditched allready this first attempt of installation of gentoo.

Basically, the python wasn*t working. All the screen was filled up with python errors. Therefore I have Installed linux-mint, downloaded a new portage snapshot and also a new stage3-archive. Quite now, I do the make.conf and then I proceed. I have to look up compiler flags and so on. => march-settings

Question. Maybe its a bad idea, to set ~amd64 at the point of installation in /etc/make.conf while installing? Is setting ~amd64 supported during installation or not?
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Apr 01, 2010 2:04 pm    Post subject: Reply with quote

Yes it is, in fact you can use a ~ stage 3 to install Gentoo, and follow the Gentoo Handbook as usual.. You can get it here.

Then you can just unmerge dev-vcs/git if you don't need it.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Apr 01, 2010 2:49 pm    Post subject: Reply with quote

Ok, seems portage is running now in the chroot environment, but I have kept now on stable branch.

For me, I have written down my installation steps, I will keep to method #2 to bind the proc directory.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Apr 01, 2010 3:45 pm    Post subject: Reply with quote

Glad to hear it's working now, happy compiling. :)
Back to top
View user's profile Send private message
rjw8703
Apprentice
Apprentice


Joined: 14 Aug 2004
Posts: 246
Location: Auburn, Al

PostPosted: Sun Apr 04, 2010 7:59 pm    Post subject: Reply with quote

Which mount proc and chroot did you use?
For proc:
mount -t proc none /mnt/gentoo/proc or
mount -o bind /proc /mnt/gentoo/proc

And for chroot:
chroot /mnt/gentoo /bin/bash or
env -i HOME=$HOME TERM=$TERM chroot /mnt/gentoo /bin/bash

I'm also trying to installing gentoo from sysrescue, and I am stuck. I've read too many conflicting ways of installing gento from another distro.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Apr 04, 2010 8:44 pm    Post subject: Reply with quote

For the mount, they both achieve exactly the same results by different means. For the chroot, the latter appears to be a way of compensating for a perhaps too rich environment on alternate install media as "env -i" erases the current environment and constructs one from scratch.

Now, on Gentoo-based install media (including SysRescueCd, the Gentoo Minimal, and the Gentoo LiveDVD), there's no issue with the former (of both). My advice is, just follow the Handbook.

If you're having problems please post the command you issued and the response you got. My crystal ball is apparently not working right now. :P

Oh, and stick with the System Rescue CD. It's Gentoo-based and, in some ways, superior to the official install media.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
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