LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 05-07-2007, 11:45 PM   #1
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
Booting problem with Centos


- Hey guys heres my situation in my box i have 3 OS 2 windows 1 linux (centos) everything works fine not until i changed one of the windows OS. normally when i boot my PC i will have choices either centos or others which is the 2 windows OS. but now after i changed one of the windows OS im directly directed to the 2 windows option. i figured the new windows OS replacement could have mess up the boot loader for centos. is there a way to repair the centos so that i can boot it again...
 
Old 05-08-2007, 03:49 AM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Yes.

Just boot up any Linux Live CD and activate Grub in root console.

If Centro is in say hda3 you can tell Grub the root of Cento is in the 3rd partition of the 1st disk by (hd0,2) and set up its Grub in the MBR.
Code:
Grub
root (hd0,2)
setup (hd0)
quit
reboot
You will find Grub back after a reboot.

Remember Grub counts from 0 and (hd0) is the whole disk meaning the destination is the MBR.

If you are not sure which partition Cento resides then issue at the root console command
Code:
fdisk -l
It should be the first partition with type No. 83 in your case.

Last edited by saikee; 05-08-2007 at 03:51 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[centos] booting from non-primary drive pcandpc Linux - Distributions 2 04-25-2007 08:35 PM
CentOS Booting issue praveen_repelle Linux - Distributions 2 02-03-2007 02:10 AM
Dual Booting CentOS and Redhat wtilton Linux - Software 6 07-14-2006 11:50 AM
My Computer is not continuing booting in Enabling swap Space in CentOS Jefffrey Sze Linux - Software 1 06-26-2006 01:08 AM
Dual booting CentOS 4.2 with FC4 Digital Surgeon Fedora - Installation 5 01-12-2006 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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