LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 07-19-2004, 03:04 PM   #1
linlu
LQ Newbie
 
Registered: Nov 2001
Location: Virginia
Posts: 20

Rep: Reputation: 0
Fixing frozen GRUB after I reloaded a ghost image to a drive


I recently had to fix my Fedora Core 1 installation after I had reloaded an image onto the same hardware but a slightly different hard drive. The symptom of my problem: When I booted, the word GRUB would appear in the top left corner and then nothing else would occur.

I found a helpful tidbit here to fix the problem:
networking.earthweb.com/netos/article.php/3344241

So here is what I did to fix this:
1. Booted off Fedora Core 1 CD.

2. At the boot screen, chose F5 - Rescue

3. At the next prompt screen, entered:
linux rescue

4. From other googled posts, I ran this to figure out what my drive looked like.
df
I noted that boot was under /mnt/sysimage/boot as were all my other partitions except for a root.old and a root. I also noted that they were all on /dev/hda - which I think equates to hd0 in step 8 below.

5. From other googled posts, next I tried this:
chroot /mnt/sysimage
That proceeeded to give me this error:
Segmentation fault

6. So I tried this instead:
cd /mnt/sysimage/sbin

7. Then I ran GRUB interactively:
grub

8. From the link I mentioned above - How to install grub without a floppy, I typed the following:
root (hd0,0)
setup (hd0)

Grub ran an install of itself and appeared to fix the load file. It ran this command for me.
install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/grub.conf
Once that was done, I entered in the quit command.
quit

9. Then I removed the CD & exited from rescue mode, exit.
It rebooted and this time instead of seeing GRUB display in the top left corner my system rebooted into the normal login screen.

I hope this helps someone.
 
Old 07-20-2004, 11:21 PM   #2
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Rep: Reputation: 30
Great scott!

A monsterous gobildeegoop of horrible problems I'm glad to see that you fixed!

Handled like a true pro! Guru status awaits!
 
Old 08-21-2004, 08:08 PM   #3
vancouvermike
LQ Newbie
 
Registered: Aug 2004
Location: Vancouver, BC
Distribution: clarkconnect
Posts: 1

Rep: Reputation: 0
Cool Amendum Compaq Array Grub

I just wanted to add,

If you have a compaq array controller, entering (hd0) in grub will give you an error as well as (ida0).

What you have to do while in grub is enter the following:

device (hd0) /dev/ida/c0d0

Grub will then map hd0 to your array controller (hopefully). You may want to look at the df output to get this exactly right for your box.

And you can go on with the procedure outlined in the previous post.

I had to spend two hours googling to find this modification so I thought I should post it


Mike
 
Old 08-25-2004, 10:35 AM   #4
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
If you want to repair a system which does not work after changing the partitions and you are faced with the grub program and your system does not boot.

use

find /boot/grub/stage1

this will give you a list of disks

now finish with
root (hdx,x)
setup (hdx)

Last edited by arno; 08-25-2004 at 10:39 AM.
 
Old 08-25-2004, 10:47 AM   #5
hp46168
Member
 
Registered: Jun 2004
Location: Indiana
Distribution: Suse 9.0
Posts: 120

Rep: Reputation: 15
Re: Fixing frozen GRUB after I reloaded a ghost image to a drive

Quote:
Originally posted by linlu
I recently had to fix my Fedora Core 1 installation after I had reloaded an image onto the same hardware but a slightly different hard drive. The symptom of my problem: When I booted, the word GRUB would appear in the top left corner and then nothing else would occur.

I found a helpful tidbit here to fix the problem:
networking.earthweb.com/netos/article.php/3344241

So here is what I did to fix this:
1. Booted off Fedora Core 1 CD.

2. At the boot screen, chose F5 - Rescue

3. At the next prompt screen, entered:
linux rescue

4. From other googled posts, I ran this to figure out what my drive looked like.
df
I noted that boot was under /mnt/sysimage/boot as were all my other partitions except for a root.old and a root. I also noted that they were all on /dev/hda - which I think equates to hd0 in step 8 below.

5. From other googled posts, next I tried this:
chroot /mnt/sysimage
That proceeeded to give me this error:
Segmentation fault

6. So I tried this instead:
cd /mnt/sysimage/sbin

7. Then I ran GRUB interactively:
grub

8. From the link I mentioned above - How to install grub without a floppy, I typed the following:
root (hd0,0)
setup (hd0)

Grub ran an install of itself and appeared to fix the load file. It ran this command for me.
install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/grub.conf
Once that was done, I entered in the quit command.
quit

9. Then I removed the CD & exited from rescue mode, exit.
It rebooted and this time instead of seeing GRUB display in the top left corner my system rebooted into the normal login screen.

I hope this helps someone.
Been there, done that (with RH9 and ghostcast version 7.5)

According to symantec's web site, ghosts earlier than 8.0 or 9.0 all have this problem with linux.

Also, according to their web site, if lilo is used instead of grub, you don't have this problem.

(but that parts not true, so I'm not sure if I believe them if we upgrad eif it would work or not.)

anyhow, in a pure linux environment, wouldn't dd be the better choice?

Kyle
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restore GHOST image to new HD mstahl Linux - Hardware 3 09-07-2005 04:05 PM
winxp ghost image with grub husnos Linux - General 12 07-01-2005 02:55 PM
Ghost 9 or Acronis True Image 8? nathanv117 SUSE / openSUSE 0 01-09-2005 09:11 PM
Making ISO Image from Ghost. rridler Linux - Newbie 7 05-03-2004 08:04 PM
Ghost 7.5 Mandrake 9.1 Image Won't Boot Linuxpenguin Linux - Software 3 07-16-2003 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

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