View previous topic :: View next topic |
Author |
Message |
gen03 n00b
Joined: 18 Nov 2004 Posts: 61
|
Posted: Sun Nov 21, 2004 8:44 pm Post subject: urgent help on step6, problem with directory |
|
|
hi, sorry it's gonna be long, I tried to describe it in as much detail as I could
during step 6:
Code: | # chroot /mnt/gentoo /bin/bash
# env-update
* Caching service dependencies...
# source /etc/profile
|
the step:
Code: | # chroot /mnt/gentoo /bin/bash | went OK
but when I did env-update, I got the error:
Code: | !!! Invalid token (not '=') is
!!! Parse Error: Invalid token (not '='): //etc/make.conf: line 7 in //etc/make.conf
!!! Incorrect multiline literals can cause this. Do not use them |
after which, I realise I was not longer under
if I remembered correctly,
but
I went to fix the /etc/make.conf first, I got this garbage after mirrorselect, so I opened a new file, write in
Code: |
CFLAGS="-march=pentium3 -O3 -pipe -msse2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
VIDEO_CARDS="radeon"
| which I think was basicly the same as before, just without the stuff added by mirrorselect, then I overwote the old make.conf
then I went
Code: |
livecd / # env-update
* Caching service dependencies...
livecd / # source /etc/profile
|
it seemed to work, but when I do
Code: | livecd / # less /usr/portage/profiles/use.desc |
it says that the directory can not be found.
I guess the problem must have been due to the error during "env-update", after which my directory changed(I have been under livecd / # since that error). also I can not found /mnt/gentoo anymore...
I am quite sure that I created patition, I have had a file system, and I mounted the disk on mnt/gentoo.
someone please help me to get back to the original directory, I need urgent help. thanks!!
Alternatively, will it be possible to reboot my computer and start everything again? will it cause any problems? |
|
Back to top |
|
|
Crenshaw Guru
Joined: 23 Jun 2004 Posts: 474 Location: Poland
|
Posted: Sun Nov 21, 2004 8:50 pm Post subject: |
|
|
After chroot you are 'inside' a new environment so you should type exit or hit Ctrl-D
and chroot one more time with proper make.conf. The one you shown is ok.
EDIT: you can reboot and do everything once more if you like |
|
Back to top |
|
|
gen03 n00b
Joined: 18 Nov 2004 Posts: 61
|
Posted: Sun Nov 21, 2004 9:09 pm Post subject: |
|
|
Thank you SO much!!!
I am still confused tho, am I supposed to be "inside" the new directory after I "chroot" into it?
cos when I do(still step 6):
Quote: | mkdir /etc/portage |
it says
Quote: | mkdir: cannot create directory '/etc/portage': file exists |
thanks again! |
|
Back to top |
|
|
Crenshaw Guru
Joined: 23 Jun 2004 Posts: 474 Location: Poland
|
Posted: Sun Nov 21, 2004 9:19 pm Post subject: |
|
|
When you chroot you change your / directory to the one you specify (and some other things are done AFAIK).
If you do:
chroot /mnt/gentoo /bin/bash
it means that new / will be /mnt/gentoo and all files from /mnt/gentoo will be in /
from now on. you will not be able to see files not in /mnt/gentoo after chroot.
EDIT /etc/portage if it's already there i wouldnt bother just make sure you do all the following steps in the console you've chrooted otherwise it will fail. |
|
Back to top |
|
|
gen03 n00b
Joined: 18 Nov 2004 Posts: 61
|
Posted: Sun Nov 21, 2004 9:37 pm Post subject: |
|
|
I am sorry, I seem to be really slow on this,
for step 6.c
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6#bootstrap
when I run:
Code: | livecd / # cd /usr/portage |
it says: no such file or directory, it seems to have the same problem as my first post with the Code: | livecd / # less /usr/portage/profiles/use.desc | have I done something wrong? how should I do this correctly? |
|
Back to top |
|
|
Crenshaw Guru
Joined: 23 Jun 2004 Posts: 474 Location: Poland
|
Posted: Mon Nov 22, 2004 11:58 am Post subject: |
|
|
Has emerge --sync or emerge-webrsync quit without any errors?
Hmm. Try following all steps from Quote: | Code Listing 2: Copy over DNS information | . Remember that after chroot type all commands on console you've chrooted. |
|
Back to top |
|
|
|