LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-20-2009, 03:17 PM   #1
PaulFXH
Member
 
Registered: Jul 2007
Location: Belo Horizonte, MG, Brazil
Distribution: Ubuntu, Mint, Haiku
Posts: 54

Rep: Reputation: 15
How to upgrade Grub ?


I'm using a multiboot system on an Asus EeePC 901 and, in general, everything works fine.
However, I've run into a problem that seems to require me to upgrade the version of Grub in the MBR.
This machine came with Xandros Linux already installed and the Xandros grub is in the MBR.
I have subsequently installed some other (mostly Linux) OSes in different partitions and all of them boot through the Xandros Grub in the MBR.
I've just done a Frugal Install of Tiny Core Linux but the Xandros Grub refuses to recognize the /bzImage in the kernel line in menu.lst.
However, if I go into a Grub terminal in Ubuntu on the same machine, the TC /bzImage is recognized without problem.
So,what I would like to do is:
1)Check that the versions of Grub in Xandros and in Ubuntu on this machine are indeed different. So is there a command for this?
2) Assuming that the Xandros Grub is indeed an earlier version, I need to upgrade Grub in Xandros. I have tried a grub-install but get a strange error message repeated four times which says:
Quote:
Could not find device for none
Grateful for any help
 
Old 01-20-2009, 03:40 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Not sure I can help you, but here are two thoughts:

(1) grub not finding or recognizing a file or filesystem at boot time is different from grub finding it after boot. So you may be comparing apples and oranges when you compare the ubuntu terminal grub output and the boot time. If you boot grub and use it interactively at boot time, you might have better luck in debugging why it doesn't like your bzImage file. Try "find bzImage" at the grub prompt to make sure it is where you think it should be.

(2) Sometimes grub-install doesn't work. If you can manually install with a boot floppy, that would be more reliable. But your Asus EeePC probably doesn't have a floppy; if it has a CD disk you can try using the "SuperGrub" CD.

Hope that helps
 
Old 01-20-2009, 04:00 PM   #3
PaulFXH
Member
 
Registered: Jul 2007
Location: Belo Horizonte, MG, Brazil
Distribution: Ubuntu, Mint, Haiku
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks for your reply.
Quote:
Originally Posted by mostlyharmless View Post
(1) grub not finding or recognizing a file or filesystem at boot time is different from grub finding it after boot. So you may be comparing apples and oranges when you compare the ubuntu terminal grub output and the boot time. If you boot grub and use it interactively at boot time, you might have better luck in debugging why it doesn't like your bzImage file. Try "find bzImage" at the grub prompt to make sure it is where you think it should be.
Yes, perhaps the evidence that I cited would not stand up in a court of law, but there's more. For reasons that would take some time to explain, I have installed Tiny Core Linux twice on the EeePC 901 -- once as a frugal install and the other as a "traditional" HD install. Only the latter boots. When I try to boot the frugal install, I get an error 2 (bad file or directory type) which apparently appears when the file is "missing". However, it is there but seems not to be seen. This ties in with what Grub (after boot in both cases) tells me; in Ubuntu both bzImage's are seen; in Xandros only the one that boots.
So, essentially, everything points to the Xandros grub not seeing the bzImage in the frugal install.

Quote:
Originally Posted by mostlyharmless View Post
(2) Sometimes grub-install doesn't work. If you can manually install with a boot floppy, that would be more reliable. But your Asus EeePC probably doesn't have a floppy; if it has a CD disk you can try using the "SuperGrub" CD.
No, I don't have either a floppy or a CDROM drive on this machine. However, can probably set up SuperGrub on a USB-key that will do the job.
 
Old 01-20-2009, 06:59 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
from grub (as run as root on a console / CLI)

# grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
#

(or was it exit)

Puts it on the MBR of hd0 (/dev/hda)(most of the time).
With stage 2+3+??? on /dev/hda1.
 
  


Reply

Tags
grub, upgrade


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
after F7 upgrade, only get grub prompt Kropotkin Fedora 11 06-06-2007 10:42 AM
Grub not finding grub.conf post fc6 upgrade billymayday Fedora - Installation 1 10-30-2006 05:26 AM
upgrade suse 9.0 to 10.0 and grub Paul7 Linux - Newbie 5 09-20-2005 09:34 AM
GRUB Upgrade to 2.0? brokenflea Slackware 10 02-22-2005 06:43 AM
should I upgrade to GRUB e1000 Slackware 6 12-12-2003 03:11 AM

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

All times are GMT -5. The time now is 06:06 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
Open Source Consulting | Domain Registration