LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-29-2004, 11:04 PM   #1
AdamS
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Rep: Reputation: 0
How to make my WindowsXP back?


I'm installing Gentoo. Maybe there's some mistake in my configing Grub. And then I can no longer login to my WindowsXP.

The Structure of my harddrive goes like this:
/dev/hda1 fat32 where my windows lives
/dev/hda2 extend
/dev/hda3 ext2 for linux /boot
/dev/hda4 reiserfs for linux /
/dev/hda5-hda8 fat32 for windows

I want Grub setup in my MBR, I did:
>root (hd0,2)
>setup (hd0,0)
but someone said it should be setup (hd0)

And my grub.conf is:
title=WindowsXP
rootnoverify (hd0,0)
makeactive
chainloader +1 (or chainloader (hd0,0)+1 still no effect)

And i have used windows's fixmbr and fixboot, still no use. What should i do now?
 
Old 08-30-2004, 12:29 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Bad news, I'm afraid. You will have to reinstall WinXP. But, before you do ANYTHING else, make sure you have a working boot floppy or bootable CD for Linux; you'll need it before this is over.
Here are the problems you've created for yourself. When you setup grub to (hd0,0), you installed it to the first partition of the first hard drive (the WinXP partition). That means you've overwritten vital XP code with Linux code; therefore, XP won't boot. You should have setup grub for (hd0) only. Reason: the MBR is not a partition; it's the first sector of the first hard disk, which tells the computer where to find the rest of the bootloader. By specifying (hd0,0), you wrote the rest of the bootloader into the XP partition.
To fix this, make sure you have some way of booting into Linux later, then reinstall XP, which will overwrite the MBR and make Linux non-bootable. After the reinstall, make sure XP will boot normally, then insert the Linux boot disk, and reboot. Once you are in Linux again, setup grub to (hd0) instead of (hd0,0).
Been there a few times. My heart goes out to you. Hope this helps.

My bad. Bad boy. My bad. You may not have overwritten XP. You may only have told it to look in the XP partition for the rest of grub. Try booting into Linux and re-run the grub setup with the correct parameter (hd0). The setup command tells grub where to find the rest of the bootloader; not necessarily to write the rest to that location. Then reboot. The rest of your boot menu looks OK.

Last edited by bigrigdriver; 08-30-2004 at 12:36 AM.
 
Old 08-30-2004, 12:34 AM   #3
AdamS
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you VERY MUCH!
But is there some ways that can only FIX my XP but not Reinstall it? I don't want a new xp.....sigh....

Anyway, thank you all the same!
 
Old 08-30-2004, 12:40 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I've just edited my original response to your post. Go back and read it.
 
Old 08-30-2004, 12:50 AM   #5
AdamS
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
I'm not a English native. so there's a little difficulity of understanding.
Did you mean that I just should get in linux and run grub, then
>root (hd0,2)
>setup (hd0)
>quit
and that's ok? no need to modify my grub.conf? no need to reinstall winxp? hope I've picked the right meaning. you know, I'm now in gentoo using links to find help^_^ ----God helps me to see webs in textmod ^_^

and always thanks to you.
 
Old 08-30-2004, 12:58 AM   #6
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Yes. The root (hd0,2) tells grub that the rest of the bootloader is in the third partition of the first hard drive. Setup (hdo) tells grub to install the first part of grub to the MBR of the first hard disk, and the root command given earlier tells grub where to find the rest of grub. The XP boot commands look good. There are many other posts on this bulletin board on this topic. I suggest you do a search on the phrase "dual boot" to see other posts and solutions offered.
 
Old 08-30-2004, 01:17 AM   #7
AdamS
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
so sad, it doesn't work.
I can use grub to login linux easily, but windows, i pressed enter and it just comes back to the grub main menu. no other action.

Maybe it's God forcing me wo use linux^_^
 
Old 08-30-2004, 01:22 AM   #8
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
It is written in one of the books of God's Word: "God does not oppress you beyond your ability to survive the test". It if's God's will that you are challanged, then so be it. You can survive the challange. Just reinstall XP, then boot into Linux and reinstall grub. And be conforted in the knowledge that if this is the worst challange that God gives you, you are blessed.
 
Old 08-30-2004, 01:30 AM   #9
AdamS
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
maybe that's the only way......I try
 
Old 08-30-2004, 01:52 AM   #10
AdamS
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
I've tried to use WinXP's install disk, and choose install, repair. It copied some files to my disk. and after i reboot, the screen still is grub.
and if i choose windowsxp, it says, disk error, no matter i use chainloader +1, chainloader (hd0,0)+1, chainload (hd0,0)0+1, or chainloader (hd0,0)1+1......

Now does it showes I HAVE TO reinstall a new windowsxp?
or just there's some mistakes in my grub.conf?

bigrigdriver, help me to confirm, please.
 
Old 08-30-2004, 03:14 AM   #11
AdamS
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
At last, I reinstalled my XP.
and now all the things runs ok

...........what a long way....
 
Old 08-30-2004, 01:17 PM   #12
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Glad you got it working, but may I point out that the "long way" was only the Windows way. Your Linux was working the whole time, wasn't it?

 
Old 08-31-2004, 07:09 AM   #13
AdamS
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
yeah, it's always working.
this problem is just caused by my mistake-- not really understanding harddisk table
 
  


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
DISCUSSION: How to make URPMI come back after upgrade Him LinuxAnswers Discussion 1 11-16-2005 09:51 AM
Redhat 9 to WindowsXP-How cheesedogblack Linux - Newbie 2 02-24-2005 03:46 AM
windowsxp and redhat 0007 Linux - Laptop and Netbook 3 01-14-2005 09:54 AM
ZipSlack, WindowsXP, ME hydraspective Linux - Software 7 12-08-2004 10:49 PM
please dont make me go back to windows qwijibow Linux - Newbie 15 11-03-2003 04:56 AM

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

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