LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2008, 05:29 PM   #1
GeneralDark
Member
 
Registered: Nov 2007
Location: Sweden
Distribution: Gentoo 2007
Posts: 32

Rep: Reputation: 15
Kernel panic when rebooting (grub issue?)


Hello.
I've just installed a gentoobox that I'm gonna use as a webserver.
I've been working with linux quite some time but still havent got all the basics togheter, however I managed to install gentoo without anyproblems... until I reboot.
According to the gentoo installationguide my grub.conf is correct, but something is wrong when i get:
Code:
VFS: Cannot open root device "hda3" 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)
fdisk -l:
Code:
Disk /dev/hda: 15.3 GB, 15382241280 bytes
16 heads, 63 sectors/track, 29805 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         969      488344+  83  Linux
/dev/hda2             970        2678      861336   82  Linux swap / Solaris
/dev/hda3   *        2679       29805    13672008   83  Linux
grub.conf:
Code:
timeout 3
default 0
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title  Gentoo Linux
root (hd0,0)
kernel /boot/bzImage root=/dev/hda3
fstab:
Code:
/dev/hda1               /boot           ext3            auto,noatime    1 2
/dev/hda3               /               ext3            auto,noatime    0 1
/dev/hda2               none            swap            sw              0 0
none                    /proc           proc            defaults        0 0
I have been looking for something in the kernel that I've missed. But I just cant find it if that is so. I have support for IDE, I hade support for ext3 and porc filesystems. I have even googled alot before asking here, found several with the same issue but their solution didnt help me either.
Anyone got some ideas?
Thx in advanced

Last edited by GeneralDark; 03-06-2008 at 05:34 PM.
 
Old 03-06-2008, 05:58 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Cannot open root device "hda3" or unknown-block(0,0)
This tells us your kernel does not make it to the hard disk. HDD controller support is missing.
 
Old 03-07-2008, 02:48 AM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
Do you have an initrd.gz?

Last edited by arubin; 03-07-2008 at 02:49 AM.
 
Old 03-07-2008, 03:05 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Quote:
Originally Posted by Emerson View Post
This tells us your kernel does not make it to the hard disk. HDD controller support is missing.
... or the filesystem ...
I'd be (more than) mildly surprised if any (moderately) recent Gentoo doesn't have the libata changes included. hda ??? - try sda.
 
Old 03-07-2008, 06:37 AM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
... or the filesystem ...
I'd be (more than) mildly surprised if any (moderately) recent Gentoo doesn't have the libata changes included. hda ??? - try sda.
If filesystem support is missing then he'd have some non-zero numbers in the error message. (not unknown-block(0,0))
Gentoo is DIY. In installation process you configure and build your own kernel. Hence it's up to you whether you choose PATA (hdx) or libata (sdx) for your IDE drives.
 
Old 03-07-2008, 09:59 AM   #6
GeneralDark
Member
 
Registered: Nov 2007
Location: Sweden
Distribution: Gentoo 2007
Posts: 32

Original Poster
Rep: Reputation: 15
I have added all the PCI drivers available in the kernel.

I have initrd.gz in the kernel.

I did try sda instead of hda.

I also did try to add pata drivers aswell.

Still not able to boot

If I read as high up as I can from the bootscreen its says:
Code:
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xffa0-0xffaf, BIOS settings: hda:pio, hdb:pio
Is that any help?
 
Old 03-07-2008, 10:09 AM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Building every driver in does not help and can cause conflicts. Use lspci to determine the controller type you have and enable it in the kernel. Knowing your hardware before you install an (any) OS makes life much easier.

Edit: initrd is not required when you build your own kernel, it's needed only in very rare cases if there is no in-kernel drivers for booting hardware.

Last edited by Emerson; 03-07-2008 at 10:19 AM.
 
Old 03-07-2008, 04:40 PM   #8
GeneralDark
Member
 
