Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with FAQ instructions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cjones
n00b
n00b


Joined: 29 Jan 2007
Posts: 19

PostPosted: Sat Feb 17, 2007 2:23 pm    Post subject: Problem with FAQ instructions Reply with quote

After performing networkless install from LiveCD 2006.1, Gentoo fails to boot off RAID controller.

Following http://www.gentoo.org/doc/en/faq.xml#bootrescue

Quote:

Then we chroot into our Gentoo environment and configure the kernel:
# chroot /mnt/gentoo /bin/bash
# env-update && source /etc/profile
# cd /usr/src/linux


However I get the following:

Quote:

bash: cd: /usr/src/linux: No such file or directory

_________________
Dell PowerEdge 2300/700
Back to top
View user's profile Send private message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Sat Feb 17, 2007 2:30 pm    Post subject: Reply with quote

/usr/src/linux is a symlink to your current kernel (/usr/src/linux-2.6.19-r5 for example)

emerge the kernel with the "symlink" USE flag or create the link by hand, im not sure about the correct parameters,
Code:
ln --help
will give you all info you need
Back to top
View user's profile Send private message
cjones
n00b
n00b


Joined: 29 Jan 2007
Posts: 19

PostPosted: Sat Feb 17, 2007 2:49 pm    Post subject: Reply with quote

/usr/src is empty
_________________
Dell PowerEdge 2300/700
Back to top
View user's profile Send private message
jseymour
Apprentice
Apprentice


Joined: 23 Jun 2006
Posts: 202
Location: Gainesville Florida

PostPosted: Sat Feb 17, 2007 4:01 pm    Post subject: Reply with quote

Did you mount all your partitions? Did you emerge a kernel? Don't get mad just asking the obvious. :)
_________________
WebServerMasters
Gentoo Installation Flash Tutorials
Back to top
View user's profile Send private message
blackmail
n00b
n00b


Joined: 20 Feb 2006
Posts: 18
Location: Troy, TURKEY

PostPosted: Sat Feb 17, 2007 4:38 pm    Post subject: Reply with quote

cjones, when you installed your machine from livecd, there isn't created a symlink in /usr/src. somebody explains the reason in the forum. if you want to update your kernel, do it those below.

Quote:
first open your computer with minimalcd

Quote:
mount your harddisk


Code:
chroot /mnt/gentoo /bin/bash

Code:
emerge gentoo-sources

Code:
cd /usr/src/

Code:
ln -s linux-2.20***  linux



thus you can
Code:
cd /usr/src/linux/


ps: don't forget compile your new kernel with
Code:
genkernel all
after all[/quote]
Back to top
View user's profile Send private message
cjones
n00b
n00b


Joined: 29 Jan 2007
Posts: 19

PostPosted: Sat Feb 17, 2007 7:07 pm    Post subject: Reply with quote

jseymour wrote:
Did you mount all your partitions? Did you emerge a kernel? Don't get mad just asking the obvious. :)

1) Yes. 2) No, *I* did not emerge a kernel, because the LiveCD installer did, as I saw it compile the kernel. According to the instructions when I saw the "install complete" at the end of the command line installer I should have been able to remove the CD, reboot the computer and be on my way. BZZZZT... wrong!. 3) No problem.

So are you saying that the installer deleted the source?
_________________
Dell PowerEdge 2300/700
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Feb 17, 2007 7:17 pm    Post subject: Reply with quote

cjones wrote:
No, *I* did not emerge a kernel, because the LiveCD installer did, as I saw it compile the kernel.

I have not tried the installer, but I think that the networkless installation uses a precompiled kernel (i.e. no source code), so it is normal for /usr/src to be empty.
Back to top
View user's profile Send private message
cjones
n00b
n00b


Joined: 29 Jan 2007
Posts: 19

PostPosted: Sat Feb 17, 2007 7:26 pm    Post subject: Reply with quote

Quote:

Code:
emerge gentoo-sources





