LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 06-24-2008, 02:57 PM   #1
mapsiddiqui
LQ Newbie
 
Registered: Jun 2008
Posts: 13

Rep: Reputation: 0
Question System does not booting after installing new kernel


I installed UbuntuME inside windows and proceeded to compile 2.6.25.7 kernel (UbuntuME had 2.6.24, I think). After a few glitches I managed to compile the kernel and its modules, installed the modules and then the kernel. However, I wasnt able to make the initrd image for the new kernel. I did some research on mkinitrd (which was cited by the article I was referring to all the time) and found that it is only shipped with Fedora. I decided to skip creating the initrd image and my worst fears came true.

I rebooted and the boot failed citing some files missing in the /lib directory. Now I am pretty sure that this is as much of a problem with not having an initrd image for the new kernel as having those files missing. I wish I could post some more information but Im at work right now and do not have my personal laptop along. I do intend to reply to this message sometime in the evening with the details of the actual error.

In the meantime, has anyone encountered this issue ? and if so, what are your suggestions. Any help would be appreciated.

Thanks,
Anjum.
 
Old 06-24-2008, 03:14 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,533

Rep: Reputation: 178Reputation: 178
You can boot without an initrd if you make some loadable modules resident in the kernel. Compile your kernel again and this time make all of the modules that would be loaded by initrd resident in the kernel.

---------------------
Steve Stites
 
Old 06-24-2008, 03:58 PM   #3
mapsiddiqui
LQ Newbie
 
Registered: Jun 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jailbait View Post
You can boot without an initrd if you make some loadable modules resident in the kernel. Compile your kernel again and this time make all of the modules that would be loaded by initrd resident in the kernel.

---------------------
Steve Stites

Thanks Steve! My apologies but im a n00b
So kindly help me with some details
Thanks again
 
Old 06-24-2008, 07:50 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,533

Rep: Reputation: 178Reputation: 178
When you compile a kernel you can select for each module whether that module will be compiled as a loadable module (select M) or as a permanent part of the kernel (select Y). You need to select Y for such things as the device drivers for your root partition, your root file system, and anything else that your kernel needs to access the root partition.

The distributions have the problem that if they include everything in the kernel that any hardware configuration might need to be permanent their kernel would be too large to be practical. So the distributions say M for everything. Then they create an initrd tailored to each user's individual needs. The initrd includes the loadable modules that that particular user needs to access his root partition.

People who compile their own kernels can do it either way. Since you can compile your kernel and can't create an initrd I suggest that you do your kernel compile again and set the modules necessary for the kernel to access the root partition to Y. What those modules are depends on your hardware configuration, choice of file system, etc.

---------------------
Steve Stites
 
  


Reply

Tags
compile, kernel, linux


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
Kernel panic after compilation---System not booting skie_knite007 Programming 1 08-21-2006 12:58 PM
??Compiling new Linux Kernel in DOS,and then installing and booting System whit that isilinux Linux - General 2 01-26-2005 10:28 AM
Linux System not booting from new kernel pal Linux - Newbie 2 12-15-2004 06:41 PM
booting the kernel leads to a system hang? DeathCrush19 Mandriva 1 09-29-2004 12:03 PM
Problem booting my new kernel in an embedded system Fernando Linux - General 1 07-02-2002 09:41 AM


All times are GMT -5. The time now is 07:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration