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 - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-04-2005, 02:29 AM   #1
techguru9
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Rep: Reputation: 0
GRUB Issue with Windows XP


Hi,

I am having a AMD 2000 XP, machine with 256MB RAM, which has Windows XP and Redhat Linux 9.0 installed. I am quite a naive user of Linux. I used to use the floppy to boot into linux before, which was painful. And Windows used to get booted defaultly.

Few days before, I installed Grub as my boot loader, which I loaded to the MBR. The installation was done with anaconda, after which the boot process used to get stuck at "GRUB Loading Stage 2" message. After quite a lot of Googling, I could get it to work to some extend. The state now is that, I am able to get into Linux with Grub. But, when I select WinXP for booting into, it just comes back to the Grub menu screen again. It just continues in this circle. But, anytime I can get into Linux without any issue.

I have mounted one of the drives of Windows to Linux, which I am able to see from Linux (Data is still safe!). Please help me in debugging this problem. I can't afford to lose the data in Windows.

I have one harddisk, which is 40GB in size. It has been partitioned as 10GB for Windows Installation (C & 20GB for the second drive for Windows (E. And 10GB for Linux.


The results of some of the system check commands are given below.


Command : fdisk -l
====================

Disk /dev/hda: 40GB, 40020664320 bytes
255 heads, 63 sector/track, 4865 cylinders

Units = Cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/hda1 * 1 1275 10241406 c Win95 FAT32 (LBA)
/dev/hda2 1276 4864 28828642+ f Win95 Ext'd (LBA)
/dev/hda5 1276 3825 20482843+ 7 HPFS / NTFS
/dev/hda6 3826 4798 7815591 83 Linux
/dev/hda7 4799 4863 522081 82 Linux swap



FileName : /boot/grub/grub.conf
===============================

default = 0
timeout = 10
splashimage = (hd0,5)/boot/grub/splash.xpm.gz

title Linux RH9.0
root (hd0,5)
kernel /boot/vmlinuz-2.4.20-8 ro root=/dev/hda6 rhgb
initrd /boot/initrd-2.4.20-8.img

title Windows XP
rootnoverify (hd0,0)
chainloader +1


GRUB Installation to MBR
===================

grub> root (hd0,5)
grub> setup (hd0)

Checking if "/boot/grub/stage1" exists....... yes
Checking if "/boot/grub/stage2" exists....... yes
Checking if "/boot/grub/e2fs_stage1_5" exists....... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"....... 16 sectors are embedded
succeded
Running "install /boot/grub/stage1 (hd0) (hd0) 1+16 p (hd0,2)/boot/grub/stage2 /boot/grub/grub.conf....... succeded
Done



Please help me.

Thanks in adance,
Jomy
 
Old 04-04-2005, 05:28 AM   #2
ebit
Member
 
Registered: Jul 2004
Distribution: Slackware 10.1
Posts: 39

Rep: Reputation: 15
Quote:
chainloader +1
Did rehat insert that line? cant renember seeing it in the dual boot fc3 setup.
 
Old 04-04-2005, 05:33 AM   #3
techguru9
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Original Poster
Rep: Reputation: 0
No. RH anaconda didn't put anything correctly. It didn't have a proper entry for Windows. Grub was just getting stuck at the message "GRUB Loading Stage 2".
I googled about this and edited the grub.conf file. The /boot/grub/grub.conf was hand-made.
 
  


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
Grub Issue BittaBrotha Linspire/Freespire 2 09-03-2005 08:38 PM
Gnu Grub Issue with Windows XP Phil57 Linux - Newbie 3 06-05-2005 09:39 AM
Grub Issue david_harvard Linux - Newbie 2 06-09-2004 01:59 AM
Issue with GRUB Aktionman Linux - Software 3 12-15-2003 06:16 AM
GRUB issue Galileo430 Linux - Newbie 3 04-07-2003 03:19 PM

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

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