Home · Compatibility Lists · Support Forums · FAQ · News Archive · Articles · Submit News/Upcoming News
Linux Compatible
advertisement


Forum overview » General Linux » Help: my reinstall of WinXp killed grub (1/1)

Reply New Poll

Help: my reinstall of WinXp killed grub
Author Message
useless
Junior Member


Posts: 3
Joined: 2006-03-30
Member No.: 79556
Icon 2006-03-30 05:25:09

Hi,

I had a working dual-boot of win-xp and fedora core on my winbook. Then xp broke down and had to be reinstalled. I reinstalled xp on it's partition, but then the next time I booted, grub failed to load.
The configuration file grub.conf still holds the right information, but the system automatically goes to winxp.
Does anyone know how to bring it back to where grub is recognized when booted?

the file system is:
/dev/hda
hda2 fat32 (win restore)
hda1 ntfs (win-xp)
hda3 ext3 (linux)
hda4 extended
hda5 linux-swap

the grub files are located in:
/dev/hda3/stage1
/dev/hda3/stage2
/dev/hda3/grub.conf

the grub file:
no /boot partition, so all paths are relative to /
boot = /dev/hda

default=1
timeout=5
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4)
root(hd0,2)
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rghb quiet
intrd /boot/intrd-2.6.11-1.1369_FC4.img
title windows
rootnoverify(hd0,0)
chainloader +1

I get the impression that maybe windows xp overwrote the MBR and that I need to go in through FC4 linux rescue to overwrite the MBR with a grub loader, but I'm not sure if that is the right thing to do or how to do it.
Thanks,
Dave/Useless

Post #171788
Edit Quote Print Solution Plonk Delete
danleff
Moderator


Posts: 2365
From: Albany, NY
Joined: 2002-08-30
Member No.: 12718
Icon 2006-03-30 11:57:12

Yes, when you re-install Windows, the MBR is written over.

boot disc 1 of fedora and type at the menu screen,

linux rescue

When you get a command prompt, type,

chroot /mnt/sysimage

This should mount the root filesystem (as long as you don't get any error returned) then type;

grub-install /dev/hda

A good explanation if the method can be found here.

Post #171797
Edit Quote Print Solution Plonk Delete
useless
Junior Member


Posts: 3
Joined: 2006-03-30
Member No.: 79556
Icon 2006-03-31 03:07:47

Up and running again.
Incase anyone else has the same problem, I'd like to note that my post had two further problems--
hda1 actually had win-restore on it
hda2 had win xp

so the grub.conf needed to be changed from norootverify(hd0,0) to norootverify(hd0,1)

Thanks!


Post #171813
Edit Quote Print Solution Plonk Delete
danleff
Moderator


Posts: 2365
From: Albany, NY
Joined: 2002-08-30
Member No.: 12718
Icon 2006-03-31 11:08:15

This is why I generally ask what make and model system one has. The hidden restore partititon in many systems cause this exact issue.

Nice work!

Post #171830
Edit Quote Print Solution Plonk Delete

Reply New Poll

Forum overview » General Linux » Help: my reinstall of WinXp killed grub

Legend
View   View profile
Solved   Mark this post as solution (topic starter only)
Quote   Reply with quote to post
Edit   Edit post
Delete   Delete post (admin only)

Moderator: Open / Close / Bump / Delete / Move / Merge

All products mentioned are registered trademarks or trademarks of their respective owners.
© 2002-2009 Esselbach Internet Solutions - All Rights Reserved. Terms and privacy policy
Website powered by Esselbach Storyteller CMS System