Registered: Nov 2007
Location: Sweden
Distribution: Gentoo 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Ok, no wonder I didnt have the correct driver. lspci have showed me "Intel Corporation 82801AA IDE Controller (rev 02)" and therefore I compiled with support for the inteldriver I found. However, by checking the spec of the motherboard it turned out that it actually used the "iTE IT8712F" controller.
So I went back to the kernel and checked for a driver that would fit.
I didnt find a driver for the IT87-series only for 82 series. How do I resolv this? I have generic drivers kompiled into kernel already.
Also, I have tried to boot the two drivers for the older controllers from the 82series separetly but it still results into the same kernel panic.
Once again, thx for looking into this
 
Old 03-07-2008, 04:56 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Boot a liveCD, and do a lsmod to get the driver(s) required. Usually a good starting point.
 
Old 03-08-2008, 10:28 AM   #10
GeneralDark
Member
 
Registered: Nov 2007
Location: Sweden
Distribution: Gentoo 2007
Posts: 32

Original Poster
Rep: Reputation: 15
I did boot on a live cd (gentoo minimal x86 2007) and used rmmod to remove all modules except for: ipv6 and usbcore. So The driver needed is compiled into the kernel I suppose. How do I find out wicth one it is?
 
Old 03-08-2008, 10:55 AM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Search in kernel sources brings up this. Does not look as an IDE controller to me.

Code:
   
|  Symbol: IT8712F_WDT [=n]                                                          │  
  │ Prompt: IT8712F (Smart Guardian) Watchdog Timer                                   │  
  │   Defined at drivers/watchdog/Kconfig:395                                         │  
  │   Depends on: WATCHDOG && X86                                                     │  
  │   Location:                                                                       │  
  │     -> Device Drivers                                                             │  
  │       -> Watchdog Timer Support (WATCHDOG [=n])                                   │  
  │                                                                                   │  
  │                                                                                   │  
  │ Symbol: SENSORS_IT87 [=n]                                                         │  
  │ Prompt: ITE IT87xx and compatibles                                                │  
  │   Defined at drivers/hwmon/Kconfig:336                                            │  
  │   Depends on: HWMON                                                               │  
  │   Location:                                                                       │  
  │     -> Device Drivers                                                             │  
  │       -> Hardware Monitoring support (HWMON [=y])                                 │  
  │   Selects: HWMON_VID
 
Old 03-08-2008, 12:16 PM   #12
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Run lspci -v from a LiveCD and it will tell you what kernel driver is in use for every device. You can also run it with -nv, this will tell you PCI-ID, go to http://kmuto.jp/debian/hcl/ and see what driver can be used.
 
Old 03-08-2008, 12:23 PM   #13
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Simplicity.

Sorry if this question is too obvious, just ruling out some simple checks.
1.) Are you sure that the filesystem on /dev/sda3 is ext3.
2.) You may also need to change the devices in fstab if the system is registering your devices sda instead of hda.

Good Luck
 
Old 03-08-2008, 12:30 PM   #14
GeneralDark
Member
 
Registered: Nov 2007
Location: Sweden
Distribution: Gentoo 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Ok, after searching the gentoo forums a while it turned out what IDE driver I should use (the one I used before starting expermanting).
Sp, whats left then? Whot is the problem really? I don have support for ext2, ext3, jfs, ROM, former shm fs, /proc/kcore, kernel automounter 4 support. Am I missing anything?
 
Old 03-08-2008, 12:33 PM   #15
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Need to compile support.

If I am understanding correctly, you need to compile support for filesystems you are using into the kernel, minimal would be ext2 and 3. i usually enable most all of them.

Last edited by Hern_28; 03-08-2008 at 12:34 PM. Reason: typo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux kernel panic issue saqis Linux - Kernel 6 05-22-2007 12:11 PM
kernel panic error after rebooting new kernel image fiero Linux - General 4 07-13-2005 08:32 AM
kernel panic after rebooting the system.Urgent.Please help. sharmashikha Linux From Scratch 3 07-07-2005 10:36 AM
Rebooting after kernel panic nbarraud *BSD 2 01-12-2005 08:35 PM
Kernel Panic: grub configuration issue(?) rickthemick Linux - General 3 11-17-2004 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration