LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-22-2010, 09:57 PM   #1
piccir
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Rep: Reputation: 0
Grub and initramfs in squeeze


Hello everybody
I'm facing with a dilemma:
Usually I compile for myself the kernel for my laptop.
with the last kernel 2.6.34 I had the following problem

After the compilation and installation of the image and header and the consequently update of the menu.lst the kernel boot normally.
After some days I removed the old kernel the routine update automatically again the menu.lst file, but this time at the next reboot the kernel remain stuck on the usb as if there weren't the module or the initramfs!!!
Then I checked the file log and the file menu.lst
the weird thing is that this kernel work when in the menu.lst is not present the row initrd inittr-2.6.34......etc...
But why it doesn't work when I spcify the initram file??? and if there is not need of this row why at each modification of the kernel the installation program update and add this row??

Thank you to everyone who can explain me this

piccir
 
Old 05-23-2010, 06:53 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

while you are waiting for a better reply ....try running a diff application against your old and new kernel config files you should see in /boot.
(I like xxdiff as it provides nice colours)

I am thinking maybe usb module.

2) I may have misunderstood so when you get a chance do you mean.....for your menu
initrd /boot/initrd inittr-2.6.34.gz......fails
delete initrd line........................succeeds?
 
Old 05-23-2010, 11:35 PM   #3
piccir
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post
hi

while you are waiting for a better reply ....try running a diff application against your old and new kernel config files you should see in /boot.
(I like xxdiff as it provides nice colours)

I am thinking maybe usb module.

2) I may have misunderstood so when you get a chance do you mean.....for your menu
initrd /boot/initrd inittr-2.6.34.gz......fails
delete initrd line........................succeeds?
Yes, is This what I mean.
In the past the first time that I compiled the kernel I miss that line and clearly the kernel was unable to boot because the module were in initramfs, but now it's weird, it works if don't put that line

piccir
 
Old 06-01-2010, 06:51 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
sorry for late reply

well all that is happened....is you compiled enough stuff into kernel NOT to need an initial ram disk image.

Lots of distros have no initrd...so its not a new concept.

Obviously you could go to extremes and have no modules as well....but that leaves you with one big kernel.

The minimum you need not to use an initrd is all drivers needed to access your system....the partition format, network and in your case usb

Altho there is no doc I can find quickly to describe NOT using initrd here is the reason for using it
http://www.faqs.org/docs/Linux-HOWTO...#create_initrd

So on a booted system.....ignoring kernels "inbuilt" run lsmod and see if rebuilding to inbuild those modules helps?
 
Old 06-04-2010, 03:31 PM   #5
piccir
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post
sorry for late reply

well all that is happened....is you compiled enough stuff into kernel NOT to need an initial ram disk image.

Lots of distros have no initrd...so its not a new concept.

Obviously you could go to extremes and have no modules as well....but that leaves you with one big kernel.

The minimum you need not to use an initrd is all drivers needed to access your system....the partition format, network and in your case usb

Altho there is no doc I can find quickly to describe NOT using initrd here is the reason for using it
http://www.faqs.org/docs/Linux-HOWTO...#create_initrd

So on a booted system.....ignoring kernels "inbuilt" run lsmod and see if rebuilding to inbuild those modules helps?

Thank you for your reply
What I'm still confusing is:
I compiled some parts in the kernel (for example to have less trouble like static in the kernel: ext2 ext3) and others like modules (for example iwl3945, rtl..., and other stuff).
IN the ramdisk It should be the modules required at boot time... ok maybe I don't need because all these modules are built in my kernel....
But how to know if I need or not of the initram??
Thank you
piccir
 
Old 06-07-2010, 04:47 AM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
well what you need in your kernel is stuff to access your keyboard, mouse, hard partition if no initrd (basically) and the other stuff can wait for modules to load.

If you look at /etc/init.d/ rcS.....compile anything needed in there such as your network card.

To say it again....boot a kernel with an initrd....then run lsmod....note want modules you need.....compile the kernel to compile "in" = (not module) the hardware support you need.....if it boots you are sweet....if it does not boot you have missed out your partition Kernel bit most likely

Why don't you just try creating versions and make notes of whats changed between each kernel build?
 
  


Reply



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
Debian Squeeze: Grub not working (XP removing grub) wearetheborg Debian 10 02-16-2010 05:33 PM
How to interact with the initramfs? ott0disk Linux - Kernel 3 01-06-2010 10:10 PM
initramfs !! Ashhere Linux - Newbie 3 08-24-2008 09:00 AM
initramfs on bootup bobheruela Linux - Newbie 1 06-21-2008 11:02 AM
Initramfs on boot up BACTRATE Ubuntu 7 06-10-2008 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:04 PM.

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
Open Source Consulting | Domain Registration