LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-01-2003, 08:25 PM   #1
ShawnC
LQ Newbie
 
Registered: Nov 2003
Posts: 9

Rep: Reputation: 0
RedHat works great, WinXP won't boot


Ok, I'm about as newbie as they come, so be gentle.

I installed Redhat 9.0 on a partition of my hard drive. The other partition on my hard drive has WinXP. My computer only boots to Redhat.

I've tried to Google an answer but the pages I've come across that talk about GRUB and LILO in terms that are way beyond me and leave me fairly confused. Is there someone or somewhere that will walk a total newbie through this. As best I can tell, I need to figure out what partition WinXP is on, get this GRUB thingy to recognize it and agree to give me it as a boot choice?

Thanks.
 
Old 11-01-2003, 08:39 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Yeah you're on the right track, first find out where the winxp partition is by using
/sbin/fdisk -l

then add to /boot/grub/grub.conf

title WinXP
rootnoverify (hd0,X)
chainloader +1

X is the partition number, starting from 0, so if the xp partition is the 3rd partition in the first harddisk you would have (hd0,2)
 
Old 11-01-2003, 09:30 PM   #3
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 932

Rep: Reputation: 32
Use FAT32 for WinXP. If you're using NTFS, and you resize it, XP hates that, and you must reformat that partition and reinstall XP. Afterwards, you'll have to put Grub or LILO back (or reinstall RedHat). I found that the hard way. Fortuantely, it was already dead and I was using Linux to troubleshoot it.

I shoulda asked before now: Do you see the XP logo for a short time while it tries to boot, then you get an error message?

Last edited by lectraplayer; 11-01-2003 at 09:33 PM.
 
Old 11-01-2003, 11:01 PM   #4
ShawnC
LQ Newbie
 
Registered: Nov 2003
Posts: 9

Original Poster
Rep: Reputation: 0
OK, here's where I'm at. This is my grub.conf:

# 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-8smp)
root (hd0,2)
kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-8smp.img
title Red Hat Linux-up (2.4.20-8)
root (hd0,2)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-8.img
title DOS - HP Recovery
rootnoverify (hd0,1)
chainloader +1
title WinXP 2
rootnoverify (hd0,2)
chainloader +1
title WinXP 3
rootnoverify (hd0,3)
chainloader +1
title WinXP 4
rootnoverify (hd0,4)
chainloader +1
title WinXP 5
rootnoverify (hd0,5)
chainloader +1

DOS boots into HP Recovery which wants to wipe all my data and start anew.
WinXP options 2-5 either get me an "Error 13: Invalid or unsupported executable format", or it just goes nowhere.


Here is what I get when I type sbin/fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 593 10336 78268680 17 Hidden HPFS/NTFS
/dev/hda2 * 1 592 4755208+ b Win95 FAT32
/dev/hda3 10337 10349 104422+ 83 Linux
/dev/hda4 10350 14593 34089930 f Win95 Ext'd (LBA)
/dev/hda5 10350 14463 33045673+ 83 Linux
/dev/hda6 14464 14593 1044193+ 82 Linux swap

Partition table entries are not in disk order


And no, I don't see the windows XP logo, it goes straight to GRUB (I think). I tried reinstalling RedHat in hopes I could configure the boot launcher to find my WinXP partition but no luck (or I couldn't figure out the right way to do it).

Any direction is appreciated.
 
Old 11-02-2003, 06:45 AM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
did you choose to install grub into the bootsector or the MBR?
and is your xp partition the ntfs or fat32 one?
 
Old 11-02-2003, 06:57 AM   #6
ShawnC
LQ Newbie
 
Registered: Nov 2003
Posts: 9

Original Poster
Rep: Reputation: 0
I'm pretty sure the partition is NTFS. Whether GRUB is in the MBR or the boot sector, well, in my newbie-ness, I'm not sure.

I don't have anything on the Linux partition that I want to keep, I don't suppose I could just wipe it clean or somehow uninstall Linux and get back to XP, could I?
 
Old 11-02-2003, 09:06 AM   #7
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
in that case maybe /dev/hda1 is your xp partition
try unhiding the first partition then use (use cfdisk and change the partition type to 7)

rootnoverify (hd0,0)
chainloader +1
 
Old 11-02-2003, 05:23 PM   #8
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 932

Rep: Reputation: 32
Try to go 'cd /mnt/windows'. Usually, that's where your Windows partition will be automounted (at least with Mandrake). Seriously, do find where it's at in the file system, or mount it in somewhere.

First, try to just type in 'mount' at a konsole (Ctrl-Alt-F1->F6). It should print out a thing telling about all your mounted partitions. Look for either FAT32 or NTFS listing. ...then try to CD to the folder that is listed there. (not the /dev/hda or whatever, but the other path that's listed, may be that /mnt/windows I mentioned a second ago).

Last edited by lectraplayer; 11-02-2003 at 05:25 PM.
 
Old 11-02-2003, 10:27 PM   #9
ShawnC
LQ Newbie
 
Registered: Nov 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Demonbane: I've unhidden hda1 but when I try a GRUB entry with
rootnoverify (hd0,0)
chainloader +1

It says "Booting command-list" and then it hangs and I have to manually shut the computer down. I'm not sure what partition type it is because I apparently have no cfdisk. It doesn't show up as a command and the helpfile has nothing about it.

lectraplayer: Here's what I see when I type mount:
/dev/hda5 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda3 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)

In /mnt all I have is two cdroms and a floppy.
 
Old 11-03-2003, 08:46 AM   #10
ShawnC
LQ Newbie
 
Registered: Nov 2003
Posts: 9

Original Poster
Rep: Reputation: 0
FYI, I tried to reinstall redhat and change GRUB to boot from hda1, and I think it told me it couldn't detect a kernel.
 
Old 11-03-2003, 12:35 PM   #11
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Maybe boot with winxp CD then do fixmbr/fixmbr, if grub doesnt work well for you, try nt boot loader.
 
Old 11-03-2003, 08:16 PM   #12
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 932

Rep: Reputation: 32
It appears your Windows partition isn't listed. Try ls /dev/hd* and see what you get. What all do you have? Try mounting each one and seeing what's in it. You may recognize your Windows partition by the files in it. Also, look at your raid and SCSI drives, whatever they are in /dev.

Last edited by lectraplayer; 11-03-2003 at 08:18 PM.
 
Old 11-04-2003, 08:45 AM   #13
ShawnC
LQ Newbie
 
Registered: Nov 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Ok, I have a feeling that I've really messed up my windows partition through some attempts to find it. So I have a new strategy. I'd like to reinstall WinXP to a different partition so I can get back to an OS I am familiar with and then get a data recovery program to hunt through my partitions to try and get my files back.

So I need to figure out how to create a new partition that the WinXP will recognize, setup on, and boot from. I think I should have enough space on my linux partition that it can donate the space to the new partition.

I tried to setupWInXP before but it had booting issues.

By the way, thanks for your help so far, I'm sure you're thinking "what a schmuck this guy is." Well, that's what I'm thinking too (and my wife!).
 
Old 11-04-2003, 09:15 AM   #14
.300WSM
Member
 
Registered: Oct 2003
Location: Aus
Distribution: Red Hat 9
Posts: 41

Rep: Reputation: 15
i think u do this, from a terminal...

init 3

fdisk hda

p

then work from there ,ie delect your old XP partion and start again.
thats what i would do but i have no idea and am just a newbie too

and i think there is a telinit s command that unmounts drives, or puts u in single user mode

Last edited by .300WSM; 11-04-2003 at 09:18 AM.
 
Old 11-04-2003, 09:21 AM   #15
.300WSM
Member
 
Registered: Oct 2003
Location: Aus
Distribution: Red Hat 9
Posts: 41

Rep: Reputation: 15
http://www.linuxquestions.org/questi...ticle&artid=41

that post expalins exactly what i was tryin to
 
  


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
Works great, but not from /etc/rc.d/rc.local :( Barca Programming 2 01-22-2005 04:14 PM
Redhat 9 & winxp dual boot -xp won't boot opivy Red Hat 3 01-02-2004 02:08 PM
RedHat and WinXP Dual Boot Emuthias Linux - Software 4 06-12-2002 06:47 PM
Dual Boot: Redhat 7.2/WinXP Coda Linux - Software 1 02-27-2002 01:41 AM
FA311 works great DarkBeethoven Linux - Networking 1 01-18-2002 08:41 PM

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

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