Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Another Kernel Panic. (Solved) [Human Error]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ESF
n00b
n00b


Joined: 18 Aug 2006
Posts: 31
Location: /proc/1077

PostPosted: Fri Aug 18, 2006 8:32 pm    Post subject: Another Kernel Panic. (Solved) [Human Error] Reply with quote

I'm sorry, I don't want to waste your time, but I couldn't find out this problem in the forums.
You have read it thousand times, but it is really annoying that a kernel chrashes booting with a normal HD, non-sata, non scsi, non-firewire...

The error
Code:
UFS: Cannot open root device "hda3" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing : UFS: unable to mount root fs on unknown-block(0,0)
<?>uhci_hcd 0000:00:07.2 suspend_rh (auto-stop)


My grub.conf
Code:
default 0
timeout 5
splashimage=(hd0,0)/grub/mammatus.xpm.gz
title=Gentoo Linux 2.6.17-gentoo-r4
root (hd0,0)
kernel /boot/linux-2.6.17-gentoo-r4 root=/dev/hda3


My fstab
Code:
/dev/hda1               /boot           ext2            defaults,noatime  0 0
/dev/hda3               /               ext3            noatime         0 1
/dev/hda2               none            swap            sw              0 0
/dev/cdroms/cdrom0      /mnt/cdrom      auto            noauto,ro,user  0 0
/dev/hda4               /backup         fat32           rw              0 0
none                    /proc           proc            defaults        0 0
none                    /dev/shm        tmpfs           nodev,nosuid,noexec  0 0



What did I miss?
Sorry, I'm a really n00b at this, but I wanted to know "How is it inside", and needed to run a light kernel on my server, a PIII 500MHz, xD So as to not use Ubunto and similars...


Last edited by ESF on Mon Aug 21, 2006 4:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4983
Location: Gothenburg, Sweden

PostPosted: Fri Aug 18, 2006 8:36 pm    Post subject: Reply with quote

Change the kernel line in your grub.conf to
Code:
kernel (hd0,0)/boot/linux-2.6.17-gentoo-r4 root=/dev/hda3

_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
ESF
n00b
n00b


Joined: 18 Aug 2006
Posts: 31
Location: /proc/1077

PostPosted: Fri Aug 18, 2006 11:28 pm    Post subject: Reply with quote

Nope, it didn't work... The same kernel panic.

I have tried variations such:
Code:
root (hd0,2)
kernel (hd0,0)/linux-2.6.17-gentoo-r4 root=/dev/hda3

Or:
Code:
root (hd0,2)
kernel (hd0,0)/linux-2.6.17-gentoo-r4 root=(hd0,2)/dev/hda3


But it doesn't work...
If it helps... My hd(0,2) or /dev/hda3 is a ext3 partition and my boot partition is ext2
I loads the kernel, if I change a lot the line "kernel" a message turns up saying "no kernel" ;)
Perhaps I made a mistake building the modules to read ext3 (i think I didn't) or should I choose another kernel version?
Back to top
View user's profile Send private message
VincenzoVega
n00b
n00b


Joined: 15 Aug 2006
Posts: 42
Location: The land of mills and wooden shoes

PostPosted: Fri Aug 18, 2006 11:33 pm    Post subject: Reply with quote

Make sure to build-in the appropriate IDE drivers and ext3 (build-in, not as a module).
Back to top
View user's profile Send private message
ESF
n00b
n00b


Joined: 18 Aug 2006
Posts: 31
Location: /proc/1077

PostPosted: Sat Aug 19, 2006 9:30 am    Post subject: Reply with quote

I have just done it.
I included and built lots of unnecesary modules (generic modules, etc.)
I have checked all the ext3 modules and IDE,DMA,etc.
(In one of the choices of building, "make" suddleny stopped)
The same kernel panic appeared.
Any idea?

P.D. I'm trying with another kernel version, I think I will use 2.4... :(
Back to top
View user's profile Send private message
VincenzoVega
n00b
n00b


Joined: 15 Aug 2006
Posts: 42
Location: The land of mills and wooden shoes

PostPosted: Sat Aug 19, 2006 6:09 pm    Post subject: Reply with quote

ESF wrote:
I have just done it.
I included and built lots of unnecesary modules (generic modules, etc.)
I have checked all the ext3 modules and IDE,DMA,etc.
(In one of the choices of building, "make" suddleny stopped)
The same kernel panic appeared.
Any idea?

P.D. I'm trying with another kernel version, I think I will use 2.4... :(


You do usually
cp arch/i386/boot/bzImage [preferred kernel location here]
after you´re done making don´t you (otherwise it wouldn´t make any sense, since you´re not updating your kernel) ?
And you don´t have to built-in all sorts of crappy modules you probably won´t use anyway.
Just make sure you got the Generic IDE-modules compiled in.
Back to top
View user's profile Send private message
ESF
n00b
n00b


Joined: 18 Aug 2006
Posts: 31
Location: /proc/1077

PostPosted: Sun Aug 20, 2006 12:39 am    Post subject: Reply with quote

Well, the kernel is loaded anyway...
The problem, my problem, is that the kernel can't open the /dev/hdq3 partition (or whichever partition you set as root)
I tried building the same kernel with genkernel, but it wasn't successfull, it loaded, it printed a lot of yellow errors, but ir loaded and runned.
The next step i'm going to do is to try rebuilding another kernel manually, vanilla sources will be the better choice...

I'm sorry, I compiled the kernel (and the modules inside) 4 times and I got gcc crashes and kernel panics, but i did choose the IDE modules to be built in.

I'm not going to resolve this mistery, I'm avoiding it... I need my server ready for yesterday. :(

If I am succesfull building another kernel with the same options I will tell you the sooner I can ;).

P.D.Thanks Anyway, Thanks for your time :P
Back to top
View user's profile Send private message
ESF
n00b
n00b


Joined: 18 Aug 2006
Posts: 31
Location: /proc/1077

PostPosted: Mon Aug 21, 2006 2:10 pm    Post subject: Reply with quote

I tried once again and I got the same error...
What should I do?
Is there anything wrong in the handbook?
Could it be an error of udev?
Must I have an initrd image or something of kind?
(I read in the kernel documentation that I mustn't build the ext3 as a module if im going to use this filesystem as "/"..., is it true?)

I'm hopeles... :( I tried genkernel and was succesfull, but it loaded too much, and was all x86 generic binaries...


Please, a bit of help, do you need any of my archives to be printed here?
Back to top
View user's profile Send private message
erikm
l33t
l33t


Joined: 08 Feb 2005
Posts: 634

PostPosted: Mon Aug 21, 2006 2:20 pm    Post subject: Reply with quote

ESF wrote:

...
I'm hopeles... :( I tried genkernel and was succesfull, but it loaded too much, and was all x86 generic binaries...
...

Assuming you know how to configure your kernel properly, you can use genkernel with the --menuconfig flag: In terms of configuration this is no different to doing it 'manually', but genkernel will remember the kernel build steps for you.
Back to top
View user's profile Send private message
ESF
n00b
n00b


Joined: 18 Aug 2006
Posts: 31
Location: /proc/1077

PostPosted: Mon Aug 21, 2006 4:10 pm    Post subject: Reply with quote

My excuses, you can now call me 'n00b'...
I explain: I was building modules inside the kernel, and main fuctions as modules...

Yes, that's why I'll alwais be a noob.

A simple mistake of understanding...

I still not-knowing how could the kernel load without the correct modules built-in, but it is solved.

Human constant, human error, sorry ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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