I'm trying that right now, and the first half dozen mirrors it has tried either yielded a
Quote:
ERROR 404: Not Found
or
Quote:
No such file 'genpatches-2.6.17-6.base.tar.bz2'
.

Then it stumbled accross ftp://lug.mtu.edu|141.219.155.230 -- and it connected about 6 times, each time timed out at some step and finally went on to some other mirrors.

Finally it ended up back at the CL with
Code:

!!! Couldn't download genpatches-2.6.17-6.base.tar.bz2.  Aborting.

Result:

1/3 of the mirrors are not connectable (times out) and the remaining 2/3 do not have the file emerge is looking for.

This sucks!

This process is tough enough without the gentoo distribution system fighting you. Or dear responder, did you leave out a step?
_________________
Dell PowerEdge 2300/700
Back to top
View user's profile Send private message
cjones
n00b
n00b


Joined: 29 Jan 2007
Posts: 19

PostPosted: Sat Feb 17, 2007 7:29 pm    Post subject: Reply with quote

Quote:

I have not tried the installer, but I think that the networkless installation uses a precompiled kernel (i.e. no source code), so it is normal for /usr/src to be empty.


That was my understanding too; but it was compiling *something* for 14 hours, and I remember seeing "kernel" a LOT.

So if I have no source, I'm still left without it, as my other post shows I am unable to retrieve it. Is this effort for naught?
_________________
Dell PowerEdge 2300/700
Back to top
View user's profile Send private message
blackmail
n00b
n00b


Joined: 20 Feb 2006
Posts: 18
Location: Troy, TURKEY

PostPosted: Sat Feb 17, 2007 7:29 pm    Post subject: Reply with quote

connected internet? please check your connection with "ifconfig". i think, you can't connect internet, thus you can't download packages.
Back to top
View user's profile Send private message
cjones
n00b
n00b


Joined: 29 Jan 2007
Posts: 19

PostPosted: Sat Feb 17, 2007 7:31 pm    Post subject: Reply with quote

blackmail wrote:
connected internet? please check your connection with "ifconfig". i think, you can't connect internet, thus you can't download packages.


Let's please stop, take a deep breath and put on our thinking caps. "connected internet?" Hmmmm... Where does a 404 error come from? I wonder.

Also, how would I be posting to this forum from this same computer? Hmmm..
_________________
Dell PowerEdge 2300/700
Back to top
View user's profile Send private message
blackmail
n00b
n00b


Joined: 20 Feb 2006
Posts: 18
Location: Troy, TURKEY

PostPosted: Sat Feb 17, 2007 7:35 pm    Post subject: Reply with quote

nobody has to help you in here. maybe i gave wrong idea but you aren't necessary to be mocking.

download this file "genpatches-2.6.17-6.base.tar.bz2" manually, then copy it into
Code:
/usr/portage/distfiles/

then, emerge again.


Last edited by blackmail on Sat Feb 17, 2007 7:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Sat Feb 17, 2007 7:35 pm    Post subject: Reply with quote

did you leave out the mirrorselect steps?

before chrooting

gentoo mirrors:
Code:
mirrorselect -i -o >> /mnt/gentoo/etc/make.conf


rsync server:
Code:
mirrorselect -i -r -o >> /mnt/gentoo/etc/make.conf


in case you are suggesting that the gentoo servers are unreliable - thats not true. for me usually they respond fast, reliable and i max out my connection, download of hundreds of packages works without a single problem.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Feb 17, 2007 7:50 pm    Post subject: Reply with quote

Another thing to consider is that 'genpatches-2.6.17-6.base.tar.bz2' may be so old that most mirrors no longer carry it.

You probably want to do "emerge --sync" to get things up to date, and then "emerge gentoo-sources" should be able to download a more recent version (one that is actually on the mirrors).
Back to top
View user's profile Send private message
cjones
n00b
n00b


Joined: 29 Jan 2007
Posts: 19

