Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with chroot on install <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
bcarsbs
n00b
n00b


Joined: 13 Jul 2006
Posts: 3
Location: Diamondhead, MS

PostPosted: Thu Jul 13, 2006 2:14 pm    Post subject: Problems with chroot on install <SOLVED> Reply with quote

I installed Gentoo on my Compaq R3000z laptop and everything went fine. My hard disk failed and when I went to reinstall on the new drive I noticed that when I chrooted during the install process, I never left the livecd prompt (livecd /#). I continued anyway and when I rebooted my /usr was empty. The first time I installed I remember the prompt going from (livecd /#) to (/#) when I chrooted. I am thinking this might be one of the reasons why /usr was empty after reboot. The drive was mounted correctly as per mtab and the data was there before I rebooted. What step am I missing to make chroot change prompts? Thanks, Chris

Last edited by bcarsbs on Thu Jul 13, 2006 2:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
thorpe
l33t
l33t


Joined: 09 May 2005
Posts: 618
Location: Sydney, Australia.

PostPosted: Thu Jul 13, 2006 2:18 pm    Post subject: Reply with quote

The procedure for chroot'ing as per the handbook.
Code:

chroot /mnt/gentoo /bin/bash
# env-update
>> Regenerating /etc/ld.so.cache...
# source /etc/profile
# export PS1="(chroot) $PS1"

_________________
Research before taking any advice from me. I'm still coming to grips with this myself.
Back to top
View user's profile Send private message
davascript
l33t
l33t


Joined: 07 Apr 2004
Posts: 618
Location: Pennsylvania

PostPosted: Thu Jul 13, 2006 2:21 pm    Post subject: Reply with quote

Did you extract your portage tree before you chrooted?

When you chroot you will be rooted in the /mnt/gentoo folder and you can use the base system. you can check by simply running
Code:
ls /mnt


There shouldnt ba a /mnt/gentoo folder so if you see gentoo in there then your no chrooted and vice the versa.
Back to top
View user's profile Send private message
bcarsbs
n00b
n00b


Joined: 13 Jul 2006
Posts: 3
Location: Diamondhead, MS

PostPosted: Thu Jul 13, 2006 2:32 pm    Post subject: Reply with quote

davascript wrote:
Did you extract your portage tree before you chrooted?

When you chroot you will be rooted in the /mnt/gentoo folder and you can use the base system. you can check by simply running
Code:
ls /mnt


There shouldnt ba a /mnt/gentoo folder so if you see gentoo in there then your no chrooted and vice the versa.


I followed the steps to a "T". When I
Code:
ls /mnt
the only dir ther are cdrom & floppy. It appears that I'm in there but the prompt still reads
Code:
(chroot) livecd / #
is this correct or have I missed something somewhere? Thanks, Chris
Back to top
View user's profile Send private message
thorpe
l33t
l33t


Joined: 09 May 2005
Posts: 618
Location: Sydney, Australia.

PostPosted: Thu Jul 13, 2006 2:37 pm    Post subject: Reply with quote

That is exactly what this line...
Code:

export PS1="(chroot) $PS1"

does.

The $PS1 variable is the prompt string.
_________________
Research before taking any advice from me. I'm still coming to grips with this myself.
Back to top
View user's profile Send private message
davascript
l33t
l33t


Joined: 07 Apr 2004
Posts: 618
Location: Pennsylvania

PostPosted: Thu Jul 13, 2006 2:41 pm    Post subject: Reply with quote

You have chrooted correctly.

did you donwload and extract your portage snapshot correctly

Installing Portage
Back to top
View user's profile Send private message
bcarsbs
n00b
n00b


Joined: 13 Jul 2006
Posts: 3
Location: Diamondhead, MS

PostPosted: Thu Jul 13, 2006 2:48 pm    Post subject: Reply with quote

Yes, Portage was taken from the installation disc and installed correctly, I'm in the middle of
Code:
emerge --metadata
right now
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