LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-02-2009, 05:53 PM   #1
wombat53
Member
 
Registered: Jun 2005
Location: Australia
Distribution: Linux linux01 3.9.5-301.fc19.x86_64
Posts: 179

Rep: Reputation: 30
Angry Unable to boot into GRUB loader: GRUB command shell boots up: urgent issue


Hi - I have a (serious) problem, and help very greatly appreciated.
A failed upgrade, from disk images, of Fedora 10 to 11 resulted in no GRUB bootloader main menu appearing on bootup (no WIN, no LINUX choices from which to boot). I am booted directly into the GRUB command shell...so, no WIN, no LINUX, nothing. And my understanding of GRUB shell commands is very low.
I have 2 hard disks, WIN on the first, LINUX on the second. I believe GRUB Bootloader is on the first disk.
Sadly, I have no external install media.
An old grub.conf hardcopy indicates that root =/dev/sdb2, root (hd1,0), kernel /vmlinuz....olderversion...(relative to /boot),
initrd /initrd...olderversion... (relative to boot).
and WINDOWS on (hd0,1), with chainloader +1

I need to somehow get past this grub shell, and re-install/re-instate the grub bootloader, so it can boot normally.
What grub command(s) must I use? I've played around with the commands, but with no success.
I worry that if I can't resolve this, the whole machine may be useless.
I pray someone can help me here.
Thanks
George
 
Old 09-02-2009, 07:55 PM   #2
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 am sure the machine can be saved, it is a matter of figuring out what happened. We need more information, was this upgrade from a cd, dvd, internet connection? How far did the upgrade get before stopping? Were there any error messages? If nothing else from the grub shell enter the following

grub>
title windows
rootnoverify (hd0,0)
chainloader +1
boot

This should get you back to windows if it is in the first partition of the first boot hd. If not we will need more information.
 
Old 09-02-2009, 09:14 PM   #3
wombat53
Member
 
Registered: Jun 2005
Location: Australia
Distribution: Linux linux01 3.9.5-301.fc19.x86_64
Posts: 179

Original Poster
Rep: Reputation: 30
Larry
Was upgrade from decompressed .iso image, using the "install.img" method.
Failed while writing partitions to disk using anaconda. No error message.
I honestly don't remember more....sorry.....
I have been told to do something like this....:
grub> find /vmlinuz ( from this result you should be able to insert hd?,? into the next line )
grub> where (hd?,?) vmlinuz <TAB> and it should list the filenames
find /boot/vmlinuz
grub> root (hd1,0)
grub> kernel /vmlinuz-(from command 2 above) root=/dev/sdb2
grub> boot

I may also need grub>initrd filename details before the final boot step.
Then I may have to re-install grub.

This is consistent with what I've read on the web, assuming I have the correct grub and Linux device names from an old hardcopy of my grub.conf files. Even if not, the various "find" commands should confirm I do have the correct kernel, initrd and device names. Having no google last nite, I didn't have access to info, nor people where I work.

Seem like a reasonable sequence?

George
 
Old 09-03-2009, 06:56 AM   #4
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
Did you try my entry for your windows install? It should be safe. Being honest I am not familiar with fedora. Seeing you do not have a disc, we are limited as to what we can do. Do you have an old fedora disc or any linux distro disc that can be run as live cd?

If not see if you can at least download a copy of 'Super Grub' and burn it to disc. It would be better if you could burn a distro live cd.

Last edited by Larry Webb; 09-03-2009 at 07:00 AM.
 
Old 09-03-2009, 07:14 AM   #5
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
How did you upgrade to Fedora 11 ?
I mean did you do it in that way that the boot partition of Fedora 11 stay
/ = ext3 and the rest ext 4
My understanding is that GRUB can not read from ext4
It seems that LILO can
 
Old 09-03-2009, 06:29 PM   #6
wombat53
Member
 
Registered: Jun 2005
Location: Australia
Distribution: Linux linux01 3.9.5-301.fc19.x86_64
Posts: 179

