LinuxQuestions.org
Visit Jeremy's Blog.
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 07-23-2009, 08:10 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,185

Rep: Reputation: 45
initrd image and entry in Grub


Hello all,

I recently complied the 2.6.30.2 kernel for my ubuntu 9.04. The compilation was done using the make-kpkg but it seems that i forgot to add the --initrd flag when running it.

Thus, dpkg -i to install the imaged, did not create an initrd-img-2.6.30.2 file in my /boot directory and when i tried to boot my machine i got a kernel panic. I booted using my old kernel and i added a initrd line in my grub pointing at the initrd.img of my previous kernel. Thus i managed to load my new kernel.

The question i have is, am i save doing that? does that affect the run of my new kernel at all? I 've read some things about update-initramfs and mkinitrd but i am not sure if i should use them and what would be the benefit..

Many thanks in advance for the responses


ps. i understand that this is not a newbie question but was not sure in what branch of the forum to post it and i couldn't find a better one:-/
 
Old 07-23-2009, 08:42 AM   #2
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
I definitely fall in the category of kernel newbie, so go find your grain of salt to take this post with.

My gut feeling is that it shouldn't cause much trouble. You apparently haven't changed the needed hardware drivers, or changed the UUID of the real root fs, etc.
"Other distributions (such as Fedora and Ubuntu) generate a more generic initrd image."
http://en.wikipedia.org/wiki/Initrd

What do you mean by "is it safe"? Are you just thinking about system stability? If so, as long as your system boots and then behaves properly, then initrd has done its job once the real root file system is loaded.

If it's peace of mind you're after, why not just compile again using the --initrd?
https://help.ubuntu.com/community/Kernel/Compile


My suggestion for forum:

Linux - General (188 Viewing)
This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Now that I've thoroughly messed you up, let's hear from an expert.
 
Old 07-23-2009, 10:55 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Quote:
excerpt from 'initrd wiki';

The initial ramdisk, or initrd is a temporary file system commonly used in the boot process of the Linux kernel. It is typically used for making preparations before the real root file system can be mounted.
Simple but practical definition. You should be able use 'mkinitrd' with the proper parameters to create a new initrd for your new kernel then just change your bootloader stanza to reflect that one.
 
Old 07-24-2009, 06:47 AM   #4
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,185

Original Poster
Rep: Reputation: 45
Cool;-)

Thanks a lot guys, your answers were very helpful.

@michapma > Indeed the initrd seems a bit generic in ubuntu and i see no problems. Yes, but saying stable i mean exactly what you are describing. It seems that the theory (that inirtd is only used for booting and after that it does not affect the system) comes true;-)

@onebuck> well i tried the update-initramfs -c -k 2.6.30-2 and it worked great! I added a pointer at my grub's stanza and it works like a charm!

thanks guys
 
  


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
Make new initrd image qewldude Fedora - Installation 3 02-15-2008 10:56 AM
is really initrd image required. shellarchive Red Hat 2 01-02-2008 11:33 PM
Missing initrd image neogeek23 Linux - Kernel 1 12-24-2006 02:29 PM
mounting the initrd image d0tc0mguy Linux - Newbie 1 09-29-2006 06:16 AM
What's initrd image? Nerox Linux - Newbie 2 08-25-2004 05:53 PM


All times are GMT -5. The time now is 10:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration