Fedora Linux Support Community & Resources Center
  #1  
Old 20th February 2009, 09:31 AM
wiwengweng Offline
Registered User
 
Join Date: Feb 2009
Posts: 8
recompling a kernel--kernel panic!

i got a time consuming job~~!And it seems to be wired~
i installed fedora 8 (2.6.18.1 version)from my DVD rom ,and it goes well .some days ago ,i tried to complie 2.6.18.*,and everything went well,but things differ as i try to complie 2.6.19.* or 2.6.23.*-----nothing but "kernel panic!!!"
i wonder what's going on,and as i boot the machine,the message goes:
*********************
creating root device
mounting root filesystem
mount: could not find fileysstem ‘/dev/root’
setting up other filesystem
setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys,mounting internal default
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switching to new root and run init
switchroot: mount failed: No such file or directory
kernel panic********

what's up??? one thing i have to mention,is that ,my hard-disk is a SATA disk.As there is no panic in 2.6.18.*version,so i suppose the 2.6.23.*goes well too~~~~however,it doesn't ~~


any idea???pl help
Reply With Quote
  #2  
Old 20th February 2009, 09:50 AM
aleph's Avatar
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307
Did you create the initial ramdisk after you compiled a new kernel? Mkinitrd?
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.
Reply With Quote
  #3  
Old 24th February 2009, 01:55 AM
wiwengweng Offline
Registered User
 
Join Date: Feb 2009
Posts: 8
reply

is it necessary to mkdir ??
it seems of no importance when i read the installation pages from the web~~~so i never do that~~thanks ,i will try first and then report it later~!!
Reply With Quote
  #4  
Old 27th February 2009, 03:16 PM
wiwengweng Offline
Registered User
 
Join Date: Feb 2009
Posts: 8
help~!!!

it seemed not to work at all .as i know ,it doesn't need to "mkdir" when compling a 2.6.24 version,i am still troubled by this issue ~~~~help~!!
Reply With Quote
  #5  
Old 27th February 2009, 03:32 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
hard disk dev nodes changed from 2.6.18 to 2.6.19, so that /dev/hdx is no longer used.

Check in grub.conf and /etc/fstab that there are no references to /dev/hda
Reply With Quote
  #6  
Old 28th February 2009, 12:42 AM
wiwengweng Offline
Registered User
 
Join Date: Feb 2009
Posts: 8
so how~???

jif i have to delete the referrence about /dev/hda ,what should i do to replace this mark ??
this is my grub :

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,7)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,7)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.24)
root (hd0,7)
kernel /vmlinuz-2.6.24 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.24.img
title Fedora Core (2.6.18-1.2798.fc6)
root (hd0,7)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img
title other
rootnoverify (hd0,0)
chainloader +1

i cannot boot the new 2.6.24,what changes should i make??PL~!!!leave some steps to rescue my 2.6.24~
Reply With Quote
  #7  
Old 28th February 2009, 05:10 AM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
Can you boot into old 2.6.18 kernel?

That's an old fc6 kernel, if you want to update the kernel and nothing is available in the repos then download an rpm and install that, otherwise you'll probably miss a whole load of dependencies. A lot changed from fc6. When you compiled you own kernel did you build an rpm to install it or type 'make install'. If you built an rpm using 'make rpm' then installed that the initrd is not installed and you must do it yourself manually using mkinitrd. Check /boot, is there a matching initrd for your 2.6.24 kernel?
Reply With Quote
  #8  
Old 28th February 2009, 07:24 AM
wiwengweng Offline
Registered User
 
Join Date: Feb 2009
Posts: 8
help~~

Quote:
Originally Posted by sideways View Post
Can you boot into old 2.6.18 kernel?

That's an old fc6 kernel, if you want to update the kernel and nothing is available in the repos then download an rpm and install that, otherwise you'll probably miss a whole load of dependencies. A lot changed from fc6. When you compiled you own kernel did you build an rpm to install it or type 'make install'. If you built an rpm using 'make rpm' then installed that the initrd is not installed and you must do it yourself manually using mkinitrd. Check /boot, is there a matching initrd for your 2.6.24 kernel?
yes,i did anything i can to compile it .make menuconfig,make ,make modules_install,make install ~~~~ i do have 2.6.24.img,vmlinuz-2.6.24 and system.map-2.6.24 in /boot. so i think no need to mkdir~~~and so it failed though i did "mkdir"
so what is wrong??some one said it due to the differences between 2.6.18 and 2.6.24,but,what is the differences~~??anyone tell me ~??
Reply With Quote
  #9  
