LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-22-2004, 08:32 AM   #1
kenred
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
Red Hat Crashed


Newbie question here, The Linux expert here in work has left, and I have been landed with looking after the server, apart from knowing nothing about Linux a nightmare has arisen.

We are using RedHat 6.1, if you need any more info you will have to hold my hand for me to find it.

Had to Reboot the server this morning, went out of the room when I came back it was at a grub > prompt. Not seen that before so had a blind panic for a bit.

managed to load the kernel, and typed in boot, it failed and recomended that I run e2fsck.

Used the linux cd to boot to linux rescue mode, created a directory called /foo and using
mount -t ext2 /dev/hda1 /foo mounted the disc, then
e2fsck /dev/hda1

It ran through and fixed some problems that it found, I thought that would be it, still boots to a grub prompt.

Also if i boot it again with the cd to linux rescue the directory I created (foo) has gone. I get the impression that I havent checked the actual Hard disc. Or do I need to do something else

Have I done something wrong, or have I missed something blindingly obvious.

Any help greatly appreciated.

Ken
 
Old 10-22-2004, 11:46 AM   #2
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
I would very seriously suggest downloading Knoppix and booting from there. You should able to view your HDDs and run your fsck repairs from the comfort of your very own GUI.

If worse comes to worse you can move the data to another hard drive for recovery as well.
 
Old 10-22-2004, 03:08 PM   #3
kenred
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the suggestion, I am off work till Wednesday, moving house, I will read up on knoppix and give it a try when I get back.

I will let you know how I get on. Once again thanks for the time.

Ken
 
Old 10-26-2004, 11:16 AM   #4
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Re: Red Hat Crashed

Quote:
We are using RedHat 6.1,
This paired with the following bit...
Quote:
Had to Reboot the server this morning, went out of the room when I came back it was at a grub > prompt.
...indicates that your Linux expert used a very old and unsupported version of Red Hat Linux and modified it. The GRUB bootloader was not used in Red Hat Linux 6.1, LILO was used. Modifications like that alter your configuration in a way, the system is no longer Red Hat Linux.

Quote:
It ran through and fixed some problems that it found, I thought that would be it, still boots to a grub prompt.
An fsck does not fix any bootloader problems. You need to examine /boot/grub/grub.conf (provided that it exists, maybe your Linux expert put it elsewhere, e.g. /etc/menu.1st, or didn't even include GRUB tools at all) and reinstall GRUB with "grub-install /dev/hda" into the MBR.

Btw, if the server is exposed to untrusted people (via the Internet or locally), I would advise that you install a Linux distribution version which is still supported with security fixes.
 
Old 10-28-2004, 10:24 AM   #5
kenred
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Hello again, sorry to be a pain, I will download knoppix tonight.

I have noticed that if at the grub prompt i type in root (hd1,0), then do grub-install (hd1,0) /<tab> all the files are there. I can see the grub.conf file in /etc. How can I amend it.

I booted to the linux rescue from the cd (REDHAT 6.2, not 6.1) and tried to mount the second hard drive, I assume thats right, but couldn't get it to mount. how do I mount the other drive.

If all the files are still there is this rescuable or will it need to be reinstalled.
 
Old 10-28-2004, 11:49 AM   #6
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
At GRUB command prompt, you could type

root (hd1,0)
configfile /etc/grub.conf

I would need many more configuration details from you before I would have a better picture. What's in grub.conf would be interesting, because (hd1,0) is second drive's first partition, e.g. /dev/hdb1 for an IDE disk.
 
Old 10-29-2004, 02:38 AM   #7
kenred
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Hi misc

if i type configfile /etc/grub.conf , I get error 15 File not found

If I type configfile (hd1,0) /etc/gr <tab> I get the list of everything that starts with gr, grub.conf is there.

If I type configfile (hd1,0) /etc/grub.conf , I get error 1 Filename must be either an absolute pathname or blocklist.

Is there anything else I can do.

Thanks for the help so far, I'll be Mr Linux before long.

Ken
 
Old 10-29-2004, 03:43 AM   #8
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Well, this goes into the wrong direction anyway...
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9 Thetargos Red Hat 431 04-13-2007 05:19 AM
Red Hat 9 to Red Hat EL Mozilla Migration Question rharvey@cox Linux - Software 2 01-13-2004 06:43 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 06:33 PM
red hat 9.0.93. -beta red hat 10-xmms problem ronss Red Hat 1 09-08-2003 04:00 AM
Red Hat 7.2... & a modem with Red Hat 7.1 driver support rahduku Linux - Distributions 1 02-14-2002 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:43 PM.

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