Solved: Grub boot windows

General security questions
Post Reply
mister_v
Posts: 114
Joined: Sat Jun 20, 2009 5:42 pm

Solved: Grub boot windows

Post 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,
Last edited by mister_v on Mon Jan 09, 2012 4:17 am, edited 1 time in total.
Chris
Site Admin
Posts: 108
Joined: Mon Jul 21, 2008 9:45 am
Location: Leuven, Belgium
Contact:

Re: Grub boot windows

Post 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.
mister_v
Posts: 114
Joined: Sat Jun 20, 2009 5:42 pm

Re: Grub boot windows

Post 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?
Chris
Site Admin
Posts: 108
Joined: Mon Jul 21, 2008 9:45 am
Location: Leuven, Belgium
Contact:

Re: Grub boot windows

Post 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.
mister_v
Posts: 114
Joined: Sat Jun 20, 2009 5:42 pm

Re: Grub boot windows

Post 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
Post Reply