LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-19-2011, 02:40 AM   #1
zaxonus
Member
 
Registered: Jul 2005
Posts: 66

Rep: Reputation: 15
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.
 
Old 03-19-2011, 02:46 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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

Last edited by EDDY1; 03-19-2011 at 02:50 AM.
 
Old 03-19-2011, 03:29 AM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
At the end of this tutorial it shows what I was alking about.
http://www.debianadmin.com/step-by-s...5-0-lenny.html
 
Old 03-19-2011, 10:34 PM   #4
zaxonus
Member
 
Registered: Jul 2005
Posts: 66

Original Poster
Rep: Reputation: 15
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 ?
 
Old 03-20-2011, 03:49 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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.
 
Old 03-20-2011, 05:47 AM   #6
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
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.
 
Old 03-21-2011, 02:58 AM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

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


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
GNU GRUB version 0.97 mmce Fedora 4 11-20-2010 05:01 PM
GRUB version 0.93 problem jsgogeta Linux - Newbie 2 05-09-2007 01:15 PM
boot two windows version with grub CrashedAgain Linux - Software 14 04-05-2007 02:49 PM
About grub version satimis Linux - Software 5 03-16-2006 05:30 PM
GRUB version 0.93 - Howto sp!d3rm@n Red Hat 2 07-08-2004 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:31 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