Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wierd network problem (chrooted shell can't access network)
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
thesaur
n00b
n00b


Joined: 04 Dec 2006
Posts: 1

PostPosted: Mon Dec 04, 2006 3:38 am    Post subject: Wierd network problem (chrooted shell can't access network) Reply with quote

I'm installing gentoo on an HP Proliant ML-350 (G5) using the minimum install (amd64 on a dual-core Xeon). I have no problems accessing the internet from the main minimum install prompt. However, the moment I chroot into the new installation mount, I lose name resolution, though I can still ping the gateway. I can't resolve domain names and I can't update my portage tree.

This is in spite of the fact that I copied the necessary files (from /etc) into the new directories and set up the network just fine there. This happens whether or not I use DHCP. And I can see the adapter just fine using ifconfig. (As I said, I can ping the gateway...)

Any suggestions would be greatly appreciated! I've searched the forums and googled it and haven't been able to come up with anything.

Thanks in advance!
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: Mon Dec 04, 2006 3:46 am    Post subject: Reply with quote

did you make sure to cp -R /etc/resolv.conf to /mnt/gentoo/etc/resolv.conf?

Did you make sure to mount -o bind /dev /mnt/gentoo/dev as well?

I don't know exactly what the -R does in that command, but whatever.

If you did, then in the chroot type "emerge -pvf dhcp" and get one link out of each block that comes out. Exit the chroot and download the files from the working connection, place them in /mnt/gentoo/usr/distfiles , re-enter the chroot and emerge dhcp.
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Mon Dec 04, 2006 9:02 am    Post subject: Reply with quote

sonicbhoc wrote:
did you make sure to cp -R /etc/resolv.conf to /mnt/gentoo/etc/resolv.conf?

Did you make sure to mount -o bind /dev /mnt/gentoo/dev as well?

I don't know exactly what the -R does in that command, but whatever.

If you did, then in the chroot type "emerge -pvf dhcp" and get one link out of each block that comes out. Exit the chroot and download the files from the working connection, place them in /mnt/gentoo/usr/distfiles , re-enter the chroot and emerge dhcp.


Code:
 -R, -r, --recursive          copy directories recursively


Not all that useful in this case as you're copying a file and not a directory.
Back to top
View user's profile Send private message
Zeerak
Apprentice
Apprentice


Joined: 27 Nov 2006
Posts: 239
Location: Aalborg, Denmark

PostPosted: Mon Dec 04, 2006 4:28 pm    Post subject: Reply with quote

the command is cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
rather than:
cp -R /etc/resolv.conf /mnt/gentoo/etc/resolv.conf

also remember mount -o bind /dev /mnt/gentoo/dev and mount -t proc none /mnt/gentoo/proc

I forgot to do it as well, just exit the chrooted enviroment (can't remember correct spelling) use those commands and then enter the chrooted enviroment and it should work.
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: Mon Dec 04, 2006 4:39 pm    Post subject: Reply with quote

Oh, -L. oops, I use -R a lot and my horrible memory got the two mixed up. Sorry 'bout that. :lol:

To exit the chroot, just type exit, mount /dev and /proc like the post above says, and then chroot /mnt/gentoo /bin/bash again.
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