Fedora Linux Support Community & Resources Center
  #1  
Old 25th February 2008, 09:54 AM
dmode Offline
Registered User
 
Join Date: Jan 2005
Location: vega
Posts: 145
How to restore Grub?

I know this has been asked thousands and thousands of time...

I was dual booting WinXP and Fedora 8 on my laptop... installed gOS on a free 4gb partition (same harddisk) and when I boot I get WinXP and gOS and no Fedora 8... want to get back my fedora desperately!!!

I prefer the Fedora 8 grub over gOS grub.

fdisk -l gives (Fedora 8 is in /dev/sda2 and /dev/sda5)

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9db743c9

Device Boot Start End Blocks Id System
/dev/sda1 * 1 8368 67215928+ 7 HPFS/NTFS
/dev/sda2 8369 8393 200812+ 83 Linux
/dev/sda4 8394 9729 10731420 5 Extended
/dev/sda5 8394 9207 6538423+ 8e Linux LVM
/dev/sda6 9208 9269 497983+ 82 Linux swap / Solaris
/dev/sda7 9270 9729 3694918+ 83 Linux

Help! Sending out and SOS... message in a bottle...

PS Of course, would love to have all 3 OSes at bootime... thanks!

Last edited by dmode; 25th February 2008 at 09:59 AM.
Reply With Quote
  #2  
Old 25th February 2008, 10:12 AM
pete_1967 Online
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 4,302
Code:
title Fedora (2.6.23.15-80.fc7)
        root (hd0,0)
        kernel /vmlinuz-2.6.23.15-80.fc7 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.23.15-80.fc7.img
Of course, you need to change the kernel version to your current and use correct hard-drive (change hd0,0 bit above).

Add that to your /etc/grub.conf (after backing it up first) note that /etc/grub.conf is a symlink to /boot/grub/grub.conf
Reply With Quote
  #3  
Old 25th February 2008, 11:56 AM
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 69
Posts: 22,120
I'd suggest grabbing a copy of Knoppix and mounting the Fedora install, then copying the info from Fedora's grub.conf into gos's /boot/grub/menu.lst (Fedora's about the only distro that uses 'grub.conf' so don't look for it in gos).

In the future, it's a great idea to print off the working menu.lst and have it handy for situations like this. Also, if you look carefully when you're doing an install of a new distro, there will be an option to put the bootloader on the root partition of the new distro, rather than on the mbr. Then you can pass the boot from the existing grub to the new distro's grub and avoid having to modify things when kernels change or you swap out distros. We can give you details on that when you have the need.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #4  
Old 26th February 2008, 04:52 AM
hubiedo Offline
Registered User
 
Join Date: Sep 2007
Location: San Antonio Tx
Posts: 62
you might try this topic & thread. i just got done dealing w/ this. hope it helps you.

http://forums.fedoraforum.org/forum/...d.php?t=181833
__________________
_________________________
Life is full of challenges--Fedora is one of them!
Reply With Quote
  #5  
Old 26th February 2008, 04:54 AM
hubiedo Offline
Registered User
 
Join Date: Sep 2007
Location: San Antonio Tx
Posts: 62
if you can't find it is under my name and is titled "grub again"
__________________
_________________________
Life is full of challenges--Fedora is one of them!
Reply With Quote
  #6  
Old 26th February 2008, 04:56 AM
hubiedo Offline
Registered User
 
Join Date: Sep 2007
Location: San Antonio Tx
Posts: 62
once i got it fixed i made a grub boot disk, a super grub disk and tom's boot disk. didn't want to fight this battle a third time.
__________________
_________________________
Life is full of challenges--Fedora is one of them!
Reply With Quote
  #7  
Old 26th February 2008, 05:38 AM
dmode Offline
Registered User
 
Join Date: Jan 2005
Location: vega
Posts: 145
THANKS EVERYONE!

I'll post this here, lol:

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 1

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=e34c2eeb-8acf-4d58-8099-24f35c688d85 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,6)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash vga=785 locale=en_US

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Google OS
root (hd0,6)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=e34c2eeb-8acf-4d58-8099-24f35c688d85 ro quiet splash vga=785 locale=en_US
initrd /boot/initrd.img-2.6.22-14-generic
quiet

# title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
# root (hd0,6)
# kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=e34c2eeb-8acf-4d58-8099-24f35c688d85 ro single
# initrd /boot/initrd.img-2.6.22-14-generic

title Ubuntu 7.10, memtest86+
root (hd0,6)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
# title Other operating systems:
# root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1

title Fedora 8
root (hd0,1)
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.23.1-42.fc8.img
Reply With Quote
  #8  
Old 28th February 2008, 06:51 PM
indianromeo1975 Offline
Registered User
 
Join Date: Feb 2008
Posts: 4
You could try this if you issue is still not resolved. Boot with a Fedora Boot CD and at the prompt, type 'linux rescue'. When you reach the command prompt, type 'chroot /mnt/sysimage'. Then cd into the /boot folder and there you will find grub. Type the command 'grub--install /dev/sda'.
You will get a message stating the the grub is successfully installed. Please try this and let me know if it works!!!

Cheers!!
Reply With Quote
Reply

Tags
grub, restore

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
Restore MBR for Grub Pepperonie Using Fedora 12 5th June 2007 06:20 PM
Help to restore grub bravo_elf Using Fedora 21 4th February 2006 12:18 AM
Restore grub TheJkWhoSaysNi Using Fedora 19 10th April 2005 02:54 PM
have GRUB in MBR how can I restore it there alphonsebrown Using Fedora 3 26th March 2005 09:50 AM
how to restore grub? PsyGhost Using Fedora 7 23rd August 2004 03:27 AM


Current GMT-time: 20:09 (Friday, 29-08-2014)

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