LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-13-2007, 03:36 AM   #1
germanomilagre
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
Talking boots in grub how to get it back to normal ?


I'm trying to get into Linux so I'm very much a novice. I'm trying to get all my customers with Linux servers. In this case using Red Hat 9 the secretary said that there was a power blackout and bef the ups run down she did a shutdown on the server. The fact is now when i boot the server it goes into grub mode and the question is How do i get it to go into normal red hat server mode ?
 
Old 02-13-2007, 09:28 AM   #2
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
I would recommend booting from a rescue disk and run fsck on your file systems.

After that, if it still will not boot, mount the file systems under a convenient mount point, do a "chroot <mount point>" and a "grub-install <device>".
 
Old 02-13-2007, 02:43 PM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Do yourself a favor and ditch Red Hat 9. That is so old it hasn't been supported in 3 or more years. Not only has it's EOL (end of life) been reached, but the 4 versions that followed it also have reached EOL!

You should read this thread from the security forum - http://www.linuxquestions.org/questi...d.php?t=524803

If you like Red Hat, then you should move on to Fedora Core 6, or their enterprise version, RHEL 4, although that is a paid distro. There is a free version of it, which I think is called whitebox.

Of course if you are serious about servers, then forget all that red crap, and get yourself into Slackware and Debian. Go GUI free!

Peace,
JimBass
 
Old 02-14-2007, 01:44 PM   #4
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
Quote:
Originally Posted by JimBass
<...> There is a free version of it, which I think is called whitebox.
I hadn't heard of that one. I like CentOS. It is based on RHEL.
 
Old 02-14-2007, 03:05 PM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
You are right wpn146, CentOS is the popular one. Whitebox is the same principle, the RHEL sourcecode repackaged. Their page is http://www.whiteboxlinux.org . I was thinking of CentOS when I wrote whitebox, but they are essentially the same thing.

I hope someday the whole rpm thing can be done away with, let everyone compile!

Peace,
JimBass
 
Old 02-14-2007, 03:56 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,816

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
FYI grub mode as you say is the grub prompt. You see this because grub can not find the menu.lst file which is located in the /boot/grub directory. Your filesystem is probably corrupted. If you do not have a rescue disk you can try a liveCD like knoppix and try to repair your filesystem.
 
Old 02-16-2007, 02:13 AM   #7
germanomilagre
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk
FYI grub mode as you say is the grub prompt. You see this because grub can not find the menu.lst file which is located in the /boot/grub directory. Your filesystem is probably corrupted. If you do not have a rescue disk you can try a liveCD like knoppix and try to repair your filesystem.
thank you Michael. That for now seems the best option to follow as i need to recover the data from my application that the client is using and obviously will consider going to another more up to date version of Linux. For me as a software developer stability and ease of use is the most important part for the server. I just use the server as a file server BTW. I will try to find that liveCD knoppix to try to recover, by any chance can you advise where i can that on the NET quickly ? I'm in Mozambique and not only customers have NET even less broadband access, so i need to comute from my home and the customer to try things out Michael do you agree with the opinion of the previous users to change the version of Linux ? Once again thank you for your help.
 
Old 02-16-2007, 02:19 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,816

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
Yes, I agree that you should upgrade to a current version. Here is the knoppix website.

http://www.knoppix.org/
 
Old 02-16-2007, 02:27 AM   #9
germanomilagre
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by wpn146
I would recommend booting from a rescue disk and run fsck on your file systems.

After that, if it still will not boot, mount the file systems under a convenient mount point, do a "chroot <mount point>" and a "grub-install <device>".
Just one question. I will not loose my data that is sitting on the server, will I ? Coz for me at this moment is the most critical thing. I cannot afford to loose that data. Also I'm in Mozambique and the customer does not have net access so i have to comute from home and his office to try things out. I do not have a rescue disk, only the original cd's i used to install the server, so i will have to follow your second option. Michael mentioned what looks like a utility to recover the corrupted server called knoppix, so I will also try that route if all else fails. Just a couple of questions ( remember Linux is completely foreign to me ) what do u mean by a convenient mount point and what do u mean by device in grub-install ? Pls be a bit patient with me and try to be a bit more specific as I'm a stranger yet to Linux (also any suggestions of a good book to teach myself Linux will go a long way in helping me get there - specially if I can get that online ) I have 25 years of programming in RPG, Acucobol, Vbasic for some issues only, and mostly financial management systems and thats my core work. Networking for me has been on a needed basis, so...Thanks again for your big help.
 
Old 02-16-2007, 02:28 AM   #10
germanomilagre
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk
Yes, I agree that you should upgrade to a current version. Here is the knoppix website.

http://www.knoppix.org/
Once again Tx a million. I will report back once I manage to try things out.
 
Old 02-16-2007, 02:37 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,816

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
The original Redhat 9 install CD does have a rescue mode. Boot the first CD when you see the linux prompt type in linux rescue and press the enter key. There should be some text on the monitor. Here is a short cut to the online Redhat 9 manuals

http://www.redhat.com/docs/manuals/l...mode-boot.html

The typical RH default installation creates 3 partitions, /boot, / and swap. You need to run the fsck command on the /boot and / directories. As described in the guide I posted the rescue mode will try to mount your / to /mnt/sysimage. fsck will try to repair the file systems similar to windows chkdsk command. The command fdisk will show you your partitions

fdisk -l (that is a small L)

To run fsck:
fsck /dev/hda1 (use the results from the fdisk command to enter the correct hard drive partition id)
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boots to grub; can't FIND grub.conf, start1 pushtostart Fedora 10 10-09-2006 05:01 PM
ldconfig back to normal/ causes problems with cedega brainlesspinkey Linux - Software 4 12-12-2004 03:15 PM
boot stops at GRUB GRUB linux never boots coffeedemon Slackware 4 11-09-2004 02:20 PM
Fluxbox back to normal in Sid. yay! macondo Debian 0 07-31-2004 07:40 PM
Changing back to normal user psyklops Linux - General 8 04-05-2003 06:45 PM


All times are GMT -5. The time now is 02:12 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration