Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic, but with genkernel it's all ok (VFS:Unable...)
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
ciummo
n00b
n00b


Joined: 30 Dec 2009
Posts: 4
Location: Sardinia

PostPosted: Wed Dec 30, 2009 10:49 am    Post subject: Kernel panic, but with genkernel it's all ok (VFS:Unable...) Reply with quote

Hi!

I just installed gentoo, and now i'm trying to configure the kernel...
with genkernel it goes all ok, but if i try to change the configuration i get kernel panic

Quote:
Root - NFS : NO NFS server available, giving up.
VFS : Unable to mount root device "sda11" on unknow-block (2,0)
Please append a correct "root=" boot option; here are the available partitions
Kernel panic - not syncing : VFS : Unable to mount root fs on unknow block (2,0)


This is my list of disk :

Code:

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1               2        8494    68220022+   f  W95 Esteso (LBA)
/dev/sda2            8495       15854    59119200    b  W95 FAT32
/dev/sda3   *       15855       30402   116846592    7  HPFS/NTFS
La partizione 3 non termina al limite del cilindro.
/dev/sda5              15         269     2048256    7  HPFS/NTFS
/dev/sda6   *         270         779     4096543+   7  HPFS/NTFS
/dev/sda7             780        4603    30716248+   7  HPFS/NTFS
/dev/sda8            4604        5819     9767488+  83  Linux
/dev/sda9            5820        7035     9767488+  83  Linux
/dev/sda10           7036        7278     1951866   82  Linux swap / Solaris
/dev/sda11           7279        8494     9767488+  83  Linux
/dev/sda12              2          14      104359+  83  Linux


Where sda12 is the boot partition and sda11 is gentoo ( i've a sata disk ):
Code:
00:09.0 IDE interface: nVidia Corporation MCP67 AHCI Controller (rev a2)

I've found a similar problem with google... but i'm not able to find the "NVIDIA sata supporting" voice on menuconfig.

Anyway this is my grub.conf

Code:

default 0
timeout 10

title   Ubuntu, Linux 2.6.31-16-generic
root (hd0,11)
kernel /boot/vmlinuz-2.6.31-16-generic root=UUID=15d861f9-3c66-4cc3-baed-2170d5bc0de6 ro   quiet splash
initrd   /boot/initrd.img-2.6.31-16-generic

title Gentoo
root (hd0,11)
kernel /boot/kernel-gentoo-2 real_root=/dev/sda11

title Gentoo Linux
root (hd0,11)
kernel /boot/kernel-genkernel-x86-2.6.31-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda11
initrd /boot/initramfs-genkernel-x86-2.6.31-gentoo-r6



Any idea ?
Thanks a lot


Last edited by ciummo on Wed Dec 30, 2009 11:20 am; edited 1 time in total
Back to top
View user's profile Send private message
Marq
n00b
n00b


Joined: 31 Mar 2009
Posts: 40
Location: Cracow, Poland

PostPosted: Wed Dec 30, 2009 11:18 am    Post subject: Reply with quote

If you want to boot new Kernel like generic, you need to build initrd and add initrd line in grub.conf. Read about genkernel and initrd.
Back to top
View user's profile Send private message
ciummo
n00b
n00b


Joined: 30 Dec 2009
Posts: 4
Location: Sardinia

PostPosted: Wed Dec 30, 2009 11:33 am    Post subject: Reply with quote

i have a doubt...
once the kernel is configured with genkernel,
if i modify the kernel config with "make menuconfig"
it means i can use the config given by genkernel?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Dec 30, 2009 11:37 am    Post subject: Reply with quote

ciummo,

To make a kernel you can boot without an initrd file you need to configure all the things you need to boot as <*>, so they are in the kernel file in /boot.

You must have the drivers for the chip set that controls the hard drive where your root filesystsem is stored.
You must have the driver for the root filesystem itself.

Thats the bare minimum - other things can be modules. Modules are stored in /lib/modules ... which is on the root filesystem, so the kernel can't read an modules until root is mounted. Try one of Pappys Seeds to get you started in rolling your own kernel.
Look for the link in one of Pappys posts
_________________
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
ciummo
n00b
n00b


Joined: 30 Dec 2009
Posts: 4
Location: Sardinia

PostPosted: Thu Dec 31, 2009 11:43 am    Post subject: Reply with quote

Thanks a lot, now it's really more clear!
But... i can use the same initrd of genkernel
with my modificated kernel ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Dec 31, 2009 12:31 pm    Post subject: Reply with quote

ciummo,

Maybe - but only if the kernel is the same (*identical*) version and some key kernel options are not changed.
Its not a good thing to attempt.

With your own kernel, you should not need an initrd file at all as you can make it so that modules are not needed for booting.

genkernel makes a fully modular kernel with almost everything compiled and set to module.
It has to have an initrd to boot.

genkerenel kernel are intended to be generic so they will boot almost anywhere. As a result they are full of modules you will never use and not optimied to your CPU.
_________________
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
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