LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-01-2004, 02:43 AM   #1
bock9259
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Unhappy grub problem....windowsXP will not boot...please help me*tear*


I just recently installed Red Hat 9.0. I used Partition Magic to partition my hard drive before installing Red Hat. Whenever I use fdisk it prints out something like this:

Device Boot Start End Id System
/dev/hda1 * 1 592 b Win95 Fat32
/dev/hda2 593 10624 7 HPFS/NTFS
/dev/hda3 10625 10637 83 Linux
/dev/hda4 10638 14593 f Win95 Ext'd(LBA)
/dev/hda5 14594 14463 83 Linux
/dev/hda6 14464 14593 82 Linux swap

I'm using the grub bootlaoder and it boots red hat fine but when I try to boot windows it just spits out:

Booting Command List
rootnoverify (hd0,1)
chainloader +1

Then it's just a blinking cursor with no response. I can't seem to get a print out of my grub.conf or menu.lst files either. Whenever I try to access them it just gives me a 'permission denied' response.

I can boot into the recovery console of XP with the grub instructions:

rootnoverify (hd0,0)
chainloader +1

but that doesn't really do me a lot of good.

I wouldn't mind reinstalling redhat or xp but I really need to get some documents and files off the XP partition before I reformat it.

Will sombody please help me out. It'd be greatly appreciated. Thanks a lot.
 
Old 04-01-2004, 04:24 AM   #2
|2ainman
Member
 
Registered: Mar 2004
Distribution: Slackware current, DSL 0.9.2
Posts: 133

Rep: Reputation: 15
to edit grub.conf you need to be root. type "su" in the prompt and then use an appropriate editor to look for "rootnoverify(hd0,1) ..." and change that to the one that you used to load into XP ... then rerun grub to write to your boot sector. Why is it only letting you into recovery console .. it should let you into normal i think. Also, i thought that XP likes to be on the first partition and nothing else.
 
Old 04-01-2004, 04:36 AM   #3
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
you dont need to reinstall

in a console type

vi /boot/grub/brun.conf

(vi is just a text editor you can use any text editior you want like kedit)

kedit /boot/grub/brun.conf

my grub.conf file looks like this, I think the map command is the trick. It may have to be configured differently on you machine though because I have two hard drived hda0 and hda1 wher'as you have one drive that has many partitions.

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,3)
# kernel /boot/vmlinuz-version ro root=/dev/hda4
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,3)/boot/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2115.nptl)
root (hd0,3)
kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/1 hdc=ide-scsi rhgb
initrd /boot/initrd-2.4.22-1.2115.nptl.img
title Windows XP
map(hd1)(hd0)
rootnoverify (hd1,0)
makeactive
boot
 
Old 04-01-2004, 08:03 AM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Quote:

I can boot into the recovery console of XP with the grub instructions:

rootnoverify (hd0,0)
chainloader +1

can you elaborate on this? do you have recovery console installed on your harddrive?

By the way you need not to re-run grub for the change to take effect, the config file is read everytime it loads (unlike LILO), and the map command won't do any good on single harddrive.

Last edited by Demonbane; 04-01-2004 at 08:06 AM.
 
Old 04-01-2004, 11:04 AM   #5
bock9259
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Here's my grub.conf file. I think the problem is that my computer come with two partitions on the hardrive(hda1 and hda2). hda1 is the recovery console that stores all the data so if my computer jacks up it has all the information right there to restore it to factory condition. Is there anyway that I can swap the two partitions hda2 and hda1 or do you even think that will fix it? I've tried map (hd0,1)(hd0,0) but that gives me an error. Thanks for the help.

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-6smp)
root (hd0,2)
kernel /vmlinuz-2.4.20-6smp ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-6smp.img
title Red Hat Linux-up (2.4.20-6)
root (hd0,2)
kernel /vmlinuz-2.4.20-6 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-6.img
title Windows
rootnoverify (hd0,1)
makeactive
chainloader +1
 
Old 04-01-2004, 11:29 AM   #6
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Is it the windows xp recovery console or another recovery software provided by the manufactorer?
ie are there boot.ini, ntldr and ntdetect.com in hda1?
If you use the winxp recovery console to do a fixmbr/fixboot you should be able to get back into it, but you'll have to reinstall grub afterwards (or use the nt os loader)

If all you want is get the documents off the winxp partition try the Linux - ntfs driver here:
http://linux-ntfs.sourceforge.net/
download the rpm package that matches your kernel
 
  


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 for Linux, WindowsXP and MSDOS - HOWTO? Yalla-One Linux - General 4 10-26-2004 02:55 PM
Grub to Boot WindowsXP on SATA daveteusink Linux - Software 4 07-25-2004 06:32 PM
Canot Boot WindowsXP from GRUB snufferz Linux - Newbie 9 04-01-2004 11:34 AM
GRUB WindowsXP rubenmp Linux - Software 1 09-24-2003 07:55 AM
windowsXp/Linux boot problem bob10a Linux - Software 0 01-26-2002 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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