Kernel Booting Problem
Hi, I recompiled my kernel, and it keeps giving me some messed up error messages!
# ERROR # Kernel Panic: Unable to mount root fs or 00:00. ######### When i try to fix that by changing the "root=LABEL=/" setting in grub to "/dev/hda5", i get a "try to pass an init= option" error. How could I fix this, and why is it happening? I just want a working kernel that I recompiled :P! Could it be due to the fact that i'm removing SCSI options from my kernel configuration before I compile it? # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You do not have a /boot partition. This means that # all kernel and initrd paths are relative to /, eg. # root (hd0,5) # kernel /boot/vmlinuz-version ro root=/dev/hda6 # initrd /boot/initrd-version.img #boot=/dev/hda default=3 timeout=10 splashimage=(hd0,5)/boot/grub/splash.xpm.gz title Red Hat Linux (2.4.20.666) root (hd0,5) kernel /boot/vmlinuz-2.4.20.666 ro root=LABEL=/ hdd=ide-scsi initrd /boot/initrd-2.4.20.666.img title Red Hat Linux (2.4.20-13.8) root (hd0,5) kernel /boot/vmlinuz-2.4.20-13.8 ro root=LABEL=/ hdd=ide-scsi initrd /boot/initrd-2.4.20-13.8.img title Red Hat Linux (2.4.18-14) root (hd0,5) kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/ hdd=ide-scsi initrd /boot/initrd-2.4.18-14.img title Windows rootnoverify (hd0,0) chainloader +1 |
How are you doing it??
Are you using the RedHat way? Make it an RPM and all that? Or are you doing it manually : make menuconfig, make dep && make clean bzImage modules modules_install?
|
Seems like someone forgot something: :)
run 'man mkinitrd', and make a initrd with which you'll use with your new kernel. |
I'm doing it the manual way on a redhat 8.0 system. And i make an initrd by doing
mkinitrd /boot/initrd-2.4.20.666.img 2.4.20.666 ? Maybe there's a missing step, or a missing option in the kernel i built because if it detects the drives, cdrom, and floppy, then it should work. |
What about...
System.map
|
umm what about a sytem map? I think i have one :S!
|
OK, then....
Good Luck, vip3r.
|
?? wtf? Just like that u give up on me?
|
Quote:
Quote:
Did you do a make mrproper first? mrproper would wipe out lots of stuff. I'd try copying an old .config to the new kernel, then just change what you want. |
Umm i don't know what you understood by "what about a system map" but I meant that "what is a system map, for what, why, and where should it be".
|
System.map
Ok dude...
In a nutshell the system.map is a bunch of coding symbols (correct me if I'm wrong please) and you can find it wherever you compiled your kernel (ex: /usr/src/linux/system.map) Then you want to copy that to /boot I would sugguest doing that with the following "cp System.map /boot (while in soure dir) I myself am a newbie but I do try to help people. Once again please correct me if I'm wrong on any of this. |
All times are GMT -5. The time now is 02:59 AM. |