Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lost Internet connection after chrooting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Alkibiades
n00b
n00b


Joined: 29 Mar 2007
Posts: 11

PostPosted: Tue Apr 03, 2007 7:41 pm    Post subject: Lost Internet connection after chrooting Reply with quote

Hello everybody,

I am installing Gentoo on my new laptop, and all goes OK until I chroot; after chrooting, my Internet connection is gone.

As the Gentoo 2006.1 kernel does not support my SATA controller (VIA VT8232A), I downloaded an edited version of 2006.1 with a newer kernel from the net, and that one recognizes my SATA controller and thus my HDD just fine; I only have to set my Ethernet manually (dhcpcd eth2). So I already did the standard manual installation up to the part were you chroot. After chrooting, I loose Internet connection. Also, in the chrooted environment I can't get dhcpcd to work; only ifconfig, which tells me my ethernet card is just fine. Links isn't supported in the chrooted environment either.

So, is there another way to get the needed Internet files on my laptop? Can I copy the kernel sources on my desktop to my laptop? Or prefetch them and copy them to some folder in the portage tree? Or is there some other way to restore Internet access? I am totally lost.

Laptop specs, if someone needs that:
- Intel Celeron M 420 1,60GHz, 1MB L2 cache (FSB 533MHz);
- Chipset: VIA VN896 + VT8237A
- 512 MB DDR2 667 MHz
- 80 GB SATA 150 GB/s harddisk

Thanks in advance,
yours, Co
Back to top
View user's profile Send private message
Master Shake
l33t
l33t


Joined: 10 Apr 2005
Posts: 755
Location: Wilmington, Delaware

PostPosted: Tue Apr 03, 2007 7:52 pm    Post subject: Reply with quote

did you copy /etc/resolv.conf over?
_________________
System Specs:
64-bit gentoo linux
Q6600 @ 3.2Ghz
P35 Chipset
4 Gigs 800mhz 4-4-4-12
Nvidia GeForce 8800 GTX @ 630mhz
Back to top
View user's profile Send private message
Alkibiades
n00b
n00b


Joined: 29 Mar 2007
Posts: 11

PostPosted: Tue Apr 03, 2007 8:34 pm    Post subject: Reply with quote

No, I did not. Should I do so? If so, how and when?
I have not created one during the parts of the install I performed; I just use DHCP, and no /etc/resolve.conf is needed, yes? I thought /etc/resolve.conf is for the nameservers, isn't it?

Yours, Co
Back to top
View user's profile Send private message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Tue Apr 03, 2007 9:19 pm    Post subject: Reply with quote

you need the resolv.conf to resolve website-names to ips. you need resolv.conf in any case, dhcp or not. dhcp just sets your own ip-address
Back to top
View user's profile Send private message
joyo222
n00b
n00b


Joined: 18 May 2006
Posts: 44

PostPosted: Tue Apr 03, 2007 11:49 pm    Post subject: Reply with quote

Yes, you need to copy your /etc/resolv.conf to /mnt/gentoo/etc/resolv.conf (assuming your new root partition is mounted at /mnt/gentoo) before you chroot. Otherwise, you can't resolve any names inside the new environment.

Quote:
So, is there another way to get the needed Internet files on my laptop? Can I copy the kernel sources on my desktop to my laptop?

In answer to this question: yes. Copy the needed files to /mnt/gentoo (or wherever your mounted root partition is). If you're asking *how* to move them from your desktop to your laptop, you could fire up SSH on the gentoo install and then scp over any needed files.
Back to top
View user's profile Send private message
MacCrab
n00b
n00b


Joined: 05 Nov 2006
Posts: 10

PostPosted: Wed Apr 04, 2007 3:57 pm    Post subject: Reply with quote

Same thing happened to me the first time I installed Gentoo. I totally forgot to copy /etc/resolv.conf over to /mnt/gentoo/etc/resolv.conf, and I obviously had no internet access either. Also, I don't know if this is the problem with links not being available in chrooted environment, but I found during my first install-- much to my dismay -- that I needed to emerge everything, including links and rp-pppoe.
Back to top
View user's profile Send private message
Alkibiades
n00b
n00b


Joined: 29 Mar 2007
Posts: 11

PostPosted: Wed Apr 04, 2007 4:05 pm    Post subject: Reply with quote

OK, thank you.

Yours, Co
Back to top
View user's profile Send private message
nixnut
Administrator
Administrator


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

PostPosted: Wed Apr 04, 2007 5:16 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.
See https://forums.gentoo.org/viewtopic-t-277871-highlight-resolv+conf+chroot.html
_________________
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 Duplicate Threads 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