Page 1 of 1

Solved: Grub boot windows

Posted: Thu Dec 29, 2011 10:19 pm
by mister_v
Hi,

I had a system with dual boot linux and windows.
The bootloader was grub.

I decided I didn't needed Linux anymore and I formate the partition.
Unfortunately it also destroyed the bootloader.
And now when I start my Pc, I get a grub-rescue console
instead of booting windows directly.

Anyone knows how I can boot windows directly?
Thanks,

Re: Grub boot windows

Posted: Sat Jan 07, 2012 11:45 pm
by Chris
You can try to do a repair with the Windows install CD/DVD.

Boot from the CD and select the option repair.
It should reinstall the windows bootloader, I believe.
It has been a while since I tried it.

Re: Grub boot windows

Posted: Sun Jan 08, 2012 1:31 am
by mister_v
I tried to to do a repair with my Windows Vista installation disk,
but no luck.

I still have the same problem.

Any other suggestions?

Re: Grub boot windows

Posted: Sun Jan 08, 2012 10:20 pm
by Chris
On most windows you run (From the install disk > command prompt)

Code: Select all

FDISK /MBR
This should fix it.
I hear it doesn't work on Windows Vista.

MBRFix.exe can fix it, but you first have to download it.
You can download it from http://www.sysint.no/en/Download.aspx
And run it, again from Windows install disk.
This probably doesn't make it any easier for you...

An easier way, if you have a linux live-CD (most linux distributions have one now. Ubuntu for example will be fine), is to use LILO to repair the Master Boot Record (MBR).
/sbin/lilo -u /dev/hda
This command restores the MBR on the first hard drive.

Re: Grub boot windows

Posted: Mon Jan 09, 2012 4:17 am
by mister_v
Thanks,

The LILO-way with the linux live distribution worked for me.

Code: Select all

/sbin/lilo -u /dev/hda
Had to install it first on the kubuntu live-CD I had.

Code: Select all

apt-get install lilo