Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Other Versions > EOL (End Of Life) Versions
FedoraForum Search

Forgot Password? Join Us!

EOL (End Of Life) Versions This is a Forum to discuss problems and workarounds for versions of Fedora that have passed End of Life.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st February 2007, 03:17 PM
CD-RW's Avatar
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 555
reinstall GRUB on non-bootable FC6 system

Hi all. Somehow I have managed to get my machine into a non bootable mode. All I get when trying to boot from GRUB (installed in the MBR of the only drive on the machine) is:

Searching for Boot Record from Floppy..Not Found
Searching for Boot Record from CDROM..Not Found
Searching for Boot Recodr from IDE-0..OK
GRUB _

and that's as far as I get.

I did a few things prior to this happening.

I attempted an online security update, which included a kernel update. The update failed due to running out of disk space. So I rebooted the machine with the GParted live CD-ROM to make some more space for the root partition. That upset the device names. So what I want to do is to re-install GRUB into the MBR, with the correct parameters for booting. Any suggestions on how to do this would be appreciated.

Thankyou
Reply With Quote
  #2  
Old 1st February 2007, 04:39 PM
sailor's Avatar
sailor Offline
Registered User
 
Join Date: Mar 2004
Location: San Antonio, Texas
Age: 55
Posts: 3,996
To re-install Grub:

1. Boot off the 1st Fedora CD or use the Fedora Rescue CD
2. At the boot prompt type 'linux rescue'
3. The rescue mode will find the fedora installation
4. Type 'chroot /mnt/sysimage'
5. Type 'grub-install /dev/hda' (to install Grub to the MBR of the 1st HD)"
(all commands without quotes)
__________________
sailor
Fedora 16, Mac OSX Snow Leopard, Windows 7
Registered linux user #362635
****************************************
Reply With Quote
  #3  
Old 1st February 2007, 09:54 PM
CD-RW's Avatar
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 555
Thanks for that sailor. I actually re-installed after resizing the partition. But that's handy to know, and I'll try it out anyway.
Reply With Quote
  #4  
Old 5th February 2007, 06:48 AM
CD-RW's Avatar
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 555
Quote:
Originally Posted by sailor
To re-install Grub:

1. Boot off the 1st Fedora CD or use the Fedora Rescue CD
2. At the boot prompt type 'linux rescue'
3. The rescue mode will find the fedora installation
4. Type 'chroot /mnt/sysimage'
5. Type 'grub-install /dev/hda' (to install Grub to the MBR of the 1st HD)"
(all commands without quotes)
I have tried that, and I end up at the ' grub> _ ' prompt. I need to read the manual (using 'pinfo grub') to learn what to do next.

I have my partition layout. What do I need to type into the GRUB command line to get GRUB to boot the installed Linux under /boot?

Is there any way to make a GRUB bootable floppy disk, that will hold all the required files such as stage1, stage2, menu.lst etc. So this would give me the same GRUB GUI straight off the boot floppy, as I get when booting from a working GRUB MBR installation?

That way all I have to do is to edit the GRUB boot parameters by pressing 'e' and then all will be working again? Being on a floppy disk, I could even edit the menu list on the floppy, in theory the boot sequence should be exactly the same then, just like booting from the working MBR installation of GRUB.
Reply With Quote
  #5  
Old 5th February 2007, 10:11 AM
CD-RW's Avatar
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 555
Having re-installed GRUB to the MBR by following sailor's instructions above, I then needed to do:

Code:
grub> find /boot/grub/stage1
 (hd0,12)
grub> root (hd0,12)
grub> kernel /boot/vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/hda13
grub> initrd /boot/initrd-2.6.18-1.2798.fc6.img
grub> boot
Obviously, /boot/vmlinuz-2.6.18-1.2798.fc6
& initrd /boot/initrd-2.6.18-1.2798.fc6.img
have to exist in the boot directory of the root partition for this to work.

This seems to do the trick for booting my setup! (I still would like to create a bootable floppy with GRUB files residing on it, if possible. (everything apart from the vmlinuz and initrd images above would be fine.)

Last edited by CD-RW; 5th February 2007 at 10:17 AM.
Reply With Quote
Reply

Tags
fc6, grub, nonbootable, reinstall

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub gone after reinstall XP 1nt3rfe4r Installation and Live Media 5 4th October 2007 08:41 AM
Reinstall Grub michi Installation and Live Media 2 27th April 2006 06:10 PM
Reinstall GRUB zillah Using Fedora 6 20th December 2004 08:19 PM


Current GMT-time: 02:10 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat