LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Using GRUB version 1.98. (https://www.linuxquestions.org/questions/linux-desktop-74/using-grub-version-1-98-a-869563/)

zaxonus 03-19-2011 02:40 AM

Using GRUB version 1.98.
 
Hi,

I am having trouble with GRUB version 1.98.

I have been using GRUB 0.97 for a long time and can do pretty much what I want with it.

It appears that the last version of Debian (6.0) installs GRUB 1.98. There are probably very good reasons for that upgrade, but nevertheless I have to say I am lost.

I just downloaded the linux kernel 2.6.38 and compiled it as usual. Now I don't know how to add this new kernel in the GRUB menu. I tried two or three ways on my own, but it all failed.

This used to be very easy when I was using version 0.97. Can someone tell me what I need to do with GRUB 1.98 ?

Thanks for any information.

EDDY1 03-19-2011 02:46 AM

If you compiled select it to load, it'll make grub entry
Run
Quote:

update-grub
When I compiled kernel I was asked if I wanted to load it and it made a grub entry at that point.
os-prober
&
update-grub

EDDY1 03-19-2011 03:29 AM

At the end of this tutorial it shows what I was alking about.
http://www.debianadmin.com/step-by-s...5-0-lenny.html

zaxonus 03-19-2011 10:34 PM

Grub 1.98
 
Thanks for the tip.

Following these advices I have been able to make some progress. But there are still unclear points.

1) When I just use update-grub as suggested; my new kernel appears in the GRUB menu. When I try to boot it, it fails. It seems that the reason is due to the fact that I use mkinitramfs and not mkinitrd. I would like to know how to adjust that. In other words I should be free to use either one I prefer.

2) If I try to insert my new menu item by modifying the file /etc/grub.d/40_custom appropriately (meaning what I think is appropriate). I get another item in the GRUB menu and this time it works. At this point I have added 2 items to the GRUB menu : one working and one not working. I can probably get rid of the one not working by modifying by hand the file /boot/grub/grub.cfg, but as far as I understand, I am not supposed to do that. So what is the right way to do it ?

EDDY1 03-20-2011 03:49 AM

I've only compiled succesfully 1x ,so I really can't lead you in any specific direction, but someone may come along and offer advice on that subject.
My compile was a cut and paste job.

Larry Webb 03-20-2011 05:47 AM

I have deleted from the grub.cfg before and it did not mess things up but if you run update again you will probably get it back. The best thing is to comment it out by putting a # before the menuentry line then if it messes things up all you need to do is undo the comment. I use mine to chainload and have it in its own partition so do not worry with updates.

EDDY1 03-21-2011 02:58 AM

@zaxonus
I'm in the middle of compiling a kernel, this is the link I used
http://okomestudio.net/biboroku/?p=754


All times are GMT -5. The time now is 05:41 AM.