Fedora Linux Support Community & Resources Center
  #1  
Old 30th January 2010, 08:56 AM
jonathonp Offline
Registered User
 
Join Date: Oct 2006
Location: Melbourne
Age: 42
Posts: 532
linuxfedorafirefox
Grub error after restoring with fsarchiver

Steps taken so far on my notebook:

1. Made a backup of f12 with fsarchiver using Linux SystemRescueCd
2. Made new partition scheme with gparted
3. Restored fsarchive
4. Edited fstab and grub.conf to match new partition scheme
5. I installed grub with the fedora dvd. (I received a non critical error but it worked - I can't remember the details)
6. Booted fedora (selinux remapped on boot)
7. Updated fedora with yum

Everything seemed ok until i rebooted.

8. Rebooted - Grub is missing
9. When i tried to reinstall grub i received an error

Code:
[root@orange jonathon]# grub
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename.]
grub> find /boot/grub/stage1
find /boot/grub/stage1
 (hd0,6)
grub> setup (hd0,6)
setup (hd0,6)

Error 12: Invalid device requested
10. I used the supergrub boot disc
Code:
(to boot !LINUX! (>=2) MANUAL option
Fedora booted with a non critical error. I'm can't see what is wrong with grub.

error
booting '7hda7 sda7 (hd0,6) hd0s7 ext2s 20GB Fedora Release 12

Code:
[root@orange jonathon]# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,8)
#          kernel /boot/vmlinuz-version ro root=/dev/sda9 rdblacklist=nouveau rdblacklist=nouveau
#          initrd /boot/initrd-[generic-]version.img
default=0
timeout=5
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.31.12-174.2.3.fc12.x86_64)
	root (hd0,6)
	kernel /boot/vmlinuz-2.6.31.12-174.2.3.fc12.x86_64 ro root=UUID=8cee91f2-d5a1-4073-b699-f145a0e2749a  LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet rdblacklist=nouveau rdblacklist=nouveau
	initrd /boot/initramfs-2.6.31.12-174.2.3.fc12.x86_64.img
title Other
	rootnoverify (hd0,0)
	chainloader +1

Last edited by jonathonp; 30th January 2010 at 09:00 AM.
Reply With Quote
  #2  
Old 30th January 2010, 12:21 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
windows_xp_2003ie
Hello jonathonp,

Some things to consider or try...

For this...
Quote:
Originally Posted by jonathonp
Code:
[root@orange jonathon]# grub
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename.]
grub> find /boot/grub/stage1
find /boot/grub/stage1
 (hd0,6)
grub> setup (hd0,6)
setup (hd0,6)

Error 12: Invalid device requested
...Try this (if it's the master boot record that you're trying to re-install GRUB in)...
Code:
grub> root (hd0,6)
grub> setup (hd0)
grub> quit
And for this...
Quote:
Originally Posted by jonathonp

I used the supergrub boot disc
Code:
(to boot !LINUX! (>=2) MANUAL option
Fedora booted with a non critical error.
...Did you remember to verify that UUID in the kernel command line of your grub.conf file? It's bound to be different now.
Reply With Quote
  #3  
Old 30th January 2010, 02:40 PM
jonathonp Offline
Registered User
 
Join Date: Oct 2006
Location: Melbourne
Age: 42
Posts: 532
linuxfedorafirefox
Hi stote. I received this error:

Code:
[root@orange jonathon]# grub
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename.]
grub> root (hd0,6)
root (hd0,6)
 Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,6)  
setup (hd0,6)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,6)"... failed (this is not fatal)
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,6)"... failed (this is not fatal)
 Running "install /boot/grub/stage1 (hd0,6) /boot/grub/stage2 p /boot/grub/grub.conf "... succeeded
Done.
Any ideas what it means? Grub is working again. I can't explain why it disappeared after the update. Maybe things got screwed up after restoring with fsarchiver. i always install grub on root partition and use http://gag.sourceforge.net/index.html to boot my systems. What' are the steps for removing grub and reinstalling it?

I noticed these package:
bootconf, x86_64 grubby.x86_64

but i have never used them before.

Last edited by jonathonp; 30th January 2010 at 03:09 PM.
Reply With Quote
  #4  
Old 30th January 2010, 03:48 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
linuxfedorafirefox
Quote:
Originally Posted by jonathonp

i always install grub on root partition and use http://gag.sourceforge.net/index.html to boot my systems.
An important detail that was not mentioned before. Anyway, you knew how to modify the suggestion made by me.

Quote:
Originally Posted by jonathonp

I received this error:

...

Any ideas what it means?
I gress you are referring to this...
Quote:
Originally Posted by jonathonp
Code:
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,6)"... failed (this is not fatal)
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,6)"... failed (this is not fatal)
That happened because you installed stage1 in a partition boot sector. Stage1.5 is only installed when GRUB is installed in a master boot record. It goes in the so-called DOS Compatibility Region which is the 62 normally unused sectors between the master boot record and the first partition of a legacy hard drive. When GRUB is installed in a partition boot sector, there is no such place in the partition to put stage1.5, so it is omitted.

Quote:
Originally Posted by jonathonp

What' are the steps for removing grub and reinstalling it?
If by that you mean the grub package, then yum remove grub would uninstall it. And yum install grub would re-install it. But if you mean the GRUB boot loader, then you don't really uninstall it. Since most of it exists in the master boot record, DOS Compat Region, and partition boot sectors, you install something else in place of it. Or re-install it over itself.

Quote:
Originally Posted by jonathonp

I noticed these package:
bootconf, x86_64 grubby.x86_64

but i have never used them before.
Quote:
Originally Posted by rpmfind.net

The bootconf configuration utility is a convenient tool for setting GRUB kernel boot options.
Quote:
Originally Posted by The grubby man page

grubby is a command line tool for updating and displaying information about the configuration files for the grub, lilo, elilo (ia64), yaboot (powerpc) and zipl (s390) boot loaders. It is primarily designed to be used from scripts which install new kernels and need to find information about the current boot environment.

Last edited by stoat; 30th January 2010 at 04:00 PM.
Reply With Quote
  #5  
Old 30th January 2010, 04:12 PM
jonathonp Offline
Registered User
 
Join Date: Oct 2006
Location: Melbourne
Age: 42
Posts: 532
linuxfedorafirefox
Thanks for the detailed information. Cheers
Reply With Quote
Reply

Tags
error, fsarchiver, grub, restoring

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
Help restoring grub (thx to idiot brother) itix Using Fedora 10 6th February 2009 10:11 PM
Restoring GRUB gaaurav_singh Installation, Upgrades and Live Media 3 7th July 2008 12:39 PM
restoring GRUB vazel Installation, Upgrades and Live Media 7 27th January 2006 09:56 PM
Restoring GRUB ucetin Using Fedora 5 6th August 2005 06:36 AM


Current GMT-time: 23:16 (Friday, 18-04-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