LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 07-21-2010, 05:10 AM   #1
hari85
LQ Newbie
 
Registered: Jun 2010
Posts: 18
Blog Entries: 1

Rep: Reputation: 0
Trouble shooting grub


hai i have a problem with my grub.
my distro is centos 5.3 .
today i boot the computer,i saw an error "grub stage2 is not loaded"
and the system is halted. is it needed to reinstall grub? pls give me the step-by-step solution.
Thanks in Advance............
 
Old 07-21-2010, 06:13 AM   #2
Filip_Kv
LQ Newbie
 
Registered: Mar 2010
Location: Thessaloniki, Greece
Distribution: Debian, Ubuntu, CentOS, Fedora
Posts: 11

Rep: Reputation: 2
Did you tamper with the menu.lst (or the grub.conf) file? Stage 2 in GRUB is the part where it loads
the kernels and other OSs to boot from. The file from which it reads these options is menu.lst, or grub.conf in
/boot/grub/. This file might have been corrupted, or otherwise tampered.

However, other errors, such as disk errors, or filesystem errors might be the culprits. Try UBCD in order
to check your system for such errors.

You can also boot with a live cd (ubuntu for instance) and go to the root drive's /boot/grub/ directory and
check the menu.lst file. You have to be careful though, since these files control the boot process of your pc
and mistakes may lead making your pc unbootable.

-Fk

Last edited by Filip_Kv; 07-21-2010 at 07:20 AM.
 
1 members found this post helpful.
Old 07-22-2010, 12:53 AM   #3
hari85
LQ Newbie
 
Registered: Jun 2010
Posts: 18
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Filip_Kv View Post
Did you tamper with the menu.lst (or the grub.conf) file? Stage 2 in GRUB is the part where it loads
the kernels and other OSs to boot from. The file from which it reads these options is menu.lst, or grub.conf in
/boot/grub/. This file might have been corrupted, or otherwise tampered.

However, other errors, such as disk errors, or filesystem errors might be the culprits. Try UBCD in order
to check your system for such errors.

You can also boot with a live cd (ubuntu for instance) and go to the root drive's /boot/grub/ directory and
check the menu.lst file. You have to be careful though, since these files control the boot process of your pc
and mistakes may lead making your pc unbootable.

-Fk

..................................
thank u very much.. i correct it by some edit in grub.conf.
can u tell me when ever will be single user mode helpful in trouble shooting. i know it is helpful for changing password.
......................................................
 
Old 07-22-2010, 01:10 AM   #4
hari85
LQ Newbie
 
Registered: Jun 2010
Posts: 18
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Filip_Kv View Post
Did you tamper with the menu.lst (or the grub.conf) file? Stage 2 in GRUB is the part where it loads
the kernels and other OSs to boot from. The file from which it reads these options is menu.lst, or grub.conf in
/boot/grub/. This file might have been corrupted, or otherwise tampered.

However, other errors, such as disk errors, or filesystem errors might be the culprits. Try UBCD in order
to check your system for such errors.

You can also boot with a live cd (ubuntu for instance) and go to the root drive's /boot/grub/ directory and
check the menu.lst file. You have to be careful though, since these files control the boot process of your pc
and mistakes may lead making your pc unbootable.

-Fk

..................................
thank u very much.. i correct it by some edit in grub.conf.
can u tell me when ever will be single user mode helpful in trouble shooting. i know it is helpful for changing password.
......................................................
 
Old 07-22-2010, 03:22 AM   #5
Filip_Kv
LQ Newbie
 
Registered: Mar 2010
Location: Thessaloniki, Greece
Distribution: Debian, Ubuntu, CentOS, Fedora
Posts: 11

Rep: Reputation: 2
Single user mode is very helpful for various reasons, one of which is when you forget the root password. It allows you to boot into single user (runlevel 1) and from there change it back to something else. Furthermore, it is also used for securoty purposes, especially when you would like to check something without the network services being run (that happens in single user mode), meaning without any external interference.

Also, concerning the root password change, I would recommend to secure grub with a password to edit its grub menu on startup, since without this it is considered to be a security vulnerability.

-Fk
 
  


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
Shooting Trouble with Knoppix frankbell Linux - Hardware 2 06-21-2010 04:44 PM
trouble shooting for JAVA installation shaad Linux - Newbie 4 06-01-2010 08:50 PM
Recommend a trouble shooting book newbe45 Linux - General 4 01-31-2008 12:36 PM
RHCE Trouble Shooting Files Nilesh.Shah Linux - Newbie 6 06-12-2005 08:38 AM
Rhce trouble shooting binumvk Linux - Certification 3 06-23-2004 01:51 PM


All times are GMT -5. The time now is 04:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration