Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-24-2003, 08:07 PM   #1
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Grub install messed up hda

Here's what I did to install grub
root (hd1,0) # adress of /boot
setup (hd0,0) #my first drive
said somethings
I edite /boot/grub/grub.conf, and restarted.
Grub loader without a hitch...

Problem is... now I can't run Windows XP no more!
Windows was on /dev/hda, I think the 'setup (hd0)' messed the begening of the partition, but how? Isn't it suppose to write in the MBR only?
Does anybody know a way to get windows back? Someway to reinstall windows' bootloader? Anything that doesn't involve completely reinstalling windows.

PS: Tried installing lilo instead(just to see), well guess what, loading windows(rootnoverify (0,0) chainloader +1) prompted grub...

Please if you think you know a solution, post... I'm desperate, I'm willing to try anything.

Last edited by lokee; 11-20-2003 at 06:02 PM.
Old 10-24-2003, 08:14 PM   #2
Registered: Jul 2002
Distribution: OpenSuSE 11
Posts: 441

Rep: Reputation: 30
Windows is still there, the option to boot to it isn't there. Here is the windows part of my menu.lst

title Windows 2000
root (hd0,0)
chainloader +1

try that.
Old 10-24-2003, 10:56 PM   #3
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Original Poster
Rep: Reputation: 30
That isn't the problem: I do have a windows entry...
Here's something very concluant, from linux, I can load the windows partition anymore(too many mounted fs...)
Old 10-24-2003, 11:04 PM   #4
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
If you have XP installation CDs, then boot from it and then go to the recovery console and do
I'm not sure about the exact procedure but I'm sure there are tons of threads dealing with this.

another thing you can try is get hold of a msdos boot floppy (the sort of thing that you can make with win95/98/me), boot from it and then run
fdisk /mbr

But make sure you have a way to boot linux; i.e. make a boot floppy.
Old 10-25-2003, 07:54 AM   #5
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Original Poster
Rep: Reputation: 30
When I boot the installation cd, it gives me no choice(why doesn't this surprise me?), it just brings me straight to installation(disk partitioning).
How do you get in recovery mode?
Old 11-20-2003, 06:01 PM   #6
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Original Poster
Rep: Reputation: 30

setup (hd0,0) # adress of /boot
This didn't erase the MBR, but it simply erased the bootsector of (hd0,0), which is windozes bootsector... So I poped in a XP Installation CD, went in 'repair' mode, typed 'fixboot', and...
Everything works ok Now...

Last edited by lokee; 11-20-2003 at 06:03 PM.


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
cant install grub: /dev/hda no corresponding bios drive qwijibow Linux - General 4 01-16-2005 11:30 AM
Where do I put Grub? hda (XP) or hdb(FC2)? TimDog Fedora - Installation 1 10-04-2004 05:56 PM
messed up grub with hd install what to do? gonus Debian 5 09-29-2004 09:16 PM
Will "grub-install /dev/hda" kill Windows XP MBR? Zullocrit Linux - Newbie 3 09-25-2004 09:50 AM
hda=ide-scsi in grub.conf xround Linux - General 5 09-17-2004 05:48 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration