LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 07-26-2006, 01:21 PM   #1
Richpo
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Rep: Reputation: 0
GRUB Loader problem


Hello all,

Out of nowhere my RH9 system has developed a problem. I was bringing up the system and I see the message "GRUB loading stage2" and the next thing I know I'm in the grub program itself. No error message or anything. It just dumps me in the GRUB program without going through the normal boot/load sequence (which it's been doing for about 3 years now flawlessly).

This is a 686 PC with only RH9 installed on it. I didn't change anything that I'm aware of or install any new hardware, etc. I did boot up the rescue disk and get a shell and I can see all of my files and such so it's not a total loss. But I'm hoping I can repair whatever it is that has decided to barf on me.

I've looked around and searched these forums but haven't found anything I see as helpful for my situation.

Anybody know what's wrong? What caused this? Why am I dumped into the GRUB interactive shell? Why don't I get some sort of error message or dump log? Did I loose part of my hard drive or something? Please, oh, please tell me there's a way to fix this.

Thanks for reading!
 
Old 07-26-2006, 01:31 PM   #2
justanothersteve
Member
 
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161

Rep: Reputation: 30
Could you post your grub.conf, I realize it may be difficult since the system is not booting. Use a live cd such as knoppix to access your partitions
 
Old 07-27-2006, 04:48 AM   #3
Richpo
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
OK, I booted into 'linux resuce' mode, when to /mnt/sysimage/etc and found a listing for grub.conf
which was a link to ../boot/grub/grub.conf. Went to the
boot/grub directory and found that it was empty!!!

Could this be a wee bit of a problem?

On another identical RH9 system I see device.map, grub.conf, menu.lst, splash.xpm.gz, stage1, stage2 and a bunch of *_stage1_5 files.

Is there any way I can get anaconda to recreate the contents of my now empty /boot/grub directory? Would it be possible to make use of the grub files on my working system to help me out?

Any ideas on who or what erased all my grub files?

Thanks for the help!
 
Old 07-27-2006, 05:54 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: back to Arch
Posts: 16,659

Rep: Reputation: 425Reputation: 425Reputation: 425Reputation: 425Reputation: 425
I'm uncertain about the path to the grub files (/mnt/sysimage/etc). When you boot in rescue mode, can you see your filesystem tree? If so, go directly to /boot/grub and see what is there. empty?---how about /boot?

If the files are really missing, you may be able to copy them from another installation.

If you don't have too much custom stuff installed, you might want to re-install or simply upgrade to a more modern distro---eg FC5
 
Old 07-27-2006, 10:08 AM   #5
Richpo
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
The resuce mode makes the existing filesystem available but rooted from /mnt/sysimage. So I've seen that all of my files and such are still there where they should be.

The problem seems to be that all of the files that are in /boot/grub (which is mounted in resuce mode as /mnt/sysimage/boot/grub) are gone. Now that you mention it, I've just checked /boot (i.e. /mnt/sysimage/boot) and all the files are gone there as well! Little wonder that my system won't boot

So what would trash the entire boot directory? Is there any way I can get /boot (all files and subdirs) repopulated? Or should I just simply tar up the contents of the /boot directory on my working RH9 and put it on my bad system?

And this is a developmental legacy system supporting our product to customers. Luckily this should be our last release on RH9 and then we'll be migrating to FC5. But right now I need to get this system back online to continue development and release work. Thanks.
 
Old 07-27-2006, 10:24 AM   #6
justanothersteve
Member
 
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161

Rep: Reputation: 30
If you haven't done anything productive on this system since the install then I would just suggest you do a reinstall. It would probably take less time than other options
 
Old 07-27-2006, 11:05 AM   #7
Richpo
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Unfortunately, there has been a lot of work on this system over the past 3+ years so reinstalling and the building our development environment (including Qt, Tcl, Tk, Tix, etc.) would take mucho hours. That will be my last option.

Since there was nothing in the /boot directory, I figured I had nothing to loose so I tarred up the /boot on our working system and untarred it on this system.

Began to boot just fine and then came to a screeching halt with the message "Warning: unable to open initial console".

I looked in /dev and there is only a tty but no ttyN listed.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub boot loader problem DanielTan Linux - Newbie 13 05-05-2005 09:14 PM
Problem with Grub Loader Bob Moore Linux - Software 3 09-22-2004 08:38 AM
Grub boot loader problem wizardzx2 Linux - Software 3 06-23-2004 06:20 PM
GRUB boot loader problem bukich Linux - General 3 06-15-2004 01:22 AM
Problem with Grub loader aadilkhan Linux - Newbie 1 09-30-2003 01:30 PM


All times are GMT -5. The time now is 11:13 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration