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 01-10-2003, 12:54 PM   #1
smartes
LQ Newbie
 
Registered: Jan 2003
Location: London, UK
Distribution: Red Hat
Posts: 14

Rep: Reputation: 0
GRUB PROBLEM - Help


I upgraded the kernel to 2.4.20 and at the end changed the links for System.map and vmlinuz to point to the new kernel

Now when I reboot the machine the Grub menu does not come up and the machine hangs - only the word GRUB comes up on the top left corner of the screen

When I installed Red Hat 8.0 first time I installed grub in the MBR

I have now changed the links to point to the old kernel 2..4.18-14 and replaced the previous grub.conf file and still the same thing happens. I can still boot the old kernel from a boot disk.

Now I cannot get to my XP system without a boot disk

How can I fix this?


My grub.conf looks like:
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
password --md5 $1$NˇluuaE«$XA7U2AWgj4k98Ei143xll0
title Red Hat Linux (2.4.18-14)
root (hd0,1)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi pci=off nomce
initrd /initrd-2.4.18-14.img
title DOS
rootnoverify (hd0,0)
chainloader +1
 
Old 01-10-2003, 01:12 PM   #2
juby
Member
 
Registered: Dec 2002
Location: Bangalore, India
Distribution: Ubuntu 5.*
Posts: 241

Rep: Reputation: 30
use a win 98/me boot disk &

type

fdisk /mbr

u will get xp back

after taht try an upgrade of linux..without installing any pages..but just installing grub..
everything will work fine as long as ur filesystem is not ntfs
 
Old 01-10-2003, 03:46 PM   #3
smartes
LQ Newbie
 
Registered: Jan 2003
Location: London, UK
Distribution: Red Hat
Posts: 14

Original Poster
Rep: Reputation: 0
I did a fdisk /mbr (booting from Win 98 boot disk)
when I reboot - it says
Operating system not found

Then I installed the bootloader again (tried both GRUB and LILO)
but I am getting the same message when I reboot:
Operating System not found

My C: drive is currently labelled 'XP'

I am afraid I have messed up the MBR


Prior to messing up the MBR I was getting

GRUB Loading stage 1.5
Error 15
I guess the first stage bootloader was not working

How can I now get back my original MBR contents?

My XP filesystem is formatted as FAT32

/dev/hda1 - C:\ --- XP
/dev/hda2 - /boot
/dev/hda3 - /
/dev/hda5 - swap
/dev/hda6 - E:\ - vfat
 
Old 01-10-2003, 07:25 PM   #4
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
According the the Grub Manual, error 15 is:

File not found
This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.

This manual can be found at:

http://www.gnu.org/manual/grub-0.92/html_mono/grub.html

Let's go back to your original post. You updated system.map? What about grub.conf? From my understanding of Grub, that should have been the first file (and probably the only one) that you needed to update.

Where you seem to be at now: Nothing works.

I don't think you have messed up your MBR--both Windows and the Linux boot loaders installed there just fine. Grub getting to Stage 1.5 means that it has left the MBR.

Since you want to use Grub, how about we get Linux up first, then work on XP?

Use your boot disk and start Linux as root. When it is up and running, in a terminal window, type:

grub-install /dev/hda

That should should get Linux booting back to your original kernel. The Grub manual will tell you how to add your new kernel.

In a perfect world (I can dream, can't I?), this will also fix the problem with XP booting. My guess is it won't, so in your next post, give us your grub.conf file. If I'm wrong about system.map and you are supposed to alter it, also post that.

Good luck
 
Old 01-11-2003, 02:11 PM   #5
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Rep: Reputation: 30
I, too, have this problem--or very similar. I can boot Linux from boot disk, but without it I get "Missing operating system." This is a result of having typed fdisk /mbr at dos prompt earlier. I have been looking at /etc/grub.conf also, but still scratching head.

Just wanted smartes to know there is someone else in the boat with him!

Good luck and I'll be watching this thread...
 
Old 01-11-2003, 02:37 PM   #6
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Rep: Reputation: 30
Deadbug said: Use your boot disk and start Linux as root. When it is up and running, in a terminal window, type:

grub-install /dev/hda

I don't know about you, but I am getting command not found.

I guess I really shouldn't be muddying the waters here. This is your post. I'll sit back and watch.
 
Old 01-11-2003, 02:45 PM   #7
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Rep: Reputation: 30
No. I can't be quiet because it worked!!!

smartes, this is what I did:
booted into Linux with boot disk.
As root and from terminal the only way I could get to grub-install was to type /sbin/grub-install /dev/hda
It did it's thing and I can now boot as before, i.e., tell grub either dos or linux.

Good luck, mate! And to deadbug... a big (manly) hug! (I am headed to affero now.)

Kind regards,
Thomas
 
Old 01-12-2003, 11:10 AM   #8
smartes
LQ Newbie
 
Registered: Jan 2003
Location: London, UK
Distribution: Red Hat
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks Folks - I was in right mess - at first I was getting Operating System not found and then NTLDR not found (although the file was there). Eventually I installed XP again after deleting and creating the partition again.

But I think I know what I did wrong. I typed:
/sbin/grub-install /dev/hda2
instead of
/sbin/grub-install /dev/hda

Really my grub config was working fine - I should not have attempted to install it again

Now is it possible to boot Linux from the XP side maybe by editing boot.ini instead of installing Grub in the MBR. Or can I install Grub in the first sector of the boot partition instead of the MBR? Maybe I am getting unduly scared
 
Old 01-12-2003, 12:02 PM   #9
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Rep: Reputation: 30
Got a boot disk for Linux? That'd be the easiest and quickest. Then you can redo the install-grub to /dev/hda. I am probably stating the obvious here, but sometimes in a panic we overlook the obvious.
 
  


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
Yet another GRUB problem eqxro Linux - Software 3 08-04-2004 10:27 AM
HDD problem, scancode problem and grub EJ_INSIDE Debian 2 07-15-2004 10:36 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 09:13 PM
grub problem jigs Linux - Newbie 7 09-18-2003 01:16 PM
GRUB problem pupunk98 Linux - Newbie 7 12-26-2002 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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