View previous topic :: View next topic |
Author |
Message |
thesaur n00b
Joined: 04 Dec 2006 Posts: 1
|
Posted: Mon Dec 04, 2006 3:38 am Post subject: Wierd network problem (chrooted shell can't access network) |
|
|
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 |
|
|
sonicbhoc Veteran
Joined: 24 Oct 2005 Posts: 1805 Location: In front of the computer screen
|
Posted: Mon Dec 04, 2006 3:46 am Post subject: |
|
|
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 |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Mon Dec 04, 2006 9:02 am Post subject: |
|
|
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 |
|
|
Zeerak Apprentice
Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Mon Dec 04, 2006 4:28 pm Post subject: |
|
|
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 |
|
|
sonicbhoc Veteran
Joined: 24 Oct 2005 Posts: 1805 Location: In front of the computer screen
|
Posted: Mon Dec 04, 2006 4:39 pm Post subject: |
|
|
Oh, -L. oops, I use -R a lot and my horrible memory got the two mixed up. Sorry 'bout that.
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 |
|
|
|