Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]problem booting in gentoo
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
cab4
n00b
n00b


Joined: 28 Dec 2010
Posts: 7

PostPosted: Tue Dec 28, 2010 1:44 pm    Post subject: [solved]problem booting in gentoo Reply with quote

Hi everyone,

I am new to gentoo , and i tried to do install gentoo following the handbook and configuring manually via gentoo-sources
however when i boot under my newly installed gentoo : i got these errors (sorry because I had to write everything down):

Code:
kernel panic - not syncing
vfs unable to mount root fs on unknown-block(2,0)



Code:

cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family   : 6
model      : 8
model name   : AMD Athlon(tm) XP 1500+
stepping   : 1
cpu MHz      : 1332.080
cache size   : 256 KB
fdiv_bug   : no
hlt_bug      : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 1
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow up
bogomips   : 2664.16
clflush size   : 32
cache_alignment   : 32
address sizes   : 34 bits physical, 32 bits virtual
power management: ts



Code:

 lspci -k
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host Bridge (rev 80)
   Subsystem: ASRock Incorporation K7VT6 motherboard
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237/VX700 PCI Bridge
00:0b.0 Communication controller: Analog Devices SM56 PCI modem
   Subsystem: Analog Devices SM56 PCI modem
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
   Subsystem: ASRock Incorporation K7VT6
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
   Subsystem: ASRock Incorporation K7VT6
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
   Subsystem: ASRock Incorporation K7VT6
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
   Subsystem: ASRock Incorporation K7VT6 motherboard
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
   Subsystem: ASRock Incorporation K7VT2 motherboard
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
   Subsystem: ASRock Incorporation K7VT2/K7VT6 motherboard
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
   Subsystem: ASRock Incorporation K7VT6 motherboard
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
   Subsystem: ASRock Incorporation K7VT6 motherboard
01:00.0 VGA compatible controller: nVidia Corporation NV11DDR [GeForce2 MX200] (rev b2)


lspci -n
00:00.0 0600: 1106:3189 (rev 80)
00:01.0 0604: 1106:b198
00:0b.0 0780: 11d4:1805
00:10.0 0c03: 1106:3038 (rev 80)
00:10.1 0c03: 1106:3038 (rev 80)
00:10.2 0c03: 1106:3038 (rev 80)
00:10.3 0c03: 1106:3104 (rev 82)
00:11.0 0601: 1106:3177
00:11.1 0101: 1106:0571 (rev 06)
00:11.5 0401: 1106:3059 (rev 50)
00:12.0 0200: 1106:3065 (rev 74)
01:00.0 0300: 10de:0111 (rev b2)



Code:


cat /etc/fstab
# /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/hda1      /boot      ext4      default,noatime   1 2
/dev/hda3      /      ext4      noatime      0 1
/dev/hda2      none      swap      sw      0 0
/dev/cdrom      /mnt/cdrom   auto      noauto,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



Code:

cat grub/grub.conf
# 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 0
timeout 10
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.36-r5
root (hd0,0)
kernel /boot/kernel-2.6.36-gentoo-r5 root=/dev/hda3


#title Gentoo Linux 2.6.24-r5
#root (hd0,0)
#kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 root=/dev/ram0 real_root=/dev/sda3
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5

# vim:ft=conf:




and my .config in /usr/src/linux/.config
http://psautiers.org/~cab/config_gentoo.txt


Last edited by cab4 on Tue Dec 28, 2010 8:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Dec 28, 2010 1:59 pm    Post subject: Reply with quote

Welcome to Gentoo!
Quote:
vfs unable to mount root fs on unknown-block(2,0)

Your kernel has no proper support for your HDD controller. You should use pata_via and it will give you sd* devices, not hd*. Make sure you disable obsolete IDE drivers in kernel to avoid conflicts.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
cab4
n00b
n00b


Joined: 28 Dec 2010
Posts: 7

PostPosted: Tue Dec 28, 2010 5:08 pm    Post subject: Reply with quote

I managed to boot one the terminal, thanks.

however I get the following errors setting up eth0

Code:
 * Starting eth0
 *   Bringing up eth0
 *     192.168.0.2
 *     network interface eth0 does not exist
 *     Please verify hardware or kernel module (driver)                   [ !! ]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Tue Dec 28, 2010 5:23 pm    Post subject: Reply with quote

cab4,

The driver for your ethernet card is either not loaded or missing entriely from you kernel.

Code:
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
   Subsystem: ASRock Incorporation K7VT6 motherboard

Try
Code:
modprobe via-rhine
if there is no error, look in
Code:
ifconfig -a
to see if eth0 exists now.
If so,
Code:
/etc/init.net.eth0 restart
will start it.

if the modprobe produces an error, you need to make via-rhine for your kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
cab4
n00b
n00b


Joined: 28 Dec 2010
Posts: 7

PostPosted: Tue Dec 28, 2010 8:25 pm    Post subject: Reply with quote

ok thanks for your help

I figured out I did'nt have to recompile the kernel but just to add it to my modules

so i booted on the livecd, chrooted the environment
make menuconfig

added via_rhine to modules
then I typed
make && make modules_install
and finally everything was done in a few sec

now that i am talking about it, maybe i could have compiled the module while i was on the newly installed gentoo
but i don't know.

now everything works fine , i was able to ssh my new gentoo server,

thanks very much for your help

gentoo is great !!! :D :D :D :D :D
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