LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-18-2010, 10:21 AM   #1
slippyman
LQ Newbie
 
Registered: May 2010
Posts: 6

Rep: Reputation: 0
Unhappy Fix the GRUB loader


Hi Guys,

PC: Dell Precision T7400
O/S: Windows XP SP3 64-bit & Scientific Linux 5.3 64-bit

The above PC has 2 HDDs installed one has XP and the other Scientific Linux.

Problem: XP needed to be re-installed, i've done this now but now the GRUB Boot loader doesnt load - So just boots straight into XP.

Qustion: Is there anywhere to fix the GRUB? Without wiping the 2nd HDD and re-installing Linux!!

Let me know if you need any more info

Thanks in Advance for any help and Advice.

Steve
 
Old 05-18-2010, 10:24 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Yes, boot from a live CD and reinstall grub.
 
Old 05-18-2010, 11:53 AM   #3
slippyman
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Hi AlucardZero,

Thanks for the quick reponse.

I've booted up using the LiveCD 5.3 and re-installed Grub from the add and remove programs and then rebooted. But I still just boot straight into XP! Do I need to do anything else i.e. run some cammands from the terminal? As you can tell i'm a complete newbie to Linux!!

Thanks in advance

Steve
 
Old 05-18-2010, 12:38 PM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Is the second hd an external? It will help if you could give us the results of 'fdisk -l'.
 
Old 05-18-2010, 12:57 PM   #5
slippyman
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Larry,

Both Internal HHDs

Results of fdisk -l

Device Boot:

/dev/sdb1 Linux
/dev/sdb2 Linux LVM
 
Old 05-18-2010, 01:10 PM   #6
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
when you boot up a Live CD, say from the original Scientific distro just drop into a root terminal and invoke a Grub shell with this command
Code:
grub
the Grub can be restored by
Code:
root (hd1,0)
setup (hd0)
quit
The above is to tell Grub that you have a Linux at the 1st partition of the 2nd disk, sdb1 to Linux but (hd1,0) to grub, as the root and install Grub to the first disk (hd0). As no partition is specified in (hd0) Grub will go straight to the MBR.
 
Old 05-18-2010, 01:30 PM   #7
slippyman
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Thank Saikee,

The code you specified has indeed reinstalled Grub and I can get into Linux fine now. The only problem is I cant get into Windows XP now! I recieved the following error message when selecting XP at boot up:

Booting 'Windows XP'
rootnoverify (hd0,1)
Chainloader +1

Error 22: No Such Partition

Press any key to continue......
 
Old 05-18-2010, 02:02 PM   #8
slippyman
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
FDISK -l Results if this helps any!!

Device Boot Start End Block ID System
/dev/sda1 * 1 38912 312560608 7 HPFS/NTFS
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 38913 312464250 8e Linux LVM
 
Old 05-18-2010, 04:25 PM   #9
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
edit your menu.lst

title Windows XP
rootnoverify (hd0,0)
chainloader +1
 
Old 05-18-2010, 04:31 PM   #10
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
I echo Larry Webb's suggestion.
 
Old 05-19-2010, 01:53 AM   #11
slippyman
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Guys,

Thanks for the help, really appreciated. Everything seems to be working okay now.

Info for anybody else with a similar issue.

1. logged into Linux as root
2. Opened Terminal/Console
3. Typed: sudo gedit/boot/grub/menu.lst
4. The config menu opens in a new window.
5. title Windows XP
rootnoverify (hd0,0),<- Changed this entry from (hd0,1) to (hd0,0)
chainloader +1
6. Saved Changes and Rebooted
7. Selected XP from the GRUB and logged into Windows XP without any hitches.

Thanks again guys, it's been a learning curve.
 
Old 05-19-2010, 06:53 AM   #12
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
The learning curve is what keeps linux interesting. In any of your next threads please let us know which distro you are using. Is it Scientific Live CD5.3?
 
  


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
LXer: Fix / Restore GRUB Boot Loader LXer Syndicated Linux News 0 05-07-2009 12:00 AM
[SOLVED] Trying to fix boot loader with multiple OSes 81bones Linux - Hardware 7 02-02-2009 06:45 PM
Fix grub boot loader after installing windows xp alaios Ubuntu 2 07-23-2008 09:58 AM
How to change my Grub Loader to Lilo loader in REDHAT LINUX 9.0 skumar.v Linux - Newbie 3 04-04-2008 10:38 AM
How to fix grub boot loader? UltraSoul Linux - General 7 01-24-2005 04:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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