View previous topic :: View next topic |
Author |
Message |
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Fri May 29, 2009 1:10 am Post subject: Cannot connect to internet during installation! |
|
|
Hi all!
I am a long time Windows user making a leap from Ubuntu to Gentoo
I cannot for the life of me get an internet connection working while installing off of my Gentoo Minimal AMD64 CD!
I will provide all of the information I can, and appreciate any help..
I am using an HP laptop.
My ethernet cords, router, and DSL modem are fine. I have the DHCP server enabled on my router, and it does not start until 192.168.2.10
The result of any 'ping' is always "ping: unknown host www.(anything).com"
'ifconfig' shows 'lo' and 'eth0', which I have verified as my integrated network card.
forcedeth is automatically in use.
'/etc/init.d/net.eth0 start' outputs "* Caching service dependencies ... * WARNING: net.eth0 has already been started. [ ok ]"
'net-setup eth0' -> 'Use DHCP to auto-detect my network settings' does not seem to alter anything. At this point I entered my router's setup menu from another computer. My laptop has been assigned a lease at 192.168.2.10.
'net-setup eth0' -> 'Specify an IP address manually' changes the numbers that appear at 'ifconfig eth0', but I still cannot ping anything. The values I am entering are correct and work in Windows.
'lspci | grep Ethernet' shows "00:14.0 Bridge: nVidia Corporation MCP51 Ethernet Controller (rev a3)"
'route' shows
Code: | Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0 |
Also these are my network settings in Windows, and what I entered during net-setup;
My IP = 192.168.2.5
Broadcast = 192.168.2.255
Subnet = 255.255.255.0
Gateway = 192.168.2.1
DNS Server = 192.168.2.1
Finally neither of the status lights on my network card ever turn on in the Gentoo CD. These two lights are always on in Windows, Arch, Ubuntu etc. To me this would indicate that Gentoo/Linux Kernel is not seeing my card properly, but when I interrogate it with the stuff above there doesn't seem to be a problem! If it is relevant, I did not have to do anything fancy (or, at all really) to get this network card working in the Arch Linux installer or Ubuntu.
Not sure what else I can try!
Thanks again for any suggestions. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri May 29, 2009 2:42 am Post subject: |
|
|
use an ubuntu livecd of the same bitness as your intended install. then follow the gentoo handbook. The minimal cd is just a platform, any same bitness livecd or installed system will work as well. Get the stage3 tarball from the gentoo mirrors' releases/<arch>/current directory. |
|
Back to top |
|
|
forkbomb Tux's lil' helper
Joined: 22 Apr 2009 Posts: 115
|
Posted: Fri May 29, 2009 3:47 am Post subject: |
|
|
Sounds very familiar. I had a very similar problem on my Asus P5N-E SLI with the integrated NIC. lspci reports the same Ethernet controller on my box.
Oddly, I never really truly resolved the issue. The weird thing was that networking worked great on my existing HD install (Arch Linux 64) and did not work on any live CD I tried. It "resolved" itself when I threw in an extra 10/100MB NIC I had laying around - after which both NICs worked on all my LiveCDs.
https://forums.gentoo.org/viewtopic-t-758579-highlight-.html |
|
Back to top |
|
|
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Fri May 29, 2009 4:01 am Post subject: |
|
|
forkbomb wrote: | Sounds very familiar. I had a very similar problem on my Asus P5N-E SLI with the integrated NIC. lspci reports the same Ethernet controller on my box.
Oddly, I never really truly resolved the issue. The weird thing was that networking worked great on my existing HD install (Arch Linux 64) and did not work on any live CD I tried. It "resolved" itself when I threw in an extra 10/100MB NIC I had laying around - after which both NICs worked on all my LiveCDs.
https://forums.gentoo.org/viewtopic-t-758579-highlight-.html |
oh I'm well aware
I did about 500 searches before I made my thread
Too bad I have a laptop, destroying any flexibility like this that I may have had..
DONAHUE wrote: | use an ubuntu livecd of the same bitness as your intended install. then follow the gentoo handbook. The minimal cd is just a platform, any same bitness livecd or installed system will work as well. Get the stage3 tarball from the gentoo mirrors' releases/<arch>/current directory. |
I have an Ubuntu AMD64 Live CD and the AMD64 stage3 tarball file saved in Windows (currently the only OS I have installed).. Now the dumb question, how do I use the two to install Gentoo? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri May 29, 2009 4:34 am Post subject: |
|
|
assuming your laptop has a 64 bit processor
boot the ubuntu live cd
open a terminal window
run Code: | su mkdir /mnt/gentoo |
open browser, browse to http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?style=printable&full=1#book_part1_chap4 , the gentoo handbook. Follow the handbook. You will have to be in ubuntu as root or use lots of su's.
If you have not already done so, reading through the handbook before starting is a good idea.
If Ubuntu CD will read your ntfs partition you can use the stage3 tarball you stored there, Code: | su mkdir /mnt/ntfs
mount /dev/sda1 /mnt/ntfs | when the tarball is called for find it under /mnt/ntfs/ and cp it to /mnt/gentoo. Probably as easy to download a fresh copy to /mnt/gentoo.
BTW your base problem may be a bios setting for your nic that does power saving or green. |
|
Back to top |
|
|
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Sat May 30, 2009 3:40 am Post subject: |
|
|
cool thank you donahue i'll give this a try sometime in the next few days and see how it goes. |
|
Back to top |
|
|
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Sun May 31, 2009 6:02 pm Post subject: |
|
|
Well I got everything installed and setup ok in the Ubuntu Live CD (or so I thought), but when I went to reboot I ran into a problem.
"The superblock could not be read or does not describe a correct ext2 filesystem"
What does this mean? It occurs after the GRUB menu, while Gentoo loading stuff (so I'm assuming it's not a problem with grub.conf or fstab?). And of course, pressing "Ctrl-D to continue" just restarts the system.
Thanks for any ideas! |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun May 31, 2009 8:20 pm Post subject: |
|
|
boot the ubuntu cd or ubuntu, whichever is easy, mount the / and /boot partitions, run:
Code: | cat /etc/fstab
cat /boot/grub/grub.conf
fdisk -l
mount |
and post the results here.
My guess pending data is fstab. |
|
Back to top |
|
|
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Tue Jun 02, 2009 2:53 am Post subject: |
|
|
ubuntu@ubuntu:~$ sudo cat /etc/fstab
Code: | aufs / aufs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sda3 swap swap defaults 0 0 |
ubuntu@ubuntu:~$ sudo cat /media/disk-1/etc/fstab
Code: | # /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/BOOT /boot ext2 defaults,noatime 1 2
/dev/ROOT / ext4 noatime 0 1
/dev/SWAP none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro,user 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
#shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
ubuntu@ubuntu:~$ sudo cat /media/disk/boot/grub/grub.conf
Code: | # This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.
default 2
timeout 10
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.29-r5
root (hd0,3)
kernel /boot/kernel-2.6.29-gentoo-r5 root=/dev/sda4
title Gentoo Linux 2.6.29-r5 (rescue)
rooot (hd0,3)
kernel /boot/kernel-2.6.29-gentoo-r5 root=/dev/sda4 init=/bin/bb
title Windows Vista
rootnoverify (hd0,0)
makeactive
chainloader +1
# vim:ft=conf:
|
ubuntu@ubuntu:~$ sudo fdisk -l
Code: |
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xde6f9641
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26108 209712478+ 7 HPFS/NTFS
/dev/sda2 26109 26113 40162+ 83 Linux
/dev/sda3 26114 26238 1004062+ 82 Linux swap / Solaris
/dev/sda4 26239 30401 33439297+ 83 Linux |
ubuntu@ubuntu:~$ sudo mount
Code: | proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /lib/modules/2.6.28-11-generic/volatile type tmpfs (rw,mode=0755)
tmpfs on /lib/modules/2.6.28-11-generic/volatile type tmpfs (rw,mode=0755)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
/dev/sr0 on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
/dev/sda2 on /media/disk type ext2 (rw,nosuid,nodev,uhelper=hal)
/dev/sda4 on /media/disk-1 type ext4 (rw,nosuid,nodev,uhelper=hal) |
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Jun 02, 2009 3:10 am Post subject: |
|
|
Fstab it is:
Replace with:
Quote: | /dev/sda2 /boot ext2 defaults,noatime 1 2
/dev/sda4 / ext4 noatime 0 1
/dev/sda3 none swap sw 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
and give it a reboot.
This one happens all the time. |
|
Back to top |
|
|
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Tue Jun 02, 2009 3:48 am Post subject: |
|
|
DONAHUE wrote: | Fstab it is:
Replace with:
Quote: | /dev/sda2 /boot ext2 defaults,noatime 1 2
/dev/sda4 / ext4 noatime 0 1
/dev/sda3 none swap sw 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
and give it a reboot.
This one happens all the time. |
oh jesus chriiiiist how do i not notice something like that after seeing 800 examples of the file on google
thank you for all your help donahue! |
|
Back to top |
|
|
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Tue Jun 02, 2009 4:07 am Post subject: |
|
|
poop i still do not have internet access.. The lights on my NIC are working now, and I can ping my router and other computers on the network successfully, but things are still
Did I configure my kernel wrong? Or are there other possibilities here? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Jun 02, 2009 4:14 am Post subject: |
|
|
you are describing a domain name service problem.
run:
Code: | ifconfig -a
cat /etc/resolv.conf
cat /etc/conf.d/net |
and post the results. |
|
Back to top |
|
|
forkbomb Tux's lil' helper
Joined: 22 Apr 2009 Posts: 115
|
Posted: Tue Jun 02, 2009 4:30 am Post subject: |
|
|
DONAHUE wrote: | you are describing a domain name service problem.
run:
Code: | ifconfig -a
cat /etc/resolv.conf
cat /etc/conf.d/net |
and post the results. |
Just to extend, format of resolv.conf should be:
nameserver <nameserver ip>
I always use opendns:
Code: |
nameserver 208.67.220.220
nameserver 208.67.222.222
|
|
|
Back to top |
|
|
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Tue Jun 02, 2009 2:29 pm Post subject: |
|
|
ifconfig -a
Code: | eth0
Link encap:Ethernet HWaddr 00:1e:68:3f:b6:5a
inet addr:192.168.2.5 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::21e:68ff:fe3f:b65a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:556 (556.0 B)
Interrupt:23 Base address:0x4000
lo
Link encap:Local Loopback
*etc*
sit0
Link encap:IPv6-in-IPv4
*etc* |
cat /etc/resolv.conf
Code: | #Generated by net-scripts for interface lo
domain homenetwork |
cat /etc/conf.d/net
Code: | dns_domain_lo="homenetwork"
config_eth0=( "192.168.2.5 netmask 255.255.255.0 brd 192.168.2.255" )
routes_eth0=( "default via 192.168.2.1" ) |
forkbomb wrote: | DONAHUE wrote: | you are describing a domain name service problem.
run:
Code: | ifconfig -a
cat /etc/resolv.conf
cat /etc/conf.d/net |
and post the results. |
Just to extend, format of resolv.conf should be:
nameserver <nameserver ip>
I always use opendns:
Code: |
nameserver 208.67.220.220
nameserver 208.67.222.222
|
|
I guess I skipped setting up resolv.conf
Adding this
forkbomb wrote: | Code: |
nameserver 208.67.220.220
nameserver 208.67.222.222
|
|
did the trick! |
|
Back to top |
|
|
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Tue Jun 02, 2009 2:51 pm Post subject: |
|
|
Every time I restart the computer resolv.conf resets itself, but DHCP is off
Why might this be happening? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Jun 02, 2009 4:29 pm Post subject: |
|
|
do away with Code: | dns_domain_lo="homenetwork" |
check/fix resolv.conf and try Code: | /etc/init.d/net.eth0 restart |
dns_domain_lo="homenetwork" also wipes out resolv.conf with every net. start |
|
Back to top |
|
|
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Wed Jun 03, 2009 3:19 am Post subject: |
|
|
ok the internet is now working splendidly thanks to you two, but of course another problem.
I have tried to 'emerge --sync' four times now, and every time without fail [but each time at a different point in the process] I am met with kernel panic
Worse, nothing appears on the screen. The only indication I get is the caps lock light blinking.
Is there any way to troubleshoot this? A dump file somewhere when this happens? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Jun 03, 2009 3:08 pm Post subject: |
|
|
run
Code: | df -iah /dev/sdb1
df -ah /dev/sdb1
tune2fs -l /dev/sda4 #change sda4 to be the device(partition) your /usr/portage directory is on (if necessary). |
and post the results.
there is a chance you are out of room or inodes or the ext4 fs is misfiring. |
|
Back to top |
|
|
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Wed Jun 03, 2009 5:17 pm Post subject: |
|
|
df -iah /dev/sda4
Code: | Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda4 2.0M 199K 1.9M 10% / |
df -ah /dev/sda4
Code: | Filesystem Size Used Avail Use% Mounted on
/dev/sda4 32G 1.9G 28G 7% / |
tune2fs -l /dev/sda4
Code: | Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: 46281243-25a4-afeb-8921-6765a9677ce9c
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 2093056
Block count: 8359824
Reserved block count: 417991
Free blocks: 7746215
Free inodes: 1889745
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1022
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8176
Inode blocks per group: 511
Flex block group size: 16
Filesystem Created: Sat May 30 21:29:52 2009
Check interval: 15552000 (6 months)
Next check after: Thu Nov 26 21:29:52 2009
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory has: half_md4
Directory Hash Seed: d95e848e-7c14-4bf5-a5e1-7c8394187b67
Journal backup: inode blocks |
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Jun 03, 2009 6:54 pm Post subject: |
|
|
not either of those, boot cd, run
Code: |
umount /dev/sda4
fsck /dev/sda4 |
hoping the fsck program is present and current |
|
Back to top |
|
|
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Wed Jun 03, 2009 6:58 pm Post subject: |
|
|
umount /dev/sda4
fsck /dev/sda4
Code: | fsck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
/dev/sda4: clean, 203311/2093056 files, 613610/8359824 blocks |
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Jun 03, 2009 7:28 pm Post subject: |
|
|
out of ideas
you might start a new thread titled to reflect exactly this problem like 'computer locks up during emerge --sync' maybe replacing 'computer' with model or cpu/motherboard
could be hardware, NIC or cpu heating? |
|
Back to top |
|
|
Brian_the_King n00b
Joined: 29 May 2009 Posts: 18 Location: IL
|
Posted: Wed Jun 03, 2009 7:30 pm Post subject: |
|
|
good idea i'll do that now thanks! |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Thu Jun 04, 2009 6:48 am Post subject: |
|
|
Post your kernel .config, the results of lspci -n and cat /proc/cpuinfo as well as your /etc/fstab. I'll check for kernel issues.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
|