Old 28th February 2009, 07:31 AM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
is it 2.6.24.img or initrd-2.6.24.img?

A lot changed between 2.6.18 and 2.6.24, that's why it's safer to download a prebuilt fedora rpm and install using rpm or yum, that way you''ll see if there are dependency conflicts.

You seem to have a system which has been updated since FC6, is there any reason why you can't do a fresh install of F10, or why you have to install a 2.6.24 kernel on the old system?

(F8 repos are still available, though getting slower to access, you could just try a yum update)
Reply With Quote
  #10  
Old 28th February 2009, 07:47 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
Go back to post #2

it's mkinitrd NOT mkdir

you must do this
Reply With Quote
  #11  
Old 28th February 2009, 08:00 AM
wiwengweng Offline
Registered User
 
Join Date: Feb 2009
Posts: 8
thanks~!

Quote:
Originally Posted by sideways View Post
is it 2.6.24.img or initrd-2.6.24.img?

A lot changed between 2.6.18 and 2.6.24, that's why it's safer to download a prebuilt fedora rpm and install using rpm or yum, that way you''ll see if there are dependency conflicts.

You seem to have a system which has been updated since FC6, is there any reason why you can't do a fresh install of F10, or why you have to install a 2.6.24 kernel on the old system?

(F8 repos are still available, though getting slower to access, you could just try a yum update)
i was just curious about why it failed to boot~~.yes i just downloaded the 2.6.24.tar.ba2 from kernel.org ,and complie it in my Fc8 ,of 2.6.18 version~~~i was angry that the 2.6.24 version had just shut me out of the door,on the other hand,poeple do complie this version successfully ~~which make me upset~~
so ,i do hope to work it out~!
Reply With Quote
  #12  
Old 28th February 2009, 08:00 AM
wiwengweng Offline
Registered User
 
Join Date: Feb 2009
Posts: 8
thanks~!

Quote:
Originally Posted by sideways View Post
is it 2.6.24.img or initrd-2.6.24.img?

A lot changed between 2.6.18 and 2.6.24, that's why it's safer to download a prebuilt fedora rpm and install using rpm or yum, that way you''ll see if there are dependency conflicts.

You seem to have a system which has been updated since FC6, is there any reason why you can't do a fresh install of F10, or why you have to install a 2.6.24 kernel on the old system?

(F8 repos are still available, though getting slower to access, you could just try a yum update)
i was just curious about why it failed to boot~~.yes i just downloaded the 2.6.24.tar.bz2 from kernel.org ,and complie it in my Fc8 ,of 2.6.18 version~~~i was angry that the 2.6.24 version had just shut me out of the door,on the other hand,poeple do complie this version successfully ~~which make me upset~~
so ,i do hope to work it out~!
Reply With Quote
  #13  
Old 28th June 2009, 07:33 AM
Transformer Offline
Registered User
 
Join Date: Jun 2009
Posts: 5
Disaster

Hi

I have a big problem at my hand , atleast for me.

Yesterday I was trying to install the broadcom-wl package for my F9 for wireless network.

In due process I got errors of kernel updates required.

So , I did that but I accidentally installed two new kernels onto my system .

Then I had 3 kernels. Out of which two could access only the text mode, they could not load the screen .

So I logged in using the 3rd kernel and tried removing the other two as this third kernel was now not recognising the wireless card which before the installation of broadcom-wl package was recognised by the OS .

I out of my clumsiness accidentally removed the best working kernel ie the 3rd kernel . Now the next two work only in text mode and I need the graphical mode for some urgent work .

I didnt take note of which I was removing . I removed by the "yum" .

Please help me out . I m in desperate need.
Reply With Quote
Reply

Tags
kernelkernel, panic, recompling

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
recompling a kernel--kernel panic! wiwengweng Installation and Live Media 1 20th February 2009 10:01 AM
booting Kernel stops with Kernel Panic due to missing library ohommes Installation and Live Media 0 18th January 2009 02:06 AM


Current GMT-time: 22:58 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat