LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-05-2003, 12:01 PM   #1
filkacik
LQ Newbie
 
Registered: Aug 2003
Distribution: rh9
Posts: 11

Rep: Reputation: 0
XP RH9 dual boot problem


Hi there,

I've got a small problem with my GRUB boot loader. Eventhough I've been browsing through different forums and I found lots of threads about this, I haven't managed to solve my problem.

I already had winxp and rh9 before, running nicely together on the same HDD but then I was messing about with some conf files in Linux and screwed up my MBR. That means that neither my Linux nor XP worked so I formated my HDD (from DOS) and instaled first winxp and then linux. My MBR should be OK now. While installing Linux I set Grub as a boot loader and put it in the first sector of my /boot (which is /dev/hda2).

Now, the problem is that I can't see GRUB boot window (which I had there before without any problem), so I can't boot into Linux (I can go only into rescue mode with instalation CD). Booting starts with WinXP and it's booting without any problem.

Can anyone help me please?
 
Old 10-05-2003, 12:14 PM   #2
Raspis21
Member
 
Registered: Jun 2003
Posts: 33

Rep: Reputation: 15
Hi Filkacik,

I think we might need a little more to go on. You said you can't see the grub window, what do you see? Does it go straight away to the XP boot screen? Do you even make it to the grub loader at all? If so, could you please post what your /boot/grub/grub.conf contains? It might help a bit.
 
Old 10-05-2003, 12:16 PM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
You might need to set /dev/hda2 to be the active partition.
 
Old 10-05-2003, 12:19 PM   #4
filkacik
LQ Newbie
 
Registered: Aug 2003
Distribution: rh9
Posts: 11

Original Poster
Rep: Reputation: 0
Hi Raspis21

I can't even get to GRUB, it goes straight to winxp.

My grub looks like this

...
...
boot=/dev/hda2
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,0)
chainloader+1



so what do you reckon?
 
Old 10-05-2003, 12:23 PM   #5
filkacik
LQ Newbie
 
Registered: Aug 2003
Distribution: rh9
Posts: 11

Original Poster
Rep: Reputation: 0
I tried

grub-install /dev/hda2

and it said that there was no error and /boot/grub/device.map

(fd0) /dev/fd0
(hd0) /dev/hda

which seems to be alright to me....
 
Old 10-05-2003, 12:24 PM   #6
filkacik
LQ Newbie
 
Registered: Aug 2003
Distribution: rh9
Posts: 11

Original Poster
Rep: Reputation: 0
I think my /dev/hda2 is set as an active partition
 
Old 10-05-2003, 12:36 PM   #7
Raspis21
Member
 
Registered: Jun 2003
Posts: 33

Rep: Reputation: 15
Hi again,

Perhaps you should check your partiton info. Since you can boot to XP then open a command window and use the utility fdisk . It will aloow you to view the partitions and the active partition should have an "a" next to it (no quotes) If not you can follow the menus to make it active. If you have trouble working that out, let me know.
 
Old 10-05-2003, 12:56 PM   #8
filkacik
LQ Newbie
 
Registered: Aug 2003
Distribution: rh9
Posts: 11

Original Poster
Rep: Reputation: 0
Hi there.
I can't believe how stupid I was, I run fdisk and vfat partition was active. So I changed it and it works now. I don't know what I was thinking but obviously I was looking for some BIG BIG problem where it wasn't.

Thanks a LOT for that help guys, and sorry for wasting yuor time.

cheers
rf
 
Old 10-05-2003, 12:57 PM   #9
Raspis21
Member
 
Registered: Jun 2003
Posts: 33

Rep: Reputation: 15
No Prob, glad we could help!
 
Old 10-05-2003, 03:15 PM   #10
tedist_god
Member
 
Registered: Sep 2003
Location: I live in Atascadero, California
Distribution: Icepack
Posts: 34

Rep: Reputation: 15
i have the same problem but i cant run fdisk. in winxp
so where do i run it?
 
Old 10-05-2003, 05:39 PM   #11
tedist_god
Member
 
Registered: Sep 2003
Location: I live in Atascadero, California
Distribution: Icepack
Posts: 34

Rep: Reputation: 15
so does anyone know
 
Old 10-05-2003, 06:08 PM   #12
Raspis21
Member
 
Registered: Jun 2003
Posts: 33

Rep: Reputation: 15
Hi,

If you dont have windows, or a windows startup disk (who needs em anyway, right?) then you can use the sfdisk utility. It is usually in /sbin and the syntax would be:

sfdisk -A <your parition you want to make active>

example:

sfdisk -A hda1

you need to know which partition you need to make active though. If you need help, respond in this thread.

Enjoy!
 
Old 10-05-2003, 08:31 PM   #13
tedist_god
Member
 
Registered: Sep 2003
Location: I live in Atascadero, California
Distribution: Icepack
Posts: 34

Rep: Reputation: 15
how do i reconfigure grub, so that i can change "dos to windows xp"
basically what happens is that when i try to boot "dos" it goes to a screen that says somethin or other (i forget) and then it just sits there with a blinking cursor doing absolutely nothing.
 
  


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
dual boot problem: winxp and rh9 both one one hard drive dinow Red Hat 6 07-26-2005 07:00 AM
dual boot problem RH9 and XP maxiejo Linux - Laptop and Netbook 6 06-17-2004 04:19 PM
dual boot (rh9 winXP) host problem leb01002 Linux - Newbie 2 11-21-2003 09:58 AM
dual boot xp & rh9/Mandrake9 problem hm4288 Linux - Newbie 2 11-21-2003 03:36 AM
Dual-boot problem of xp and rh9 ddshan Linux - Newbie 1 10-14-2003 02:15 PM

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

All times are GMT -5. The time now is 03:07 AM.

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