It may happen that if you have windows installed on your system and you install Linux natively on it, your Windows boot loader gets lost. Your whole data will be there, just that you need to restore the boot loader… This is how you can do it:
- Insert your Windows installation CD (I tried with Windows 7).
- When you get to the second screen (after you choose your language) go to ‘Repair your computer’.
- Go to command prompt and type this in without the quotes (") :
- Press enter.
- Type this in without the quotes (") :
- Press enter
In case you install Windows after Linux (in my case, Ubuntu version), Linux boot loader (here, Grub) wont exist anymore. Here’s the quick and easy way to re-enable Grub:
- Boot off the Live CD
- Open a Terminal and type in the following commands, noting that the first command will put you into the grub “prompt”, and the next 3 commands will be executed there.
(where hd?,# is returned from find command)
- Reboot (removing the CD)
There are high chances that when you restore windows boot loader, the MBR would be rewritten (since windows doesn't want to recognize any other OS!). So its preferrable that windows should be installed first and then linux.
Queries & comments are always welcome!! :)