LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-09-2005, 04:37 PM   #1
pmrent
LQ Newbie
 
Registered: May 2004
Location: Green Bay, WI
Distribution: RH 9 RHE 2.1 3.0
Posts: 27

Rep: Reputation: 15
Can't Boot Grub Prompt


I used a windows boot disk and image client 32 to create an image back up of my linux RHE3 ES. I was restoring the back up to another server and all I get is the grub prompt. I'm assuming I corrupted the mbr.

How do I fix this?

Install the Redhat enterprise linux 3 es install disk #1 and type in linux rescue

Then what?

thanks in advance for your help.

-pete
 
Old 02-09-2005, 08:07 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
If you have a grub prompt then you can boot your kernel manually. And I would say it is much more likely you have a malformed or missing grub.conf file rather than any corrupted mbr.

Assuming your kernel is in a /boot partition on /dev/hda1 you would do this:
Code:
grub> root (hd0,0)
  Filesystem type is ext2fs, partition type 0x83
grub> kernel (hd0,0)/mykernel root=/dev/hda2 vga=791
  [Linux-bzImage, setup=0xa00, size=0x10b949]
grub> boot
....starts booting....
Remember that grub prompt has tab completion, so if you don't remember your kernel name:
Code:
grub> kernel(hd0,0)/[Tab]
   Possible files are: mykernel myotherkernel etc.....
Once you are booted fix your grub conf.
 
Old 02-15-2005, 04:58 AM   #3
pmrent
LQ Newbie
 
Registered: May 2004
Location: Green Bay, WI
Distribution: RH 9 RHE 2.1 3.0
Posts: 27

Original Poster
Rep: Reputation: 15
Talking

Thanks for your help. I ended up rebuilding from scratch. After some more research symantix has problems with restores to different disk configurations. The image was taken from a 12 gig EMC disk partition and moved to a 8 gig Shark disk partition. I don't completely understand why this is an issue but it was in the knowledge base.

I have copied your idea into my personal faq database for future reference. I think manually booting is a good idea and I would like to try it anyways.

When I screw that up I'll reply back again.

Thanks

-pete
 
Old 02-24-2005, 12:11 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
my 2 cents worth.

when you do restores......you overwrite an existing partition so there is no need to overwrite the mbr.

pretending you had however, made larger patitions on machine 2 and were using images from machine 1 to restore machine 2
in the very worse scenario you may have to just redo grub in mbr to reset the correct block address for its booting files.

but if you always have /boot as the first partition and size is same for machine 1 to 2 imo grub in mbr is safe as is

btw I use www.partimge.org but off a knoppix cd
 
  


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
How do I use GRUB to boot linux at grub prompt? Trillseker Linux - Newbie 3 12-11-2005 08:26 PM
How do I use GRUB to boot linux at grub prompt? Mustbox Linux - General 2 02-15-2005 01:01 PM
How to boot Windows from the grub> prompt? uman Linux - Software 1 01-09-2005 04:18 PM
grub prompt at boot zepplin611 Fedora 2 02-22-2004 03:59 PM
How do I use GRUB to boot linux at grub prompt? Trillseker Linux - General 5 06-19-2003 06:23 PM

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

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