View previous topic :: View next topic |
Author |
Message |
bcarsbs n00b
Joined: 13 Jul 2006 Posts: 3 Location: Diamondhead, MS
|
Posted: Thu Jul 13, 2006 2:14 pm Post subject: Problems with chroot on install <SOLVED> |
|
|
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 |
|
|
thorpe l33t
Joined: 09 May 2005 Posts: 618 Location: Sydney, Australia.
|
Posted: Thu Jul 13, 2006 2:18 pm Post subject: |
|
|
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 |
|
|
davascript l33t
Joined: 07 Apr 2004 Posts: 618 Location: Pennsylvania
|
Posted: Thu Jul 13, 2006 2:21 pm Post subject: |
|
|
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
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 |
|
|
bcarsbs n00b
Joined: 13 Jul 2006 Posts: 3 Location: Diamondhead, MS
|
Posted: Thu Jul 13, 2006 2:32 pm Post subject: |
|
|
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
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 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 |
|
|
thorpe l33t
Joined: 09 May 2005 Posts: 618 Location: Sydney, Australia.
|
Posted: Thu Jul 13, 2006 2:37 pm Post subject: |
|
|
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 |
|
|
davascript l33t
Joined: 07 Apr 2004 Posts: 618 Location: Pennsylvania
|
Posted: Thu Jul 13, 2006 2:41 pm Post subject: |
|
|
You have chrooted correctly.
did you donwload and extract your portage snapshot correctly
Installing Portage |
|
Back to top |
|
|
bcarsbs n00b
Joined: 13 Jul 2006 Posts: 3 Location: Diamondhead, MS
|
Posted: Thu Jul 13, 2006 2:48 pm Post subject: |
|
|
Yes, Portage was taken from the installation disc and installed correctly, I'm in the middle of right now |
|
Back to top |
|
|
|