PostPosted: Sat Feb 17, 2007 7:50 pm    Post subject: Reply with quote

ichbinsisyphos wrote:
did you leave out the mirrorselect steps?


Thanks, I selected a site I've used before and has been consistently good.

HOWEVER, there still remains a little problem. The file emerge is looking for appears to be nowhere. That file again is /gentoo/distfiles/genpatches-2.6.17-6.base.tar.bz2

I selected the North American site for rsync; as I'm writing this it is on (try: 5) with the connection timed out each time.

Now that it got past that point it's continuing on with the rest of its list with the same results as the last run. So where would one get the file it is looking for?
_________________
Dell PowerEdge 2300/700
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Sat Feb 17, 2007 8:03 pm    Post subject: Reply with quote

I've just downloaded it from http://dev.gentoo.org/~dsd/genpatches/tarballs/genpatches-2.6.17-6.base.tar.bz2
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
cjones
n00b
n00b


Joined: 29 Jan 2007
Posts: 19

PostPosted: Sat Feb 17, 2007 8:27 pm    Post subject: Reply with quote

wynn wrote:
I've just downloaded it from http://dev.gentoo.org/~dsd/genpatches/tarballs/genpatches-2.6.17-6.base.tar.bz2


That probably why emerge can't find it, it's requesting the file from the distfiles directory rather than the tarballs directory. So, what do I do with the file once I've downloaded to a tmp dir?
_________________
Dell PowerEdge 2300/700
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Sat Feb 17, 2007 8:31 pm    Post subject: Reply with quote

I googled for it without thinking about where it should be :)

This is where it should be
Code:
/usr/portage/distfiles/genpatches-2.6.17-6.base.tar.bz2

_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
cjones
n00b
n00b


Joined: 29 Jan 2007
Posts: 19

PostPosted: Sat Feb 17, 2007 9:22 pm    Post subject: Reply with quote

wynn wrote:
I googled for it without thinking about where it should be :)

This is where it should be
Code:
/usr/portage/distfiles/genpatches-2.6.17-6.base.tar.bz2


Thanks, I got that and copied into the /usr/portage/distfiles directory. I noticed that it existed but a much smaller size that the one I just got. Now emerge is trying to get genpatches-2.6.17-6.extras.tar.bz2 and not having any success. I'll try to get that file from the source you gave me.
_________________
Dell PowerEdge 2300/700
Back to top
View user's profile Send private message
cjones
n00b
n00b


Joined: 29 Jan 2007
Posts: 19

PostPosted: Sat Feb 17, 2007 9:48 pm    Post subject: Reply with quote

Well, I got penpatches-2.6.17-6.extras.tar.bz2 and put it in the /usr/portage/distfiles directory. However emerge is still trying to download it. Perhaps it thinks what I just got is out of date?

In looking at the mirrors, it appears 2.6.17-8 is the oldest available.

I can't help but think that now would be the time to somehow use a more recent set of tarballs that would be readily available.
_________________
Dell PowerEdge 2300/700
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Sat Feb 17, 2007 11:15 pm    Post subject: Reply with quote

do an emerge --sync to see if that gets a kernel that's not ancient. 2.6.17 is ooooooooold now.

I'd go with a 2.6.18. 2.6.19 if you are adventurous and like bug tracking.
_________________
I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
Back to top
View user's profile Send private message
cjones
n00b
n00b


Joined: 29 Jan 2007
Posts: 19

PostPosted: Mon Feb 19, 2007 8:16 pm    Post subject: Reply with quote

sonicbhoc wrote:
do an emerge --sync to see if that gets a kernel that's not ancient. 2.6.17 is ooooooooold now.


It may be ooooooooold but that is what the current LiveCD provides. It is noteable that gentoo.org is distributing an .iso for which (as far as I can tell) the source is no longer available from its mirrors.
_________________
Dell PowerEdge 2300/700
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Feb 20, 2007 4:41 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Kernel & Hardware.
Kernel stuff, so moved here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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