[HOW TO] Restore GRUB bootloader after a new Windows installation

Sponsored Links

GRUB is a widely used boot-loader for booting Linux-based systems. It lets you choose the OS you want to boot from the list of all operating systems currently installed on your system.


Usually for dual-booting Windows with Ubuntu or any other Linux based OS we install the Windows OS first and then install the Linux OS. But in case if you install Windows over the existing Linux OS then you will not be able to boot inside your Linux OS as Windows boot-loader does not support Linux systems. So to get back your original GRUB boot-loader you will have to make changes in your Master Boot Record.

To do so you will require a live CD to boot Linux. After booting from the live CD run terminal and execute following commands.

sudo grub

find /boot/grub/stage1

This will show you the location of drive on the hard disk where GRUB loader is stored.

root hd(0,0)

setup (hd0)


In place of hd(0,0) type the output you got with the previous command. Now restart your system and you will be able to see your GRUB loader again.


Incoming search terms for the article:

4 Replies to “[HOW TO] Restore GRUB bootloader after a new Windows installation”

  1. Hello Тhere. I found your wеblog the use of mѕn.
    Τhаt is a vеry neatly written artiсle.
    I’ll make sure to bookmark it and return to read more of your useful information. Thank you for the post. I will certainly return.

  2. really a cool trick …. i use to install fresh linux over windows if got tracked with above problem …. but now its absolutely fine …. please send some more tricks based on linux …… thanxxxx ….. .!!!

Comments are closed.