How to fix MBR-I want XP to sit in my MBR


B

BHAM KAL

Hi,

I used to have Win XP and Red Hat Linux on my desktop. Mistakenly I
formatted the Linux partition without realizing that LILO is still in the
MBR. Now I am struck with ">grub" prompt. How to get around it?
I was going through some of the previous postings; they are saying to "fdisk
/mbr". Does this help the XP to take control of the MBR?
Do I need to do anything else such as taking the power cable out of the hard
disk???
Please note that I have a single hard disk with XP and Linux partitions on
it. With Linux partition formatted I want to use the entire hard disk for
XP.

Thanks in advance for insights.
 
Ad

Advertisements

R

Rich Barry

Get a Win98 bootdisk from here. www.bootdisk.com Use it to get to
a command prompt and type: fdisk /mbr. With
a space between k and /. Then you can use your WinXP CD to boot to the
Recovery Console and at the command prompt type: bootcfg /rebuild
Those two steps should get you going again.
 
D

DILIP

Rich
The same can be achieved by using only the XP bootable CD. In the RC type

fixmbr
fixboot

or bootcfg /rebuild -- only if you're having problems with the boot.ini
file.
 
Ad

Advertisements

A

Alex Nichol

BHAM said:
I used to have Win XP and Red Hat Linux on my desktop. Mistakenly I
formatted the Linux partition without realizing that LILO is still in the
MBR. Now I am struck with ">grub" prompt. How to get around it?
I was going through some of the previous postings; they are saying to "fdisk
/mbr". Does this help the XP to take control of the MBR?

Lilo will have been installed in the Master Boot record, overwriting the
standard code there. If you have a Win98 or ME startup floppy, easiest
is to boot that and give
FDISK /MBR
then run
FDISK
and check on the partitions it sees, set the one with XP as the Active
Partition.

You can also use an XP regular CD - Set the BIOS to boot CD before Hard
Disk. Boot the XP CD and, instead of Setup, take the immediate R for
Repair. Assume any password requested is blank, and TAB over.
Give
FixMBR
then use
Diskpart
and its commands
list partition
to see which one, say n, is the XP one
Select partition n
active
exit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top