Original Poster
Rep: Reputation: 30
Larry - I tried the WIN boot, with no success.
The Fedora installation was by the book, from the install image, per the Fedora project guidelines. I never requested any re-partitioning, but anaconda seemed to intervene anyway.

The grub commands below all failed...no files could be found (vmlinuz, initrd etc...); am presuming the LINUX disk was partitioned/reformatted before failing, and is useless. I can live with this.

Worse still, the grub bootloader (which resides on WIN disk), is clearly corrupted. I would like to restore the MBR of (WIN) disk 1, if possible. I understand there are commands to do this, tho' I don't have a floppy rescue disk at this moment. My work laptop has no floppy, but am trying to obtain one from am friend.
Re-boot from a Fedora 9 install DVD yielded kbrd error...strike F1 for...something, F2 for setup...all failed.
As I see it, I now need to do as above; try and re-create the WIN MBR to invoke the NT bootloader. Perhaps once I get WIN back, I can try and re-install LINUX.
George
 
Old 09-03-2009, 07:16 PM   #7
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
If you use a live cd from the terminal you can see what is left on your drive and see how it is partitioned. If you do not want to go this route, 'Super Grub' disc will boot windows also if there is a windows left to boot. Without more information I am afraid I can only recommend a clean install.
 
Old 09-04-2009, 05:08 AM   #8
wombat53
Member
 
Registered: Jun 2005
Location: Australia
Distribution: Linux linux01 3.9.5-301.fc19.x86_64
Posts: 179

Original Poster
Rep: Reputation: 30
Smile

I've managed to boot back to WINDOWs as follows (data from the old grub.conf file, as follows:
rootnoverify (hd0,0)
chainloader +1
boot

But I am sure if I reboot I'll get back to the grub command line shell. I' wish to now replace the grub bootloader (which I believe lives on the (first) hard drive, containing windows, with ther WIN NT bootloader.
Is there a way to do this?
Then I can think about re-installing LINUX. But at least I have WIN back, and my data is available.
Many thanks to Larry Webb.
Thanks
George
 
Old 09-04-2009, 06:07 AM   #9
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 do not know enough, which version the 32 bit or 64 bit, which kernel, what partition number? If you have a dvd or cd I would recommend a new install or repair. Most of the new distros on dvd have a repair option which may get you back working. If cd then we can use as live and find the information we need.
 
Old 09-04-2009, 06:20 AM   #10
wombat53
Member
 
Registered: Jun 2005
Location: Australia
Distribution: Linux linux01 3.9.5-301.fc19.x86_64
Posts: 179

Original Poster
Rep: Reputation: 30
Larry - thanks to your suggestion re the GRUB prompt, I was able to boot WIN. Then I was able to put install CD (in DVD!) drive, and run FIXMBR, FIXBOOT, and now have removed grub bootloader, and WIN boots cleanly!!
So far, so good.
Now, back to Linux (a second disk (hd1) = dev/sdb.

I do have the following file:
Fedora-11-i386-DVD.iso all, 3.5GB of it, and so wish to re-install Linux on 2nd drive, WITHOUT LOGICAL VOLUMES, which I've always been able to do.
Unfortunalty anaconda reared its ugly head in the upgrade from 10 to 11 and trashed the LINUX partition, ging rise to these problem, most of which are fixed now.
I just want a simple system, with 3 partitions - as I have always had - /, /boot, and swap.
I think I also want the GRUB bootloader NOT to be on the WIN disk (MBR), but on the (Dedicated)LINUX disk
George
 
  


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
Unable to find boot loader - always boots XP chetty Fedora - Installation 1 12-06-2005 09:05 PM
Urgent! Grub Boot Loader! Help! greenjm90 Linux - Newbie 41 08-17-2005 05:03 AM
boot stops at GRUB GRUB linux never boots coffeedemon Slackware 4 11-09-2004 02:20 PM
Ahh help! (Grub Boot Loader Issue). RoaCh Of DisCor Linux - Software 9 09-09-2004 04:39 AM
grub boot loader issue mbegovic Linux - Software 2 04-17-2004 04:59 PM

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

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