Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel panic after fresh install following handbook
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
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 49
Location: Melbourne, Australia

PostPosted: Tue Mar 06, 2012 9:45 pm    Post subject: kernel panic after fresh install following handbook Reply with quote

Hi guys,

I've just completed an install of gentoo x86_64 and have followed the handbook to the letter. When I reboot however I get the following kernel panic;

Code:

VFS: Cannot open root device "sda3" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Pid: 1, comm: swapper/0 Not tainted 3.2.1-gentoo-r2 #4


Does this mean that I have done something wrong in the kernel configuration? I was using 'genkernel' but then switched back to configuring the kernel by hand manually. Could this be the problem?

any help would be great.

Thanks,

Brett.
_________________
"If you are new to UNIX, you may be used to clicking something and seeing either an "OK" message, an error, nothing, or (all too often) a pretty blue screen with nifty high-tech letters' explaining exactly where the system crashed" - Michael Lucas
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2064

PostPosted: Tue Mar 06, 2012 10:15 pm    Post subject: Reply with quote

Normally, that error would put out a list of partitions it found, since that's not the case, are you sure, you built-in (not as modules) proper support for your devices (ie SATA) and for the filesystems you are using?
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
Kaso_da_Zmok
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 188
Location: Cork, Ireland

PostPosted: Tue Mar 06, 2012 10:16 pm    Post subject: Reply with quote

looks like the kernel config is missing the disk controller.
try the genkernel.
or post your kernel config and lspci into pastebin
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 49
Location: Melbourne, Australia

PostPosted: Wed Mar 07, 2012 6:49 am    Post subject: Reply with quote

Hi Guys',

Thank-you for the feedback. My .config file from /usr/src/linux is located below;


http://www.pastebay.net/310690


To get the output of lspci I booted the install CD and then chrooted into /mnt/gentoo after I had mounted /dev/sda3 and /dev/sda1

Code:

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05)
00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 (rev 05)
00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 05)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
01:00.0 VGA compatible controller: nVidia Corporation Device 0a70 (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
06:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)


I am still fairly new to Linux and gentoo and do not really know what all this output means.

Brett.
_________________
"If you are new to UNIX, you may be used to clicking something and seeing either an "OK" message, an error, nothing, or (all too often) a pretty blue screen with nifty high-tech letters' explaining exactly where the system crashed" - Michael Lucas
Back to top
View user's profile Send private message
Kaso_da_Zmok
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 188
Location: Cork, Ireland

PostPosted: Wed Mar 07, 2012 10:17 am    Post subject: Reply with quote

so your problem is that the SATA controller is configured as module and that means it needs to go to initramfs which you somehow failed to prepare.
Code:
CONFIG_SATA_AHCI=m


the config looks like there is plenty of stuff you will never use and it would consume to many lines to explain what to remove.

So i will give you my config that i use on my laptop Dell E6400
And you will adjust it to your machine
my config http://pastebin.com/bsnamGpJ

put the config into this file
Code:
/usr/share/genkernel/arch/x86_64/kernel-config


And use genkernel to configure and build the kernel

Code:
genkernel --install --disklabel --menuconfig all


it will also make iniramfs for you and when done it will put both to /boot for you

All you will have to do is to configure your GRUB to use the new kernel and initramfs.

Code:
e6400 ~ # cat /boot/grub/grub.conf                                                 

default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux genkernel-x86_64-3.3.0-rc6
root (hd0,3)
kernel /boot/kernel-genkernel-x86_64-3.3.0-rc6 real_root=UUID=7ac35eba-a68b-4f9e-90e3-968007f657ef rootfstype=ext4
initrd /boot/initramfs-genkernel-x86_64-3.3.0-rc6
Back to top
View user's profile Send private message
zqj.kaka
n00b
n00b


Joined: 09 Feb 2012
Posts: 18

PostPosted: Thu Mar 08, 2012 2:28 am    Post subject: Reply with quote

Kaso_da_Zmok wrote:
so your problem is that the SATA controller is configured as module and that means it needs to go to initramfs which you somehow failed to prepare.
Code:
CONFIG_SATA_AHCI=m


the config looks like there is plenty of stuff you will never use and it would consume to many lines to explain what to remove.


I've met the same problem days ago, what I did is to set "CONFIG_SATA_ACHI=y", i.e. built into the kernel, so that the kernel recognize the disk
on boot.
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4117
Location: Houston, Republic of Texas

PostPosted: Sat Mar 10, 2012 4:35 am    Post subject: Reply with quote

common problem
if you get the unknown block (0,0) you're missing the drive for your HDD controller, it needs to be =y and not =m (unless you use an initramfs)
if you get unknown block (8,3) you're missing support for your filesystem, it needs to be =y and not =m (unless you use an initramfs)

those are the two most common. Other "unknown block" errors could be anything from conflicting drivers, wrong root device specified in grub.conf, no support for your partition table type selected, etc
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Splink
Apprentice
Apprentice


Joined: 09 Feb 2005
Posts: 284

PostPosted: Sun Mar 11, 2012 10:29 am    Post subject: Reply with quote

zqj.kaka wrote:
Kaso_da_Zmok wrote:
so your problem is that the SATA controller is configured as module and that means it needs to go to initramfs which you somehow failed to prepare.
Code:
CONFIG_SATA_AHCI=m


the config looks like there is plenty of stuff you will never use and it would consume to many lines to explain what to remove.


I've met the same problem days ago, what I did is to set "CONFIG_SATA_ACHI=y", i.e. built into the kernel, so that the kernel recognize the disk
on boot.


Yes this is correct. When booting into linux within the kernel, include all drivers/modules as =y if you are not switching profiles within the OS itself then you dont need to worry about compiling or loading modules then.

If you built it with make menuconfig then just go into the section for your controller and select your driver as =y and not =M then save/exit out of there and from /usr/src/linux do a make && make modules && make modules_install. Then copy /arch/(arch version)/boot/bzImage to your /boot/(kernel file) you have specified in your grub configuration, then it should all work ok.
_________________
It said "Requires Windows XP or better"
So I installed gentoo.
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